Skip to content

Commit

Permalink
style: add linting for openvkctl script
Browse files Browse the repository at this point in the history
  • Loading branch information
WerySkok committed Jan 31, 2025
1 parent 8a979fa commit 7922259
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
1 change: 1 addition & 0 deletions .php-cs-fixer.dist.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

$finder = (new PhpCsFixer\Finder())
->in(__DIR__)
->name('openvkctl')
;

return (new PhpCsFixer\Config())
Expand Down
12 changes: 8 additions & 4 deletions openvkctl
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@
#!/usr/bin/env php
<?php declare(strict_types=1);
<?php

declare(strict_types=1);

namespace openvk;

use Symfony\Component\Console\Application;

$_SERVER["HTTP_ACCEPT_LANGUAGE"] = false;
$bootstrap = require(__DIR__ . "/../../../chandler/Bootstrap.php");
$bootstrap->ignite(true);

$application = new Application();
$application->add(new CLI\RebuildImagesCommand);
$application->add(new CLI\FetchToncoinTransactions);
$application->add(new CLI\RebuildImagesCommand());
$application->add(new CLI\FetchToncoinTransactions());

$application->run();
$application->run();

0 comments on commit 7922259

Please sign in to comment.