@@ -105,7 +105,7 @@ |
||
| 105 | 105 | // If the key is already set |
| 106 | 106 | if (isset($this->{$type}[$key])) { |
| 107 | 107 | // If the key isn't already an array |
| 108 | - if (! is_array($this->{$type}[$key])) { |
|
| 108 | + if (!is_array($this->{$type}[$key])) { |
|
| 109 | 109 | // Make it an array with the current value |
| 110 | 110 | $this->{$type}[$key] = [$this->{$type}[$key]]; |
| 111 | 111 | } |
@@ -52,7 +52,7 @@ |
||
| 52 | 52 | $resource = $stream ?? fopen('php://stdout', 'wb'); |
| 53 | 53 | |
| 54 | 54 | // If the resource isn't a valid resource or not a stream |
| 55 | - if (! is_resource($resource) || 'stream' !== get_resource_type($resource)) { |
|
| 55 | + if (!is_resource($resource) || 'stream' !== get_resource_type($resource)) { |
|
| 56 | 56 | throw new InvalidArgumentException('Stream is not a valid stream resource.'); |
| 57 | 57 | } |
| 58 | 58 | |
@@ -76,7 +76,7 @@ discard block |
||
| 76 | 76 | } |
| 77 | 77 | |
| 78 | 78 | $this->sectionMessage( |
| 79 | - (! $namespace ? static::TAB : '') . $command->getName(), |
|
| 79 | + (!$namespace ? static::TAB : '') . $command->getName(), |
|
| 80 | 80 | $command->getDescription(), |
| 81 | 81 | $longestLength + 2 |
| 82 | 82 | ); |
@@ -184,7 +184,7 @@ discard block |
||
| 184 | 184 | { |
| 185 | 185 | usort( |
| 186 | 186 | $commands, |
| 187 | - static function (Command $item1, Command $item2) { |
|
| 187 | + static function(Command $item1, Command $item2) { |
|
| 188 | 188 | return $item1->getName() <=> $item2->getName(); |
| 189 | 189 | } |
| 190 | 190 | ); |
@@ -42,7 +42,7 @@ |
||
| 42 | 42 | self::CONCEAL => 28, |
| 43 | 43 | ]; |
| 44 | 44 | |
| 45 | - protected static ?array $VALUES = [ |
|
| 45 | + protected static ? array $VALUES = [ |
|
| 46 | 46 | self::BOLD => self::BOLD, |
| 47 | 47 | self::UNDERSCORE => self::UNDERSCORE, |
| 48 | 48 | self::BLINK => self::BLINK, |
@@ -30,7 +30,7 @@ |
||
| 30 | 30 | public const OPTIONAL = 'OPTIONAL'; |
| 31 | 31 | public const IS_ARRAY = 'IS_ARRAY'; |
| 32 | 32 | |
| 33 | - protected static ?array $VALUES = [ |
|
| 33 | + protected static ? array $VALUES = [ |
|
| 34 | 34 | self::REQUIRED => self::REQUIRED, |
| 35 | 35 | self::OPTIONAL => self::OPTIONAL, |
| 36 | 36 | self::IS_ARRAY => self::IS_ARRAY, |
@@ -58,7 +58,7 @@ |
||
| 58 | 58 | public const LIGHT_WHITE = 107; |
| 59 | 59 | public const DEFAULT = 49; |
| 60 | 60 | |
| 61 | - protected static ?array $VALUES = [ |
|
| 61 | + protected static ? array $VALUES = [ |
|
| 62 | 62 | self::BLACK => self::BLACK, |
| 63 | 63 | self::RED => self::RED, |
| 64 | 64 | self::GREEN => self::GREEN, |
@@ -58,7 +58,7 @@ |
||
| 58 | 58 | public const LIGHT_WHITE = 97; |
| 59 | 59 | public const DEFAULT = 39; |
| 60 | 60 | |
| 61 | - protected static ?array $VALUES = [ |
|
| 61 | + protected static ? array $VALUES = [ |
|
| 62 | 62 | self::BLACK => self::BLACK, |
| 63 | 63 | self::RED => self::RED, |
| 64 | 64 | self::GREEN => self::GREEN, |
@@ -30,7 +30,7 @@ |
||
| 30 | 30 | public const PLAIN = 'PLAIN'; |
| 31 | 31 | public const RAW = 'RAW'; |
| 32 | 32 | |
| 33 | - protected static ?array $VALUES = [ |
|
| 33 | + protected static ? array $VALUES = [ |
|
| 34 | 34 | self::NORMAL => self::NORMAL, |
| 35 | 35 | self::PLAIN => self::PLAIN, |
| 36 | 36 | self::RAW => self::RAW, |
@@ -30,7 +30,7 @@ |
||
| 30 | 30 | public const FAILURE = 1; |
| 31 | 31 | public const AUTO_EXIT = 255; |
| 32 | 32 | |
| 33 | - protected static ?array $VALUES = [ |
|
| 33 | + protected static ? array $VALUES = [ |
|
| 34 | 34 | self::SUCCESS => self::SUCCESS, |
| 35 | 35 | self::FAILURE => self::FAILURE, |
| 36 | 36 | self::AUTO_EXIT => self::AUTO_EXIT, |