@@ -344,7 +344,7 @@ |
||
344 | 344 | { |
345 | 345 | $error = null; |
346 | 346 | if (!is_resource($resource) && is_string($resource)) { |
347 | - set_error_handler(function ($e) use (&$error): bool { |
|
347 | + set_error_handler(function($e) use (&$error): bool { |
|
348 | 348 | $error = $e; |
349 | 349 | return true; |
350 | 350 | }, E_WARNING); |
@@ -293,7 +293,7 @@ discard block |
||
293 | 293 | $direction = strtolower($direction); |
294 | 294 | @usort( |
295 | 295 | $items, |
296 | - function ($item1, $item2) use ($direction) { |
|
296 | + function($item1, $item2) use ($direction) { |
|
297 | 297 | if ($direction === 'desc') { |
298 | 298 | return (strcasecmp($item1[0], $item2[0]) <= 0) ? 1 : 0; |
299 | 299 | } |
@@ -305,7 +305,7 @@ discard block |
||
305 | 305 | $direction = strtolower($direction); |
306 | 306 | @usort( |
307 | 307 | $items, |
308 | - function ($item1, $item2) use ($direction) { |
|
308 | + function($item1, $item2) use ($direction) { |
|
309 | 309 | if ($direction === 'desc') { |
310 | 310 | return (strcasecmp($item1[1], $item2[1]) <= 0) ? 1 : 0; |
311 | 311 | } |
@@ -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): bool { |
|
138 | + $siblingsBeforeInSameDepth = array_filter($siblings, function($itemInArray) use ($stateIdentifier, &$positionFound): bool { |
|
139 | 139 | if ($itemInArray['stateIdentifier'] === $stateIdentifier) { |
140 | 140 | $positionFound = true; |
141 | 141 | return false; |