@@ -31,7 +31,7 @@ |
||
| 31 | 31 | |
| 32 | 32 | list($type, $subType) = $this->explode($mediaType); |
| 33 | 33 | |
| 34 | - if (!array_key_exists($type, $this->allowedMediaType)){ |
|
| 34 | + if (!array_key_exists($type, $this->allowedMediaType)) { |
|
| 35 | 35 | throw new RuleException(sprintf($this->errorMessage, sprintf('%s/*', $type))); |
| 36 | 36 | } |
| 37 | 37 | |
@@ -33,7 +33,7 @@ discard block |
||
| 33 | 33 | */ |
| 34 | 34 | public function allow(array|string $extension): Extension |
| 35 | 35 | { |
| 36 | - if (is_string($extension)){ |
|
| 36 | + if (is_string($extension)) { |
|
| 37 | 37 | $extension = explode(",", $extension); |
| 38 | 38 | } |
| 39 | 39 | |
@@ -49,7 +49,7 @@ discard block |
||
| 49 | 49 | PATHINFO_EXTENSION |
| 50 | 50 | )); |
| 51 | 51 | |
| 52 | - if (!in_array($extension, $this->allowed, true)){ |
|
| 52 | + if (!in_array($extension, $this->allowed, true)) { |
|
| 53 | 53 | throw new RuleException(sprintf($this->errorMessage, $extension)); |
| 54 | 54 | } |
| 55 | 55 | } |