@@ -38,7 +38,7 @@ discard block |
||
| 38 | 38 | * |
| 39 | 39 | * @throws InvalidArgumentException When argument mode is not valid |
| 40 | 40 | */ |
| 41 | - public function __construct(string $name, ?int $mode = null, string $description = '', string|bool|int|float|array|null $default = null, \Closure|array $suggestedValues = []) |
|
| 41 | + public function __construct(string $name, ?int $mode = null, string $description = '', string | bool | int | float | array | null $default = null, \Closure | array $suggestedValues = []) |
|
| 42 | 42 | { |
| 43 | 43 | } |
| 44 | 44 | |
@@ -74,14 +74,14 @@ discard block |
||
| 74 | 74 | * |
| 75 | 75 | * @throws LogicException When incorrect default value is given |
| 76 | 76 | */ |
| 77 | - public function setDefault(string|bool|int|float|array|null $default = null) |
|
| 77 | + public function setDefault(string | bool | int | float | array | null $default = null) |
|
| 78 | 78 | { |
| 79 | 79 | } |
| 80 | 80 | |
| 81 | 81 | /** |
| 82 | 82 | * Returns the default value. |
| 83 | 83 | */ |
| 84 | - public function getDefault(): string|bool|int|float|array|null |
|
| 84 | + public function getDefault(): string | bool | int | float | array | null |
|
| 85 | 85 | { |
| 86 | 86 | } |
| 87 | 87 | |
@@ -42,7 +42,7 @@ discard block |
||
| 42 | 42 | * @param string|array $values The values to look for in the raw parameters (can be an array) |
| 43 | 43 | * @param bool $onlyParams Only check real parameters, skip those following an end of options (--) signal |
| 44 | 44 | */ |
| 45 | - public function hasParameterOption(string|array $values, bool $onlyParams = false): bool |
|
| 45 | + public function hasParameterOption(string | array $values, bool $onlyParams = false): bool |
|
| 46 | 46 | { |
| 47 | 47 | } |
| 48 | 48 | |
@@ -60,7 +60,7 @@ discard block |
||
| 60 | 60 | * |
| 61 | 61 | * @return mixed |
| 62 | 62 | */ |
| 63 | - public function getParameterOption(string|array $values, string|bool|int|float|array|null $default = false, bool $onlyParams = false) |
|
| 63 | + public function getParameterOption(string | array $values, string | bool | int | float | array | null $default = false, bool $onlyParams = false) |
|
| 64 | 64 | { |
| 65 | 65 | } |
| 66 | 66 | |
@@ -227,7 +227,7 @@ |
||
| 227 | 227 | { |
| 228 | 228 | } |
| 229 | 229 | |
| 230 | - public function countUsersTotal(int $limit = 0, bool $onlyMappedUsers = false): int|false |
|
| 230 | + public function countUsersTotal(int $limit = 0, bool $onlyMappedUsers = false): int | false |
|
| 231 | 231 | { |
| 232 | 232 | } |
| 233 | 233 | |
@@ -60,7 +60,7 @@ |
||
| 60 | 60 | /** |
| 61 | 61 | * @return string |
| 62 | 62 | */ |
| 63 | - public static function formatTime(int|float $secs, int $precision = 1) |
|
| 63 | + public static function formatTime(int | float $secs, int $precision = 1) |
|
| 64 | 64 | { |
| 65 | 65 | } |
| 66 | 66 | |
@@ -61,7 +61,7 @@ discard block |
||
| 61 | 61 | { |
| 62 | 62 | } |
| 63 | 63 | |
| 64 | - public function getShare(int $id, ?string $user = null): array|false |
|
| 64 | + public function getShare(int $id, ?string $user = null): array | false |
|
| 65 | 65 | { |
| 66 | 66 | } |
| 67 | 67 | |
@@ -71,7 +71,7 @@ discard block |
||
| 71 | 71 | * @param string $token |
| 72 | 72 | * @return array|false |
| 73 | 73 | */ |
| 74 | - public function getShareByToken(string $token): array|false |
|
| 74 | + public function getShareByToken(string $token): array | false |
|
| 75 | 75 | { |
| 76 | 76 | } |
| 77 | 77 | |
@@ -238,7 +238,7 @@ discard block |
||
| 238 | 238 | * |
| 239 | 239 | * @return $this |
| 240 | 240 | */ |
| 241 | - public function setDefinition(array|InputDefinition $definition): static |
|
| 241 | + public function setDefinition(array | InputDefinition $definition): static |
|
| 242 | 242 | { |
| 243 | 243 | } |
| 244 | 244 | |
@@ -288,7 +288,7 @@ discard block |
||
| 288 | 288 | * |
| 289 | 289 | * @throws InvalidArgumentException If option mode is invalid or incompatible |
| 290 | 290 | */ |
| 291 | - public function addOption(string $name, string|array|null $shortcut = null, ?int $mode = null, string $description = '', mixed $default = null): static |
|
| 291 | + public function addOption(string $name, string | array | null $shortcut = null, ?int $mode = null, string $description = '', mixed $default = null): static |
|
| 292 | 292 | { |
| 293 | 293 | } |
| 294 | 294 | |
@@ -98,7 +98,7 @@ discard block |
||
| 98 | 98 | * @param string $search |
| 99 | 99 | * @return int|bool |
| 100 | 100 | */ |
| 101 | - public function count($search = ''): int|bool |
|
| 101 | + public function count($search = ''): int | bool |
|
| 102 | 102 | { |
| 103 | 103 | } |
| 104 | 104 | |
@@ -107,7 +107,7 @@ discard block |
||
| 107 | 107 | * |
| 108 | 108 | * @return int|bool |
| 109 | 109 | */ |
| 110 | - public function countDisabled(): int|bool |
|
| 110 | + public function countDisabled(): int | bool |
|
| 111 | 111 | { |
| 112 | 112 | } |
| 113 | 113 | |
@@ -46,8 +46,8 @@ |
||
| 46 | 46 | public const TIMEOUT_PRECISION = 0.2; |
| 47 | 47 | |
| 48 | 48 | public const ITER_NON_BLOCKING = 1; // By default, iterating over outputs is a blocking call, use this flag to make it non-blocking |
| 49 | - public const ITER_KEEP_OUTPUT = 2; // By default, outputs are cleared while iterating, use this flag to keep them in memory |
|
| 50 | - public const ITER_SKIP_OUT = 4; // Use this flag to skip STDOUT while iterating |
|
| 49 | + public const ITER_KEEP_OUTPUT = 2; // By default, outputs are cleared while iterating, use this flag to keep them in memory |
|
| 50 | + public const ITER_SKIP_OUT = 4; // Use this flag to skip STDOUT while iterating |
|
| 51 | 51 | public const ITER_SKIP_ERR = 8; |
| 52 | 52 | |
| 53 | 53 | /** |
@@ -39,7 +39,7 @@ discard block |
||
| 39 | 39 | * |
| 40 | 40 | * @return void |
| 41 | 41 | */ |
| 42 | - public function write(string|iterable $messages, bool $newline = false, int $options = 0) |
|
| 42 | + public function write(string | iterable $messages, bool $newline = false, int $options = 0) |
|
| 43 | 43 | { |
| 44 | 44 | } |
| 45 | 45 | |
@@ -51,7 +51,7 @@ discard block |
||
| 51 | 51 | * |
| 52 | 52 | * @return void |
| 53 | 53 | */ |
| 54 | - public function writeln(string|iterable $messages, int $options = 0) |
|
| 54 | + public function writeln(string | iterable $messages, int $options = 0) |
|
| 55 | 55 | { |
| 56 | 56 | } |
| 57 | 57 | |