Completed
Push — develop ( 047ab8...b0109b )
by Jöran
15:06
created
Classes/Service/FileCollectionService.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -202,7 +202,7 @@  discard block
 block discarded – undo
202 202
 
203 203
             // Load all image and sort them by folder_hash
204 204
             foreach ($collection->getItems() as $item) {
205
-                if($item->getProperty('folder_hash') === $galleryFolderHash) {
205
+                if ($item->getProperty('folder_hash') === $galleryFolderHash) {
206 206
                     if (get_class($item) === 'TYPO3\CMS\Core\Resource\FileReference') {
207 207
                         array_push($allItems, $this->getFileObjectFromFileReference($item));
208 208
                     } else {
@@ -270,7 +270,7 @@  discard block
 block discarded – undo
270 270
      */
271 271
     protected function sortFileObjectsByName(&$items, $direction)
272 272
     {
273
-        $lowercaseNames = array_map(function ($n) {
273
+        $lowercaseNames = array_map(function($n) {
274 274
             return strtolower($n->getName());
275 275
         }, $items);
276 276
 
@@ -284,7 +284,7 @@  discard block
 block discarded – undo
284 284
      */
285 285
     protected function sortFileObjectsByDate(&$items, $direction)
286 286
     {
287
-        $dates = array_map(function ($n) {
287
+        $dates = array_map(function($n) {
288 288
             return strtolower($n->getCreationTime());
289 289
         }, $items);
290 290
 
@@ -298,7 +298,7 @@  discard block
 block discarded – undo
298 298
      */
299 299
     protected function sortFileObjectsByFolderHash(&$items, $direction)
300 300
     {
301
-        $folderhashes = array_map(function ($n) {
301
+        $folderhashes = array_map(function($n) {
302 302
             return strtolower($n->getProperty('folder_hash'));
303 303
         }, $items);
304 304
 
Please login to merge, or discard this patch.