php-cs fix files
This commit is contained in:
@ -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));
|
||||
}
|
||||
|
Reference in New Issue
Block a user