@@ -141,12 +141,12 @@ discard block |
||
| 141 | 141 | $storages = $user->getFileStorages(); |
| 142 | 142 | foreach ($storages as $resourceStorage) { |
| 143 | 143 | $processingFolders = $resourceStorage->getProcessingFolders(); |
| 144 | - $processingFolderIdentifiers = array_map(function ($folder) { |
|
| 144 | + $processingFolderIdentifiers = array_map(function($folder) { |
|
| 145 | 145 | return $folder->getIdentifier(); |
| 146 | 146 | }, $processingFolders); |
| 147 | - $resourceStorage->addFileAndFolderNameFilter(function ($itemName, $itemIdentifier, $parentIdentifier, array $additionalInformation, DriverInterface $driver) use ($resourceStorage, $search, $processingFolderIdentifiers) { |
|
| 147 | + $resourceStorage->addFileAndFolderNameFilter(function($itemName, $itemIdentifier, $parentIdentifier, array $additionalInformation, DriverInterface $driver) use ($resourceStorage, $search, $processingFolderIdentifiers) { |
|
| 148 | 148 | // Skip items in processing folders |
| 149 | - $isInProcessingFolder = array_filter($processingFolderIdentifiers, function ($processingFolderIdentifier) use ($parentIdentifier) { |
|
| 149 | + $isInProcessingFolder = array_filter($processingFolderIdentifiers, function($processingFolderIdentifier) use ($parentIdentifier) { |
|
| 150 | 150 | return stripos($parentIdentifier, $processingFolderIdentifier) !== false; |
| 151 | 151 | }); |
| 152 | 152 | if (!empty($isInProcessingFolder)) { |
@@ -236,7 +236,7 @@ discard block |
||
| 236 | 236 | { |
| 237 | 237 | $fileMounts = $resourceStorage->getFileMounts(); |
| 238 | 238 | if (!empty($fileMounts)) { |
| 239 | - return array_map(function ($fileMountInfo) { |
|
| 239 | + return array_map(function($fileMountInfo) { |
|
| 240 | 240 | return [ |
| 241 | 241 | 'folder' => $fileMountInfo['folder'], |
| 242 | 242 | 'name' => $fileMountInfo['title'], |
@@ -64,7 +64,7 @@ discard block |
||
| 64 | 64 | } else { |
| 65 | 65 | $items = $this->treeProvider->getRootNodes($this->getBackendUser()); |
| 66 | 66 | } |
| 67 | - $items = array_map(function (array $item) { |
|
| 67 | + $items = array_map(function(array $item) { |
|
| 68 | 68 | return $this->prepareItemForOutput($item); |
| 69 | 69 | }, $items); |
| 70 | 70 | return new JsonResponse($items); |
@@ -128,14 +128,14 @@ discard block |
||
| 128 | 128 | foreach ($items as $item) { |
| 129 | 129 | $stateIdentifier = $item['stateIdentifier']; |
| 130 | 130 | $parentIdentifier = $item['parentIdentifier']; |
| 131 | - $siblings = array_filter($items, function ($itemInArray) use ($parentIdentifier) { |
|
| 131 | + $siblings = array_filter($items, function($itemInArray) use ($parentIdentifier) { |
|
| 132 | 132 | if ($itemInArray['parentIdentifier'] === $parentIdentifier) { |
| 133 | 133 | return true; |
| 134 | 134 | } |
| 135 | 135 | return false; |
| 136 | 136 | }); |
| 137 | 137 | $positionFound = false; |
| 138 | - $siblingsBeforeInSameDepth = array_filter($siblings, function ($itemInArray) use ($stateIdentifier, &$positionFound) { |
|
| 138 | + $siblingsBeforeInSameDepth = array_filter($siblings, function($itemInArray) use ($stateIdentifier, &$positionFound) { |
|
| 139 | 139 | if ($itemInArray['stateIdentifier'] === $stateIdentifier) { |
| 140 | 140 | $positionFound = true; |
| 141 | 141 | } |