Completed
Push — swp-2216-mim ( f94f7a...bd5d6f )
by
unknown
48s
created
src/SWP/Bundle/CoreBundle/Util/MimeTypeHelper.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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);
Please login to merge, or discard this patch.