@@ -723,7 +723,7 @@ |
||
723 | 723 | * stripped from the key. |
724 | 724 | * |
725 | 725 | * @param string $key The key, possibly consisting of multiple key segments separated by unescaped dots |
726 | - * @return array Array with key segment and remaining part of $key |
|
726 | + * @return string[] Array with key segment and remaining part of $key |
|
727 | 727 | */ |
728 | 728 | protected function parseNextKeySegment($key) |
729 | 729 | { |
@@ -365,7 +365,7 @@ discard block |
||
365 | 365 | // Find object name string until we meet an operator |
366 | 366 | $varL = strcspn($line, TAB . ' {=<>('); |
367 | 367 | // check for special ":=" operator |
368 | - if ($varL > 0 && substr($line, $varL-1, 2) === ':=') { |
|
368 | + if ($varL > 0 && substr($line, $varL - 1, 2) === ':=') { |
|
369 | 369 | --$varL; |
370 | 370 | } |
371 | 371 | // also remove tabs after the object string name |
@@ -877,7 +877,7 @@ discard block |
||
877 | 877 | $filePointerPathParts = explode('/', substr($filename, 4)); |
878 | 878 | |
879 | 879 | // remove file part, determine whether to load setup or constants |
880 | - list($includeType, ) = explode('.', array_pop($filePointerPathParts)); |
|
880 | + list($includeType,) = explode('.', array_pop($filePointerPathParts)); |
|
881 | 881 | |
882 | 882 | if (in_array($includeType, ['setup', 'constants'])) { |
883 | 883 | // adapt extension key to required format (no underscores) |
@@ -164,7 +164,7 @@ |
||
164 | 164 | * Calculates the input with parenthesis levels |
165 | 165 | * |
166 | 166 | * @param string $string Input string, eg "(123 + 456) / 789 - 4 |
167 | - * @return int Calculated value. Or error string. |
|
167 | + * @return string Calculated value. Or error string. |
|
168 | 168 | * @see calculateWithPriorityToAdditionAndSubtraction(), \TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer::stdWrap() |
169 | 169 | */ |
170 | 170 | public static function calculateWithParentheses($string) |
@@ -25,7 +25,7 @@ |
||
25 | 25 | * Returns meta-data for a given extension. |
26 | 26 | * |
27 | 27 | * @param string $extensionKey |
28 | - * @return array |
|
28 | + * @return string |
|
29 | 29 | */ |
30 | 30 | public static function getExtensionMetaData($extensionKey) |
31 | 31 | { |
@@ -226,7 +226,7 @@ |
||
226 | 226 | /** |
227 | 227 | * Returns the default backend storage pid |
228 | 228 | * |
229 | - * @return string |
|
229 | + * @return integer |
|
230 | 230 | */ |
231 | 231 | public function getDefaultBackendStoragePid() |
232 | 232 | { |
@@ -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 | } |
@@ -48,7 +48,7 @@ discard block |
||
48 | 48 | /** |
49 | 49 | * Returns TypoScript Setup array from current Environment. |
50 | 50 | * |
51 | - * @return array the raw TypoScript setup |
|
51 | + * @return string the raw TypoScript setup |
|
52 | 52 | */ |
53 | 53 | public function getTypoScriptSetup() |
54 | 54 | { |
@@ -189,7 +189,7 @@ discard block |
||
189 | 189 | /** |
190 | 190 | * Returns the default backend storage pid |
191 | 191 | * |
192 | - * @return string |
|
192 | + * @return integer |
|
193 | 193 | */ |
194 | 194 | public function getDefaultBackendStoragePid() |
195 | 195 | { |
@@ -120,7 +120,7 @@ |
||
120 | 120 | * Reconstitutes a property. Only for internal use. |
121 | 121 | * |
122 | 122 | * @param string $propertyName |
123 | - * @param mixed $propertyValue |
|
123 | + * @param integer $propertyValue |
|
124 | 124 | * @return bool |
125 | 125 | */ |
126 | 126 | public function _setProperty($propertyName, $propertyValue) |
@@ -79,7 +79,7 @@ |
||
79 | 79 | } |
80 | 80 | |
81 | 81 | /** |
82 | - * @return string |
|
82 | + * @return boolean |
|
83 | 83 | */ |
84 | 84 | public function isRequired() |
85 | 85 | { |
@@ -333,7 +333,7 @@ |
||
333 | 333 | * |
334 | 334 | * NOTE: This method only supports web requests and will thrown an exception if used with other request types. |
335 | 335 | * |
336 | - * @param mixed $uri A string representation of a URI |
|
336 | + * @param string $uri A string representation of a URI |
|
337 | 337 | * @param int $delay (optional) The delay in seconds. Default is no delay. |
338 | 338 | * @param int $statusCode (optional) The HTTP status code for the redirect. Default is "303 See Other |
339 | 339 | * @throws UnsupportedRequestTypeException If the request is not a web request |
@@ -444,7 +444,7 @@ |
||
444 | 444 | /** |
445 | 445 | * Determines the fully qualified view object name. |
446 | 446 | * |
447 | - * @return mixed The fully qualified view object name or FALSE if no matching view could be found. |
|
447 | + * @return string The fully qualified view object name or FALSE if no matching view could be found. |
|
448 | 448 | * @api |
449 | 449 | */ |
450 | 450 | protected function resolveViewObjectName() |