@@ -73,7 +73,7 @@ discard block |
||
| 73 | 73 | * |
| 74 | 74 | * @param string|null $json_config_file The path to the JSON configuration file to use. |
| 75 | 75 | */ |
| 76 | - public static function init(?string $json_config_file = null) : void |
|
| 76 | + public static function init(? string $json_config_file = null) : void |
|
| 77 | 77 | { |
| 78 | 78 | // Check if the system is already initiated |
| 79 | 79 | |
@@ -133,7 +133,7 @@ discard block |
||
| 133 | 133 | * |
| 134 | 134 | * @param string|null $json_config_file |
| 135 | 135 | */ |
| 136 | - public static function initConfig(?string $json_config_file = null) : void |
|
| 136 | + public static function initConfig(? string $json_config_file = null) : void |
|
| 137 | 137 | { |
| 138 | 138 | // Check if the system is already initiated |
| 139 | 139 | |
@@ -152,7 +152,7 @@ discard block |
||
| 152 | 152 | |
| 153 | 153 | $this->inProgress = $name; |
| 154 | 154 | |
| 155 | - usort($this->events[$name], function ($a, $b) { |
|
| 155 | + usort($this->events[$name], function($a, $b) { |
|
| 156 | 156 | return $a['priority'] <=> $b['priority']; |
| 157 | 157 | }); |
| 158 | 158 | |
@@ -170,7 +170,7 @@ discard block |
||
| 170 | 170 | * |
| 171 | 171 | * @return string|null |
| 172 | 172 | */ |
| 173 | - public function getInProgress() : ?string |
|
| 173 | + public function getInProgress() : ? string |
|
| 174 | 174 | { |
| 175 | 175 | return $this->inProgress; |
| 176 | 176 | } |
@@ -180,7 +180,7 @@ |
||
| 180 | 180 | /** |
| 181 | 181 | * Add a new route. |
| 182 | 182 | * |
| 183 | - * @param string|string[] $http_method The HTTP method, example: GET, POST, PATCH, PUT, DELETE, CLI, etc. Can be an array of values. |
|
| 183 | + * @param string $http_method The HTTP method, example: GET, POST, PATCH, PUT, DELETE, CLI, etc. Can be an array of values. |
|
| 184 | 184 | * @param string $route The route |
| 185 | 185 | * @param string $method_path The Method Path |
| 186 | 186 | * @param array $parameters The parameters to pass |