@@ -88,7 +88,7 @@ |
||
88 | 88 | /** |
89 | 89 | * Check main repository status: existence, has extensions, last update younger than 7 days |
90 | 90 | * |
91 | - * @return \TYPO3\CMS\Reports\Report\Status\Status |
|
91 | + * @return \TYPO3\CMS\Reports\Status |
|
92 | 92 | */ |
93 | 93 | protected function getMainRepositoryStatus() |
94 | 94 | { |
@@ -411,7 +411,7 @@ |
||
411 | 411 | /** |
412 | 412 | * Create a zip file from an extension |
413 | 413 | * |
414 | - * @param array $extension |
|
414 | + * @param string $extension |
|
415 | 415 | * @return string Name and path of create zip file |
416 | 416 | */ |
417 | 417 | public function createZipFileFromExtension($extension) |
@@ -423,7 +423,7 @@ discard block |
||
423 | 423 | |
424 | 424 | $version = $this->getExtensionVersion($extension); |
425 | 425 | if (empty($version)) { |
426 | - $version = '0.0.0'; |
|
426 | + $version = '0.0.0'; |
|
427 | 427 | } |
428 | 428 | |
429 | 429 | if (!@is_dir(PATH_site . 'typo3temp/var/ExtensionManager/')) { |
@@ -438,11 +438,11 @@ discard block |
||
438 | 438 | |
439 | 439 | // Get all the files of the extension, but exclude the ones specified in the excludePattern |
440 | 440 | $files = GeneralUtility::getAllFilesAndFoldersInPath( |
441 | - [], // No files pre-added |
|
442 | - $extensionPath, // Start from here |
|
443 | - '', // Do not filter files by extension |
|
444 | - true, // Include subdirectories |
|
445 | - PHP_INT_MAX, // Recursion level |
|
441 | + [], // No files pre-added |
|
442 | + $extensionPath, // Start from here |
|
443 | + '', // Do not filter files by extension |
|
444 | + true, // Include subdirectories |
|
445 | + PHP_INT_MAX, // Recursion level |
|
446 | 446 | $excludePattern // Files and directories to exclude. |
447 | 447 | ); |
448 | 448 |
@@ -136,6 +136,7 @@ |
||
136 | 136 | * If element has no value, method returns NULL. |
137 | 137 | * |
138 | 138 | * @param string &$elementName name of element to retrieve it's value from |
139 | + * @param string $elementName |
|
139 | 140 | * @return string an element's value if it has a value, otherwise NULL |
140 | 141 | */ |
141 | 142 | protected function getElementValue(&$elementName) |
@@ -261,7 +261,7 @@ |
||
261 | 261 | * @param string $cmd The command of the link. There is a predefined list available: edit, new, up, down etc. |
262 | 262 | * @param string $currentRecord The "table:uid" of the record being processed by the panel. |
263 | 263 | * @param string $confirm Text string with confirmation message; If set a confirm box will be displayed before carrying out the action (if Yes is pressed) |
264 | - * @param int|string $nPid "New pid" - for new records |
|
264 | + * @param integer $nPid "New pid" - for new records |
|
265 | 265 | * @return string A <a> tag wrapped string. |
266 | 266 | */ |
267 | 267 | protected function editPanelLinkWrap($string, $formName, $cmd, $currentRecord = '', $confirm = '', $nPid = '') |
@@ -317,7 +317,7 @@ |
||
317 | 317 | /** |
318 | 318 | * Returns a table with directories and files listed. |
319 | 319 | * |
320 | - * @param array $rowlist Array of files from path |
|
320 | + * @param string $rowlist Array of files from path |
|
321 | 321 | * @return string HTML-table |
322 | 322 | */ |
323 | 323 | public function getTable($rowlist) |
@@ -362,7 +362,7 @@ discard block |
||
362 | 362 | if ($filesFrom + $this->iLimit > $filesCount) { |
363 | 363 | $filesNum = $filesCount - $filesFrom; |
364 | 364 | } else { |
365 | - $filesNum = $this->iLimit; |
|
365 | + $filesNum = $this->iLimit; |
|
366 | 366 | } |
367 | 367 | } |
368 | 368 | } |
@@ -666,7 +666,7 @@ discard block |
||
666 | 666 | $out = ''; |
667 | 667 | // first two keys are "0" (default) and "-1" (multiple), after that comes the "other languages" |
668 | 668 | $allSystemLanguages = GeneralUtility::makeInstance(TranslationConfigurationProvider::class)->getSystemLanguages(); |
669 | - $systemLanguages = array_filter($allSystemLanguages, function ($languageRecord) { |
|
669 | + $systemLanguages = array_filter($allSystemLanguages, function($languageRecord) { |
|
670 | 670 | if ($languageRecord['uid'] === -1 || $languageRecord['uid'] === 0 || !$this->getBackendUser()->checkLanguageAccess($languageRecord['uid'])) { |
671 | 671 | return false; |
672 | 672 | } else { |
@@ -840,7 +840,7 @@ discard block |
||
840 | 840 | */ |
841 | 841 | public function linkWrapSort($code, $folderIdentifier, $col) |
842 | 842 | { |
843 | - $params = ['id' => $folderIdentifier, 'SET' => [ 'sort' => $col ]]; |
|
843 | + $params = ['id' => $folderIdentifier, 'SET' => ['sort' => $col]]; |
|
844 | 844 | |
845 | 845 | if ($this->sort === $col) { |
846 | 846 | // Check reverse sorting |
@@ -137,7 +137,7 @@ |
||
137 | 137 | * |
138 | 138 | * @param array $pageA Record for first page to be compared |
139 | 139 | * @param array $pageB Record for second page to be compared |
140 | - * @return array -1 if first argument is smaller than second argument, 1 if first is greater than second and 0 if both are equal |
|
140 | + * @return integer -1 if first argument is smaller than second argument, 1 if first is greater than second and 0 if both are equal |
|
141 | 141 | */ |
142 | 142 | public static function sortPagesUtility($pageA, $pageB) |
143 | 143 | { |
@@ -77,7 +77,7 @@ |
||
77 | 77 | * Handles a frontend request |
78 | 78 | * |
79 | 79 | * @param \Psr\Http\Message\ServerRequestInterface $request |
80 | - * @return NULL|\Psr\Http\Message\ResponseInterface |
|
80 | + * @return \TYPO3\CMS\Core\Http\Response|null |
|
81 | 81 | */ |
82 | 82 | public function handleRequest(\Psr\Http\Message\ServerRequestInterface $request) |
83 | 83 | { |
@@ -784,7 +784,7 @@ |
||
784 | 784 | * Calculates the value concerning the dimensions of objects. |
785 | 785 | * |
786 | 786 | * @param string $string The string to be calculated (e.g. "[20.h]+13") |
787 | - * @return int The calculated value (e.g. "23") |
|
787 | + * @return double The calculated value (e.g. "23") |
|
788 | 788 | * @see calcOffset() |
789 | 789 | */ |
790 | 790 | protected function calculateValue($string) |
@@ -139,7 +139,7 @@ |
||
139 | 139 | $this->charRangeMap[$cRMkey] = []; |
140 | 140 | $this->charRangeMap[$cRMkey]['charMapConfig'] = $cRMcfg['charMapConfig.']; |
141 | 141 | $this->charRangeMap[$cRMkey]['cfgKey'] = substr($cRMcfgkey, 0, -1); |
142 | - $this->charRangeMap[$cRMkey]['multiplicator'] = (double) $cRMcfg['fontSizeMultiplicator']; |
|
142 | + $this->charRangeMap[$cRMkey]['multiplicator'] = (double)$cRMcfg['fontSizeMultiplicator']; |
|
143 | 143 | $this->charRangeMap[$cRMkey]['pixelSpace'] = (int)$cRMcfg['pixelSpaceFontSizeRef']; |
144 | 144 | } |
145 | 145 | } |
@@ -1222,7 +1222,7 @@ discard block |
||
1222 | 1222 | * |
1223 | 1223 | * @param string $fList List of fields (keys from piVars) to evaluate on |
1224 | 1224 | * @param int $lowerThan Limit for the values. |
1225 | - * @return bool|NULL Returns TRUE (1) if conditions are met. |
|
1225 | + * @return integer|null Returns TRUE (1) if conditions are met. |
|
1226 | 1226 | */ |
1227 | 1227 | public function pi_isOnlyFields($fList, $lowerThan = -1) |
1228 | 1228 | { |
@@ -1247,7 +1247,7 @@ discard block |
||
1247 | 1247 | * This is an advanced form of evaluation of whether a URL should be cached or not. |
1248 | 1248 | * |
1249 | 1249 | * @param array $inArray An array with piVars values to evaluate |
1250 | - * @return bool|NULL Returns TRUE (1) if conditions are met. |
|
1250 | + * @return integer|null Returns TRUE (1) if conditions are met. |
|
1251 | 1251 | * @see pi_linkTP_keepPIvars() |
1252 | 1252 | */ |
1253 | 1253 | public function pi_autoCache($inArray) |