Skip to content

Commit dcbb1bd

Browse files
robot: pint (#72)
Automated commit by the `Format` workflow. Co-authored-by: tastendruck[bot] <191388063+tastendruck[bot]@users.noreply.github.com>
1 parent 1ea2a70 commit dcbb1bd

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

bin/php-matrix

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,19 @@ declare(strict_types=1);
55

66
namespace TypistTech\PhpMatrix;
77

8-
use TypistTech\PhpMatrix\Console\Runner;
9-
use function in_array;
108
use const PHP_EOL;
119
use const PHP_SAPI;
1210

11+
use TypistTech\PhpMatrix\Console\Runner;
12+
13+
use function in_array;
14+
1315
// Taken from https://box-project.github.io/box/faq/#what-is-the-canonical-way-to-write-a-cli-entry-file
14-
if (!in_array(PHP_SAPI, ['micro', 'cli', 'phpdbg', 'embed'], true)) {
15-
echo PHP_EOL . 'This app may only be invoked from a command line, got "' . PHP_SAPI . '"' . PHP_EOL;
16+
if (! in_array(PHP_SAPI, ['micro', 'cli', 'phpdbg', 'embed'], true)) {
17+
echo PHP_EOL.'This app may only be invoked from a command line, got "'.PHP_SAPI.'"'.PHP_EOL;
1618
exit(1);
1719
}
1820

19-
include $_composer_autoload_path ?? __DIR__ . '/../vendor/autoload.php';
21+
include $_composer_autoload_path ?? __DIR__.'/../vendor/autoload.php';
2022

2123
Runner::run();

bin/update-all-versions

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@ $dir = __DIR__.'/../data';
1616
@mkdir($dir, 0755);
1717

1818
$content = json_encode($data, JSON_THROW_ON_ERROR | JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES);
19-
file_put_contents($dir .'/all-versions.json', $content);
19+
file_put_contents($dir.'/all-versions.json', $content);
2020

2121
echo "Done: '{$dir}/all-versions.json' updated".PHP_EOL;

0 commit comments

Comments
 (0)