@@ -106,10 +106,11 @@ |
||
106 | 106 | $files = array_map(function ($file_path) { |
107 | 107 | $file = $this->pretty($file_path); |
108 | 108 | $file_mime = mime_content_type($this->storage->rootPath() . $file_path); |
109 | - if ($this->helper->availableMimeTypes() == "*" || (is_array($this->helper->availableMimeTypes()) && in_array($file_mime, $this->helper->availableMimeTypes()))) |
|
110 | - return $file; |
|
111 | - else |
|
112 | - return null; |
|
109 | + if ($this->helper->availableMimeTypes() == "*" || (is_array($this->helper->availableMimeTypes()) && in_array($file_mime, $this->helper->availableMimeTypes()))) { |
|
110 | + return $file; |
|
111 | + } else { |
|
112 | + return null; |
|
113 | + } |
|
113 | 114 | return $file; |
114 | 115 | }, $this->storage->files()); |
115 | 116 |