@@ -12,7 +12,7 @@ |
||
12 | 12 | use Symfony\Polyfill\Ctype as p; |
13 | 13 | |
14 | 14 | if (\PHP_VERSION_ID >= 80000) { |
15 | - return require __DIR__.'/bootstrap80.php'; |
|
15 | + return require __DIR__ . '/bootstrap80.php'; |
|
16 | 16 | } |
17 | 17 | |
18 | 18 | if (!function_exists('ctype_alnum')) { |
@@ -220,7 +220,7 @@ |
||
220 | 220 | } |
221 | 221 | |
222 | 222 | if (\PHP_VERSION_ID >= 80100) { |
223 | - @trigger_error($function.'(): Argument of type int will be interpreted as string in the future', \E_USER_DEPRECATED); |
|
223 | + @trigger_error($function . '(): Argument of type int will be interpreted as string in the future', \E_USER_DEPRECATED); |
|
224 | 224 | } |
225 | 225 | |
226 | 226 | if ($int < 0) { |
@@ -19,7 +19,7 @@ |
||
19 | 19 | function is_countable($value) { return is_array($value) || $value instanceof Countable || $value instanceof ResourceBundle || $value instanceof SimpleXmlElement; } |
20 | 20 | } |
21 | 21 | if (!function_exists('hrtime')) { |
22 | - require_once __DIR__.'/Php73.php'; |
|
22 | + require_once __DIR__ . '/Php73.php'; |
|
23 | 23 | p\Php73::$startAt = (int) microtime(true); |
24 | 24 | function hrtime($as_number = false) { return p\Php73::hrtime($as_number); } |
25 | 25 | } |
@@ -54,7 +54,7 @@ |
||
54 | 54 | return $class; |
55 | 55 | } |
56 | 56 | |
57 | - return (get_parent_class($class) ?: key(class_implements($class)) ?: 'class').'@anonymous'; |
|
57 | + return (get_parent_class($class) ?: key(class_implements($class)) ?: 'class') . '@anonymous'; |
|
58 | 58 | } |
59 | 59 | |
60 | 60 | public static function get_resource_id($res): int |
@@ -16,7 +16,7 @@ |
||
16 | 16 | } |
17 | 17 | |
18 | 18 | if (\PHP_VERSION_ID >= 80000) { |
19 | - return require __DIR__.'/bootstrap80.php'; |
|
19 | + return require __DIR__ . '/bootstrap80.php'; |
|
20 | 20 | } |
21 | 21 | |
22 | 22 | if (!defined('GRAPHEME_EXTR_COUNT')) { |
@@ -22,29 +22,29 @@ |
||
22 | 22 | } |
23 | 23 | |
24 | 24 | if (!function_exists('grapheme_extract')) { |
25 | - function grapheme_extract(?string $haystack, ?int $size, ?int $type = GRAPHEME_EXTR_COUNT, ?int $offset = 0, &$next = null): string|false { return p\Grapheme::grapheme_extract((string) $haystack, (int) $size, (int) $type, (int) $offset, $next); } |
|
25 | + function grapheme_extract(?string $haystack, ?int $size, ?int $type = GRAPHEME_EXTR_COUNT, ?int $offset = 0, &$next = null): string | false { return p\Grapheme::grapheme_extract((string) $haystack, (int) $size, (int) $type, (int) $offset, $next); } |
|
26 | 26 | } |
27 | 27 | if (!function_exists('grapheme_stripos')) { |
28 | - function grapheme_stripos(?string $haystack, ?string $needle, ?int $offset = 0): int|false { return p\Grapheme::grapheme_stripos((string) $haystack, (string) $needle, (int) $offset); } |
|
28 | + function grapheme_stripos(?string $haystack, ?string $needle, ?int $offset = 0): int | false { return p\Grapheme::grapheme_stripos((string) $haystack, (string) $needle, (int) $offset); } |
|
29 | 29 | } |
30 | 30 | if (!function_exists('grapheme_stristr')) { |
31 | - function grapheme_stristr(?string $haystack, ?string $needle, ?bool $beforeNeedle = false): string|false { return p\Grapheme::grapheme_stristr((string) $haystack, (string) $needle, (bool) $beforeNeedle); } |
|
31 | + function grapheme_stristr(?string $haystack, ?string $needle, ?bool $beforeNeedle = false): string | false { return p\Grapheme::grapheme_stristr((string) $haystack, (string) $needle, (bool) $beforeNeedle); } |
|
32 | 32 | } |
33 | 33 | if (!function_exists('grapheme_strlen')) { |
34 | - function grapheme_strlen(?string $string): int|false|null { return p\Grapheme::grapheme_strlen((string) $string); } |
|
34 | + function grapheme_strlen(?string $string): int | false | null { return p\Grapheme::grapheme_strlen((string) $string); } |
|
35 | 35 | } |
36 | 36 | if (!function_exists('grapheme_strpos')) { |
37 | - function grapheme_strpos(?string $haystack, ?string $needle, ?int $offset = 0): int|false { return p\Grapheme::grapheme_strpos((string) $haystack, (string) $needle, (int) $offset); } |
|
37 | + function grapheme_strpos(?string $haystack, ?string $needle, ?int $offset = 0): int | false { return p\Grapheme::grapheme_strpos((string) $haystack, (string) $needle, (int) $offset); } |
|
38 | 38 | } |
39 | 39 | if (!function_exists('grapheme_strripos')) { |
40 | - function grapheme_strripos(?string $haystack, ?string $needle, ?int $offset = 0): int|false { return p\Grapheme::grapheme_strripos((string) $haystack, (string) $needle, (int) $offset); } |
|
40 | + function grapheme_strripos(?string $haystack, ?string $needle, ?int $offset = 0): int | false { return p\Grapheme::grapheme_strripos((string) $haystack, (string) $needle, (int) $offset); } |
|
41 | 41 | } |
42 | 42 | if (!function_exists('grapheme_strrpos')) { |
43 | - function grapheme_strrpos(?string $haystack, ?string $needle, ?int $offset = 0): int|false { return p\Grapheme::grapheme_strrpos((string) $haystack, (string) $needle, (int) $offset); } |
|
43 | + function grapheme_strrpos(?string $haystack, ?string $needle, ?int $offset = 0): int | false { return p\Grapheme::grapheme_strrpos((string) $haystack, (string) $needle, (int) $offset); } |
|
44 | 44 | } |
45 | 45 | if (!function_exists('grapheme_strstr')) { |
46 | - function grapheme_strstr(?string $haystack, ?string $needle, ?bool $beforeNeedle = false): string|false { return p\Grapheme::grapheme_strstr((string) $haystack, (string) $needle, (bool) $beforeNeedle); } |
|
46 | + function grapheme_strstr(?string $haystack, ?string $needle, ?bool $beforeNeedle = false): string | false { return p\Grapheme::grapheme_strstr((string) $haystack, (string) $needle, (bool) $beforeNeedle); } |
|
47 | 47 | } |
48 | 48 | if (!function_exists('grapheme_substr')) { |
49 | - function grapheme_substr(?string $string, ?int $offset, ?int $length = null): string|false { return p\Grapheme::grapheme_substr((string) $string, (int) $offset, $length); } |
|
49 | + function grapheme_substr(?string $string, ?int $offset, ?int $length = null): string | false { return p\Grapheme::grapheme_substr((string) $string, (int) $offset, $length); } |
|
50 | 50 | } |
@@ -141,7 +141,7 @@ |
||
141 | 141 | } |
142 | 142 | } |
143 | 143 | |
144 | - return [$singular.'s']; |
|
144 | + return [$singular . 's']; |
|
145 | 145 | } |
146 | 146 | |
147 | 147 | private function isInflectedWord(string $word): bool |
@@ -487,13 +487,13 @@ discard block |
||
487 | 487 | $singulars = []; |
488 | 488 | |
489 | 489 | foreach ($newSuffix as $newSuffixEntry) { |
490 | - $singulars[] = $newBase.($firstUpper ? ucfirst($newSuffixEntry) : $newSuffixEntry); |
|
490 | + $singulars[] = $newBase . ($firstUpper ? ucfirst($newSuffixEntry) : $newSuffixEntry); |
|
491 | 491 | } |
492 | 492 | |
493 | 493 | return $singulars; |
494 | 494 | } |
495 | 495 | |
496 | - return [$newBase.($firstUpper ? ucfirst($newSuffix) : $newSuffix)]; |
|
496 | + return [$newBase . ($firstUpper ? ucfirst($newSuffix) : $newSuffix)]; |
|
497 | 497 | } |
498 | 498 | |
499 | 499 | // Suffix is longer than word |
@@ -564,13 +564,13 @@ discard block |
||
564 | 564 | $plurals = []; |
565 | 565 | |
566 | 566 | foreach ($newSuffix as $newSuffixEntry) { |
567 | - $plurals[] = $newBase.($firstUpper ? ucfirst($newSuffixEntry) : $newSuffixEntry); |
|
567 | + $plurals[] = $newBase . ($firstUpper ? ucfirst($newSuffixEntry) : $newSuffixEntry); |
|
568 | 568 | } |
569 | 569 | |
570 | 570 | return $plurals; |
571 | 571 | } |
572 | 572 | |
573 | - return [$newBase.($firstUpper ? ucfirst($newSuffix) : $newSuffix)]; |
|
573 | + return [$newBase . ($firstUpper ? ucfirst($newSuffix) : $newSuffix)]; |
|
574 | 574 | } |
575 | 575 | |
576 | 576 | // Suffix is longer than word |
@@ -581,6 +581,6 @@ discard block |
||
581 | 581 | } |
582 | 582 | |
583 | 583 | // Assume that plural is singular with a trailing `s` |
584 | - return [$singular.'s']; |
|
584 | + return [$singular . 's']; |
|
585 | 585 | } |
586 | 586 | } |
@@ -28,7 +28,7 @@ |
||
28 | 28 | throw new InvalidArgumentException('Expected a failed process, but the given process was successful.'); |
29 | 29 | } |
30 | 30 | |
31 | - $error = sprintf('The command "%s" failed.'."\n\nExit Code: %s(%s)\n\nWorking directory: %s", |
|
31 | + $error = sprintf('The command "%s" failed.' . "\n\nExit Code: %s(%s)\n\nWorking directory: %s", |
|
32 | 32 | $process->getCommandLine(), |
33 | 33 | $process->getExitCode(), |
34 | 34 | $process->getExitCodeText(), |