From d63da7aca71d2e416f1031191c2e675b537209d9 Mon Sep 17 00:00:00 2001 From: "tastendruck[bot]" <191388063+tastendruck[bot]@users.noreply.github.com> Date: Sun, 19 Oct 2025 03:04:08 +0000 Subject: [PATCH] robot: `pint` Automated commit by the `Format` workflow. --- bin/php-matrix | 12 +++++++----- bin/update-all-versions | 2 +- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/bin/php-matrix b/bin/php-matrix index 2afd634..8694295 100755 --- a/bin/php-matrix +++ b/bin/php-matrix @@ -5,17 +5,19 @@ declare(strict_types=1); namespace TypistTech\PhpMatrix; -use TypistTech\PhpMatrix\Console\Runner; -use function in_array; use const PHP_EOL; use const PHP_SAPI; +use TypistTech\PhpMatrix\Console\Runner; + +use function in_array; + // Taken from https://box-project.github.io/box/faq/#what-is-the-canonical-way-to-write-a-cli-entry-file -if (!in_array(PHP_SAPI, ['micro', 'cli', 'phpdbg', 'embed'], true)) { - echo PHP_EOL . 'This app may only be invoked from a command line, got "' . PHP_SAPI . '"' . PHP_EOL; +if (! in_array(PHP_SAPI, ['micro', 'cli', 'phpdbg', 'embed'], true)) { + echo PHP_EOL.'This app may only be invoked from a command line, got "'.PHP_SAPI.'"'.PHP_EOL; exit(1); } -include $_composer_autoload_path ?? __DIR__ . '/../vendor/autoload.php'; +include $_composer_autoload_path ?? __DIR__.'/../vendor/autoload.php'; Runner::run(); diff --git a/bin/update-all-versions b/bin/update-all-versions index c8a3812..3b364fe 100755 --- a/bin/update-all-versions +++ b/bin/update-all-versions @@ -16,6 +16,6 @@ $dir = __DIR__.'/../data'; @mkdir($dir, 0755); $content = json_encode($data, JSON_THROW_ON_ERROR | JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES); -file_put_contents($dir .'/all-versions.json', $content); +file_put_contents($dir.'/all-versions.json', $content); echo "Done: '{$dir}/all-versions.json' updated".PHP_EOL;