@@ -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 | } |
@@ -58,7 +58,7 @@ discard block |
||
58 | 58 | // Define a lambda function to be applied to all members of this array dimension |
59 | 59 | // Call recursive if current value is of type array |
60 | 60 | // Write to $resultArray (by reference!) if types and value match |
61 | - $callback = function (&$value, $key) use ($needle, &$resultArray) { |
|
61 | + $callback = function(&$value, $key) use ($needle, &$resultArray) { |
|
62 | 62 | if ($value === $needle) { |
63 | 63 | ($resultArray[$key] = $value); |
64 | 64 | } elseif (is_array($value)) { |
@@ -277,7 +277,7 @@ discard block |
||
277 | 277 | if (empty($arrays)) { |
278 | 278 | return $arrays; |
279 | 279 | } |
280 | - $sortResult = uasort($arrays, function (array $a, array $b) use ($key, $ascending) { |
|
280 | + $sortResult = uasort($arrays, function(array $a, array $b) use ($key, $ascending) { |
|
281 | 281 | if (!isset($a[$key]) || !isset($b[$key])) { |
282 | 282 | throw new \RuntimeException('The specified sorting key "' . $key . '" is not available in the given array.', 1373727309); |
283 | 283 | } |
@@ -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 |
@@ -76,7 +76,7 @@ |
||
76 | 76 | // Sort configurations of each subcategory |
77 | 77 | foreach ($hierarchicConfiguration as &$catConfigurationArray) { |
78 | 78 | foreach ($catConfigurationArray as &$subcatConfigurationArray) { |
79 | - uasort($subcatConfigurationArray, function ($a, $b) { |
|
79 | + uasort($subcatConfigurationArray, function($a, $b) { |
|
80 | 80 | return strnatcmp($a['subcat'], $b['subcat']); |
81 | 81 | }); |
82 | 82 | } |
@@ -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); |