@@ -20,7 +20,7 @@ discard block |
||
| 20 | 20 | * @param bool $all |
| 21 | 21 | * @return array|string |
| 22 | 22 | */ |
| 23 | - public static function getByPath(string $path, bool $all = false): array|string |
|
| 23 | + public static function getByPath(string $path, bool $all = false): array | string |
|
| 24 | 24 | { |
| 25 | 25 | $ext = pathinfo($path, PATHINFO_EXTENSION); |
| 26 | 26 | return self::getByExtension($ext, $all); |
@@ -31,7 +31,7 @@ discard block |
||
| 31 | 31 | * @param bool $all |
| 32 | 32 | * @return array|string |
| 33 | 33 | */ |
| 34 | - public static function getByExtension(string $ext, bool $all = false): array|string |
|
| 34 | + public static function getByExtension(string $ext, bool $all = false): array | string |
|
| 35 | 35 | { |
| 36 | 36 | $mimeType = MimeTypes::getDefault(); |
| 37 | 37 | $types = $mimeType->getMimeTypes($ext); |
@@ -52,7 +52,7 @@ discard block |
||
| 52 | 52 | * @param bool $all |
| 53 | 53 | * @return array|string |
| 54 | 54 | */ |
| 55 | - public static function getExtensionByMimeType(string $mime, bool $all = false): array|string |
|
| 55 | + public static function getExtensionByMimeType(string $mime, bool $all = false): array | string |
|
| 56 | 56 | { |
| 57 | 57 | $mimeType = MimeTypes::getDefault(); |
| 58 | 58 | $extensions = $mimeType->getExtensions($mime); |