@@ -65,7 +65,7 @@ |
||
| 65 | 65 | |
| 66 | 66 | private function setErrorHandler(): void |
| 67 | 67 | { |
| 68 | - set_error_handler(function (int $number, string $message, string $file, int $line) { |
|
| 68 | + set_error_handler(function(int $number, string $message, string $file, int $line) { |
|
| 69 | 69 | |
| 70 | 70 | if (!(error_reporting() & $number)) { |
| 71 | 71 | return; |
@@ -159,7 +159,7 @@ discard block |
||
| 159 | 159 | */ |
| 160 | 160 | public function getAttribute($attribute, $default = null) |
| 161 | 161 | { |
| 162 | - if (! isset($this->attributes[$attribute])) { |
|
| 162 | + if (!isset($this->attributes[$attribute])) { |
|
| 163 | 163 | return $default; |
| 164 | 164 | } |
| 165 | 165 | |
@@ -219,7 +219,7 @@ discard block |
||
| 219 | 219 | continue; |
| 220 | 220 | } |
| 221 | 221 | |
| 222 | - if (! $file instanceof UploadedFileInterface) { |
|
| 222 | + if (!$file instanceof UploadedFileInterface) { |
|
| 223 | 223 | throw new \InvalidArgumentException('Invalid leaf in uploaded files structure'); |
| 224 | 224 | } |
| 225 | 225 | } |
@@ -255,7 +255,7 @@ |
||
| 255 | 255 | */ |
| 256 | 256 | public static function fromJson($data, int $status = self::HTTP_OK, array $headers = []) |
| 257 | 257 | { |
| 258 | - if (! $data instanceof \JsonSerializable && ! is_array($data)) { |
|
| 258 | + if (!$data instanceof \JsonSerializable && !is_array($data)) { |
|
| 259 | 259 | throw new InvalidArgumentException('Invalid $data provided, method expects array or instance of \JsonSerializable.'); |
| 260 | 260 | } |
| 261 | 261 | |
@@ -48,7 +48,7 @@ |
||
| 48 | 48 | { |
| 49 | 49 | $result = $this->config; |
| 50 | 50 | $key = explode('.', $key); |
| 51 | - foreach($key as $part) { |
|
| 51 | + foreach ($key as $part) { |
|
| 52 | 52 | if (!is_array($result) || !isset($result[$part])) { |
| 53 | 53 | return null; |
| 54 | 54 | } |