mirror of
https://github.com/openvk/openvk
synced 2025-02-13 10:13:09 +03:00
style: add linting for openvkctl script (#1222)
This commit is contained in:
parent
8a979fad9d
commit
1317059bab
2 changed files with 9 additions and 4 deletions
|
@ -2,6 +2,7 @@
|
||||||
|
|
||||||
$finder = (new PhpCsFixer\Finder())
|
$finder = (new PhpCsFixer\Finder())
|
||||||
->in(__DIR__)
|
->in(__DIR__)
|
||||||
|
->name('openvkctl')
|
||||||
;
|
;
|
||||||
|
|
||||||
return (new PhpCsFixer\Config())
|
return (new PhpCsFixer\Config())
|
||||||
|
|
10
openvkctl
10
openvkctl
|
@ -1,6 +1,10 @@
|
||||||
#!/usr/bin/env php
|
#!/usr/bin/env php
|
||||||
<?php declare(strict_types=1);
|
<?php
|
||||||
|
|
||||||
|
declare(strict_types=1);
|
||||||
|
|
||||||
namespace openvk;
|
namespace openvk;
|
||||||
|
|
||||||
use Symfony\Component\Console\Application;
|
use Symfony\Component\Console\Application;
|
||||||
|
|
||||||
$_SERVER["HTTP_ACCEPT_LANGUAGE"] = false;
|
$_SERVER["HTTP_ACCEPT_LANGUAGE"] = false;
|
||||||
|
@ -8,7 +12,7 @@ $bootstrap = require(__DIR__ . "/../../../chandler/Bootstrap.php");
|
||||||
$bootstrap->ignite(true);
|
$bootstrap->ignite(true);
|
||||||
|
|
||||||
$application = new Application();
|
$application = new Application();
|
||||||
$application->add(new CLI\RebuildImagesCommand);
|
$application->add(new CLI\RebuildImagesCommand());
|
||||||
$application->add(new CLI\FetchToncoinTransactions);
|
$application->add(new CLI\FetchToncoinTransactions());
|
||||||
|
|
||||||
$application->run();
|
$application->run();
|
Loading…
Reference in a new issue