style: add linting for openvkctl script (#1222)

This commit is contained in:
Alexander Minkin 2025-01-31 19:17:59 +03:00 committed by GitHub
parent 8a979fad9d
commit 1317059bab
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 9 additions and 4 deletions

View file

@ -2,6 +2,7 @@
$finder = (new PhpCsFixer\Finder())
->in(__DIR__)
->name('openvkctl')
;
return (new PhpCsFixer\Config())

View file

@ -1,6 +1,10 @@
#!/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;
@ -8,7 +12,7 @@ $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();