@@ -1274,7 +1274,7 @@ |
||
| 1274 | 1274 | ); |
| 1275 | 1275 | } |
| 1276 | 1276 | $parentFolderIdentifier = $this->canonicalizeAndCheckFolderIdentifier($parentFolderIdentifier); |
| 1277 | - $fileIdentifier = $this->canonicalizeAndCheckFileIdentifier( |
|
| 1277 | + $fileIdentifier = $this->canonicalizeAndCheckFileIdentifier( |
|
| 1278 | 1278 | $parentFolderIdentifier . $this->sanitizeFileName(ltrim($fileName, '/')) |
| 1279 | 1279 | ); |
| 1280 | 1280 | $absoluteFilePath = $this->getAbsolutePath($fileIdentifier); |
@@ -172,8 +172,8 @@ discard block |
||
| 172 | 172 | |
| 173 | 173 | // Check for remaining edges in the graph |
| 174 | 174 | $cycles = []; |
| 175 | - array_walk($dependencyGraph, function ($dependencies, $fromId) use (&$cycles) { |
|
| 176 | - array_walk($dependencies, function ($dependency, $toId) use (&$cycles, $fromId) { |
|
| 175 | + array_walk($dependencyGraph, function($dependencies, $fromId) use (&$cycles) { |
|
| 176 | + array_walk($dependencies, function($dependency, $toId) use (&$cycles, $fromId) { |
|
| 177 | 177 | if ($dependency) { |
| 178 | 178 | $cycles[] = $fromId . '->' . $toId; |
| 179 | 179 | } |
@@ -267,7 +267,7 @@ discard block |
||
| 267 | 267 | { |
| 268 | 268 | $preparedDependencies = []; |
| 269 | 269 | foreach ($dependencies as $id => $dependency) { |
| 270 | - foreach ([ $beforeKey, $afterKey ] as $relation) { |
|
| 270 | + foreach ([$beforeKey, $afterKey] as $relation) { |
|
| 271 | 271 | if (!isset($dependency[$relation]) || !is_array($dependency[$relation])) { |
| 272 | 272 | $dependency[$relation] = []; |
| 273 | 273 | } |
@@ -286,7 +286,7 @@ |
||
| 286 | 286 | while (($zipEntry = zip_read($zip)) !== false) { |
| 287 | 287 | $zipEntryName = zip_entry_name($zipEntry); |
| 288 | 288 | if (strpos($zipEntryName, '/') !== false) { |
| 289 | - $zipEntryPathSegments = explode('/', $zipEntryName); |
|
| 289 | + $zipEntryPathSegments = explode('/', $zipEntryName); |
|
| 290 | 290 | $fileName = array_pop($zipEntryPathSegments); |
| 291 | 291 | // It is a folder, because the last segment is empty, let's create it |
| 292 | 292 | if (empty($fileName)) { |
@@ -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 | } |
@@ -174,10 +174,10 @@ |
||
| 174 | 174 | if (!empty($frameworkConfiguration['persistence']['storagePid'])) { |
| 175 | 175 | if (is_array($frameworkConfiguration['persistence']['storagePid'])) { |
| 176 | 176 | /** |
| 177 | - * We simulate the frontend to enable the use of cObjects in |
|
| 178 | - * stdWrap. Than we convert the configuration to normal TypoScript |
|
| 179 | - * and apply the stdWrap to the storagePid |
|
| 180 | - */ |
|
| 177 | + * We simulate the frontend to enable the use of cObjects in |
|
| 178 | + * stdWrap. Than we convert the configuration to normal TypoScript |
|
| 179 | + * and apply the stdWrap to the storagePid |
|
| 180 | + */ |
|
| 181 | 181 | if (!$this->environmentService->isEnvironmentInFrontendMode()) { |
| 182 | 182 | \TYPO3\CMS\Extbase\Utility\FrontendSimulatorUtility::simulateFrontendEnvironment($this->getContentObject()); |
| 183 | 183 | } |
@@ -163,7 +163,7 @@ |
||
| 163 | 163 | $binaryData = ''; |
| 164 | 164 | $length = strlen($hexadecimalData); |
| 165 | 165 | for ($i = 0; $i < $length; $i += 2) { |
| 166 | - $binaryData .= pack('C', hexdec(substr($hexadecimalData, $i, 2))); |
|
| 166 | + $binaryData .= pack('C', hexdec(substr($hexadecimalData, $i, 2))); |
|
| 167 | 167 | } |
| 168 | 168 | return $binaryData; |
| 169 | 169 | } |
@@ -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 |
@@ -103,7 +103,7 @@ |
||
| 103 | 103 | } elseif ($multiple === true) { |
| 104 | 104 | $nameAttribute .= '[]'; |
| 105 | 105 | } elseif ($propertyValue !== null) { |
| 106 | - $checked = (boolean) $propertyValue === (boolean) $valueAttribute; |
|
| 106 | + $checked = (boolean)$propertyValue === (boolean)$valueAttribute; |
|
| 107 | 107 | } |
| 108 | 108 | |
| 109 | 109 | $this->registerFieldNameForFormTokenGeneration($nameAttribute); |
@@ -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) { |