php-cs fix files

This commit is contained in:
Tim
2025-06-25 11:29:20 +02:00
parent 737060f0a5
commit 77c9a0ab62
5 changed files with 381 additions and 377 deletions

View File

@ -1,24 +1,24 @@
<?php
use JetBrains\PhpStorm\NoReturn;
function path(...$segments): string
{
return implode(DIRECTORY_SEPARATOR, $segments);
}
function line(string $line): void
{
echo $line . PHP_EOL;
}
#[NoReturn] function lexit(string $line, int $code = 0): void
{
line($line);
exit($code);
}
function execInDirectory(string $dir, string $command): ?string
{
return shell_exec(sprintf('cd %s && %s', $dir, $command));
}
<?php
use JetBrains\PhpStorm\NoReturn;
function path(...$segments): string
{
return implode(DIRECTORY_SEPARATOR, $segments);
}
function line(string $line): void
{
echo $line . PHP_EOL;
}
#[NoReturn] function lexit(string $line, int $code = 0): void
{
line($line);
exit($code);
}
function execInDirectory(string $dir, string $command): ?string
{
return shell_exec(sprintf('cd %s && %s', $dir, $command));
}