@@ -347,7 +347,7 @@ |
||
| 347 | 347 | // Check if this is a submodule |
| 348 | 348 | $mainModule = ''; |
| 349 | 349 | if (strpos($name, '_') !== false) { |
| 350 | - list($mainModule, ) = explode('_', $name, 2); |
|
| 350 | + list($mainModule,) = explode('_', $name, 2); |
|
| 351 | 351 | } |
| 352 | 352 | |
| 353 | 353 | // check if there is a navigation component (like the pagetree) |
@@ -473,7 +473,7 @@ |
||
| 473 | 473 | $out = '<ul class="list-tree list-tree-root">'; |
| 474 | 474 | // Evaluate AJAX request |
| 475 | 475 | if (TYPO3_REQUESTTYPE & TYPO3_REQUESTTYPE_AJAX) { |
| 476 | - list(, $expandCollapseCommand, $expandedFolderHash, ) = $this->evaluateExpandCollapseParameter(); |
|
| 476 | + list(, $expandCollapseCommand, $expandedFolderHash,) = $this->evaluateExpandCollapseParameter(); |
|
| 477 | 477 | if ($expandCollapseCommand == 1) { |
| 478 | 478 | $doExpand = true; |
| 479 | 479 | } else { |
@@ -224,7 +224,7 @@ |
||
| 224 | 224 | public function toArray() |
| 225 | 225 | { |
| 226 | 226 | return array_map( |
| 227 | - function ($loadedExtElement) { |
|
| 227 | + function($loadedExtElement) { |
|
| 228 | 228 | return $loadedExtElement->toArray(); |
| 229 | 229 | }, |
| 230 | 230 | iterator_to_array($this) |
@@ -342,7 +342,7 @@ |
||
| 342 | 342 | { |
| 343 | 343 | $error = null; |
| 344 | 344 | if (!is_resource($resource) && is_string($resource)) { |
| 345 | - set_error_handler(function ($e) use (&$error) { |
|
| 345 | + set_error_handler(function($e) use (&$error) { |
|
| 346 | 346 | $error = $e; |
| 347 | 347 | }, E_WARNING); |
| 348 | 348 | $resource = fopen($resource, $mode); |
@@ -652,7 +652,7 @@ discard block |
||
| 652 | 652 | { |
| 653 | 653 | return preg_replace_callback( |
| 654 | 654 | '/(?:[^' . self::UNRESERVED_CHARLIST . ':@&=\+\$,\/;%]+|%(?![A-Fa-f0-9]{2}))/', |
| 655 | - function ($matches) { |
|
| 655 | + function($matches) { |
|
| 656 | 656 | return rawurlencode($matches[0]); |
| 657 | 657 | }, |
| 658 | 658 | $path |
@@ -730,7 +730,7 @@ discard block |
||
| 730 | 730 | { |
| 731 | 731 | return preg_replace_callback( |
| 732 | 732 | '/(?:[^' . self::UNRESERVED_CHARLIST . self::SUBDELIMITER_CHARLIST . '%:@\/\?]+|%(?![A-Fa-f0-9]{2}))/', |
| 733 | - function ($matches) { |
|
| 733 | + function($matches) { |
|
| 734 | 734 | return rawurlencode($matches[0]); |
| 735 | 735 | }, |
| 736 | 736 | $value |
@@ -192,7 +192,7 @@ |
||
| 192 | 192 | // All implementations of getTreeList allow to pass the ids negative to include them into the result |
| 193 | 193 | // otherwise only childpages are returned |
| 194 | 194 | $storagePids = \TYPO3\CMS\Core\Utility\GeneralUtility::intExplode(',', $frameworkConfiguration['persistence']['storagePid']); |
| 195 | - array_walk($storagePids, function (&$storagePid) { |
|
| 195 | + array_walk($storagePids, function(&$storagePid) { |
|
| 196 | 196 | if ($storagePid > 0) { |
| 197 | 197 | $storagePid = -$storagePid; |
| 198 | 198 | } |
@@ -66,7 +66,7 @@ discard block |
||
| 66 | 66 | // check for required options being set |
| 67 | 67 | array_walk( |
| 68 | 68 | $this->supportedOptions, |
| 69 | - function ($supportedOptionData, $supportedOptionName, $options) { |
|
| 69 | + function($supportedOptionData, $supportedOptionName, $options) { |
|
| 70 | 70 | if (isset($supportedOptionData[3]) && $supportedOptionData[3] === true && !array_key_exists($supportedOptionName, $options)) { |
| 71 | 71 | throw new InvalidValidationOptionsException('Required validation option not set: ' . $supportedOptionName, 1379981891); |
| 72 | 72 | } |
@@ -77,7 +77,7 @@ discard block |
||
| 77 | 77 | // merge with default values |
| 78 | 78 | $this->options = array_merge( |
| 79 | 79 | array_map( |
| 80 | - function ($value) { |
|
| 80 | + function($value) { |
|
| 81 | 81 | return $value[0]; |
| 82 | 82 | }, |
| 83 | 83 | $this->supportedOptions |
@@ -27,7 +27,7 @@ |
||
| 27 | 27 | { |
| 28 | 28 | @usort( |
| 29 | 29 | $parameters['items'], |
| 30 | - function ($item1, $item2) { |
|
| 30 | + function($item1, $item2) { |
|
| 31 | 31 | return strcasecmp($this->getLanguageService()->sL($item1[0]), $this->getLanguageService()->sL($item2[0])); |
| 32 | 32 | } |
| 33 | 33 | ); |
@@ -210,7 +210,7 @@ |
||
| 210 | 210 | if ($sortingProperty !== '' && count($this->files) > 1) { |
| 211 | 211 | @usort( |
| 212 | 212 | $this->files, |
| 213 | - function ( |
|
| 213 | + function( |
|
| 214 | 214 | FileInterface $a, |
| 215 | 215 | FileInterface $b |
| 216 | 216 | ) use ($sortingProperty) { |