@@ -172,7 +172,7 @@ discard block |
||
172 | 172 | $path = ExtensionManagementUtility::extPath($extensionPath); |
173 | 173 | if (strpos($path, '/sysext/') !== false) { |
174 | 174 | // This is a system extension and the package URL should be adapted |
175 | - list($majorVersion, ) = explode('.', TYPO3_branch); |
|
175 | + list($majorVersion,) = explode('.', TYPO3_branch); |
|
176 | 176 | // Typical non sysext path, mind the additional version part, French |
177 | 177 | // http://my.mirror/ter/b/a/backend-l10n/backend-l10n-fr.v7.zip |
178 | 178 | $packageUrl = $extensionPath[0] . '/' . $extensionPath[1] . '/' . $extensionPath . |
@@ -209,7 +209,7 @@ discard block |
||
209 | 209 | while (($zipEntry = zip_read($zip)) !== false) { |
210 | 210 | $zipEntryName = zip_entry_name($zipEntry); |
211 | 211 | if (strpos($zipEntryName, '/') !== false) { |
212 | - $zipEntryPathSegments = explode('/', $zipEntryName); |
|
212 | + $zipEntryPathSegments = explode('/', $zipEntryName); |
|
213 | 213 | $fileName = array_pop($zipEntryPathSegments); |
214 | 214 | // It is a folder, because the last segment is empty, let's create it |
215 | 215 | if (empty($fileName)) { |
@@ -165,7 +165,7 @@ |
||
165 | 165 | */ |
166 | 166 | protected function getBParamDataAttributes() |
167 | 167 | { |
168 | - list($fieldRef, $rteParams, $rteConfig, , $irreObjectId, $irreCheckUniqueAction, $irreAddAction, $irreInsertAction) = explode('|', $this->bparams); |
|
168 | + list($fieldRef, $rteParams, $rteConfig,, $irreObjectId, $irreCheckUniqueAction, $irreAddAction, $irreInsertAction) = explode('|', $this->bparams); |
|
169 | 169 | |
170 | 170 | return [ |
171 | 171 | 'data-this-script-url' => strpos($this->thisScript, '?') === false ? $this->thisScript . '?' : $this->thisScript . '&', |
@@ -32,8 +32,8 @@ |
||
32 | 32 | abstract class AbstractElementBrowser |
33 | 33 | { |
34 | 34 | /** |
35 | - * @var DocumentTemplate |
|
36 | - */ |
|
35 | + * @var DocumentTemplate |
|
36 | + */ |
|
37 | 37 | protected $doc; |
38 | 38 | |
39 | 39 | /** |
@@ -80,7 +80,7 @@ discard block |
||
80 | 80 | { |
81 | 81 | $this->setTemporaryDbMounts(); |
82 | 82 | |
83 | - list(, , , $allowedTables) = explode('|', $this->bparams); |
|
83 | + list(,,, $allowedTables) = explode('|', $this->bparams); |
|
84 | 84 | $backendUser = $this->getBackendUser(); |
85 | 85 | |
86 | 86 | // Making the browsable pagetree: |
@@ -194,7 +194,7 @@ discard block |
||
194 | 194 | protected function renderTableRecords($tables) |
195 | 195 | { |
196 | 196 | $backendUser = $this->getBackendUser(); |
197 | - if ($this->expandPage === null || $this->expandPage < 0 || !$backendUser->isInWebMount($this->expandPage)) { |
|
197 | + if ($this->expandPage === null || $this->expandPage < 0 || !$backendUser->isInWebMount($this->expandPage)) { |
|
198 | 198 | return ''; |
199 | 199 | } |
200 | 200 | // Set array with table names to list: |
@@ -589,7 +589,7 @@ |
||
589 | 589 | $parameters['formName'] = $this->parameters['formName']; |
590 | 590 | $parameters['params']['allowedExtensions'] = isset($this->parameters['params']['allowedExtensions']) ? $this->parameters['params']['allowedExtensions'] : ''; |
591 | 591 | $parameters['params']['blindLinkOptions'] = isset($this->parameters['params']['blindLinkOptions']) ? $this->parameters['params']['blindLinkOptions'] : ''; |
592 | - $parameters['params']['blindLinkFields'] = isset($this->parameters['params']['blindLinkFields']) ? $this->parameters['params']['blindLinkFields']: ''; |
|
592 | + $parameters['params']['blindLinkFields'] = isset($this->parameters['params']['blindLinkFields']) ? $this->parameters['params']['blindLinkFields'] : ''; |
|
593 | 593 | $addPassOnParams = GeneralUtility::implodeArrayForUrl('P', $parameters); |
594 | 594 | |
595 | 595 | $attributes = $this->displayedLinkHandler->getBodyTagAttributes(); |
@@ -161,7 +161,7 @@ |
||
161 | 161 | } else { |
162 | 162 | // If no access, only display the module's title |
163 | 163 | $this->content = '<h1>' . $this->getLanguageService()->getLL('title.') . '</h1>'; |
164 | - $this->content .='<div style="padding-top: 5px;"></div>'; |
|
164 | + $this->content .= '<div style="padding-top: 5px;"></div>'; |
|
165 | 165 | } |
166 | 166 | $this->getButtons(); |
167 | 167 | $this->getModuleMenu(); |
@@ -1459,7 +1459,7 @@ |
||
1459 | 1459 | * If the width and height is found in the style-attribute, use that! |
1460 | 1460 | * |
1461 | 1461 | * @param array $attribArray Array of attributes from tag in which to search. More specifically the content of the key "style" is used to extract "width:xxx / height:xxx" information |
1462 | - * @return array Integer w/h in key 0/1. Zero is returned if not found. |
|
1462 | + * @return integer[] Integer w/h in key 0/1. Zero is returned if not found. |
|
1463 | 1463 | */ |
1464 | 1464 | public function getWHFromAttribs($attribArray) |
1465 | 1465 | { |
@@ -1097,7 +1097,7 @@ |
||
1097 | 1097 | * @param array $metaTagTypoScript TypoScript configuration for meta tags (e.g. $GLOBALS['TSFE']->pSetup['meta.']) |
1098 | 1098 | * @param bool $xhtml Whether xhtml tag-style should be used. (e.g. pass $GLOBALS['TSFE']->xhtmlVersion here) |
1099 | 1099 | * @param ContentObjectRenderer $cObj |
1100 | - * @return array Array of HTML meta tags |
|
1100 | + * @return string[] Array of HTML meta tags |
|
1101 | 1101 | */ |
1102 | 1102 | protected static function generateMetaTagHtml(array $metaTagTypoScript, $xhtml, ContentObjectRenderer $cObj) |
1103 | 1103 | { |
@@ -1871,7 +1871,7 @@ discard block |
||
1871 | 1871 | * @param array $res The result array. The processed value (if any!) is set in the 'value' key. |
1872 | 1872 | * @param string $value The value to set. |
1873 | 1873 | * @param array $tcaFieldConf Field configuration from TCA |
1874 | - * @param array $table The table of the record |
|
1874 | + * @param string $table The table of the record |
|
1875 | 1875 | * @param int $id The id of the record |
1876 | 1876 | * @param int $pid The pid of the record |
1877 | 1877 | * @param string $field The field to check |
@@ -2316,7 +2316,7 @@ discard block |
||
2316 | 2316 | * Evaluates 'flex' type values. |
2317 | 2317 | * |
2318 | 2318 | * @param array $res The result array. The processed value (if any!) is set in the 'value' key. |
2319 | - * @param string|array $value The value to set. |
|
2319 | + * @param string $value The value to set. |
|
2320 | 2320 | * @param array $tcaFieldConf Field configuration from TCA |
2321 | 2321 | * @param string $table Table name |
2322 | 2322 | * @param int $id UID of record |
@@ -3078,7 +3078,7 @@ discard block |
||
3078 | 3078 | * Processing the cmd-array |
3079 | 3079 | * See "TYPO3 Core API" for a description of the options. |
3080 | 3080 | * |
3081 | - * @return void|bool |
|
3081 | + * @return false|null |
|
3082 | 3082 | */ |
3083 | 3083 | public function process_cmdmap() |
3084 | 3084 | { |
@@ -3667,12 +3667,12 @@ discard block |
||
3667 | 3667 | * @param string $table |
3668 | 3668 | * @param int $uid |
3669 | 3669 | * @param string $field |
3670 | - * @param mixed $value |
|
3670 | + * @param string $value |
|
3671 | 3671 | * @param array $conf |
3672 | 3672 | * @param string $language |
3673 | 3673 | * @param string $localizationMode |
3674 | 3674 | * @param string $inlineSubType |
3675 | - * @return mixed |
|
3675 | + * @return string |
|
3676 | 3676 | */ |
3677 | 3677 | protected function copyRecord_processManyToMany($table, $uid, $field, $value, $conf, $language, $localizationMode, $inlineSubType) |
3678 | 3678 | { |
@@ -3724,7 +3724,7 @@ discard block |
||
3724 | 3724 | * @param string $table |
3725 | 3725 | * @param int $uid |
3726 | 3726 | * @param string $field |
3727 | - * @param mixed $value |
|
3727 | + * @param string $value |
|
3728 | 3728 | * @param array $row |
3729 | 3729 | * @param array $conf |
3730 | 3730 | * @param int $realDestPid |
@@ -3732,7 +3732,7 @@ discard block |
||
3732 | 3732 | * @param array $workspaceOptions |
3733 | 3733 | * @param string $localizationMode |
3734 | 3734 | * @param string $inlineSubType |
3735 | - * @return mixed |
|
3735 | + * @return string |
|
3736 | 3736 | */ |
3737 | 3737 | protected function copyRecord_processInline($table, $uid, $field, $value, $row, $conf, $realDestPid, $language, |
3738 | 3738 | array $workspaceOptions, $localizationMode, $inlineSubType) |
@@ -6320,7 +6320,7 @@ discard block |
||
6320 | 6320 | * |
6321 | 6321 | * @param int $page_uid Page ID |
6322 | 6322 | * @param int $doktype Page doktype |
6323 | - * @return array Returns a list of the tables that are 'present' on the page but not allowed with the page_uid/doktype |
|
6323 | + * @return false|string Returns a list of the tables that are 'present' on the page but not allowed with the page_uid/doktype |
|
6324 | 6324 | */ |
6325 | 6325 | public function doesPageHaveUnallowedTables($page_uid, $doktype) |
6326 | 6326 | { |
@@ -7355,7 +7355,7 @@ discard block |
||
7355 | 7355 | * value automatically then, the TCA default value is used if |
7356 | 7356 | * it has been defined. |
7357 | 7357 | * |
7358 | - * @param int|string $value The value to be casted (e.g. '', '0', '1,2,3') |
|
7358 | + * @param string $value The value to be casted (e.g. '', '0', '1,2,3') |
|
7359 | 7359 | * @param array $configuration The TCA configuration of the accordant field |
7360 | 7360 | * @return int|string |
7361 | 7361 | */ |
@@ -7392,7 +7392,7 @@ discard block |
||
7392 | 7392 | * If it's not an inline field at all, it returns FALSE. |
7393 | 7393 | * |
7394 | 7394 | * @param array $conf Config array for TCA/columns field |
7395 | - * @return string|bool string Inline subtype (field|mm|list), boolean: FALSE |
|
7395 | + * @return false|string string Inline subtype (field|mm|list), boolean: FALSE |
|
7396 | 7396 | */ |
7397 | 7397 | public function getInlineFieldType($conf) |
7398 | 7398 | { |
@@ -4678,7 +4678,7 @@ |
||
4678 | 4678 | ($fCfg['l10n_mode'] === 'exclude') |
4679 | 4679 | && $fN != $GLOBALS['TCA'][$Ttable]['ctrl']['languageField'] |
4680 | 4680 | && $fN != $GLOBALS['TCA'][$Ttable]['ctrl']['transOrigPointerField'] |
4681 | - ) { |
|
4681 | + ) { |
|
4682 | 4682 | // Otherwise, do not copy field (unless it is the language field or |
4683 | 4683 | // pointer to the original language) |
4684 | 4684 | $excludeFields[] = $fN; |
@@ -2237,7 +2237,7 @@ discard block |
||
2237 | 2237 | if ($status === 'update') { |
2238 | 2238 | $dbAnalysis->writeMM($tcaFieldConf['MM'], $id, 0); |
2239 | 2239 | $newFiles = implode(',', $dbAnalysis->getValueArray()); |
2240 | - list(, , $recFieldName) = explode(':', $recFID); |
|
2240 | + list(,, $recFieldName) = explode(':', $recFID); |
|
2241 | 2241 | if ($currentFilesForHistory != $newFiles) { |
2242 | 2242 | $this->mmHistoryRecords[$table . ':' . $id]['oldRecord'][$recFieldName] = $currentFilesForHistory; |
2243 | 2243 | $this->mmHistoryRecords[$table . ':' . $id]['newRecord'][$recFieldName] = $newFiles; |
@@ -2357,7 +2357,7 @@ discard block |
||
2357 | 2357 | // Get current value array: |
2358 | 2358 | $flexFormTools = GeneralUtility::makeInstance(FlexFormTools::class); |
2359 | 2359 | $dataStructureIdentifier = $flexFormTools->getDataStructureIdentifier( |
2360 | - [ 'config' => $tcaFieldConf ], |
|
2360 | + ['config' => $tcaFieldConf], |
|
2361 | 2361 | $table, |
2362 | 2362 | $field, |
2363 | 2363 | $row |
@@ -2473,7 +2473,7 @@ discard block |
||
2473 | 2473 | */ |
2474 | 2474 | public function checkValue_inline($res, $value, $tcaFieldConf, $PP, $field, array $additionalData = null) |
2475 | 2475 | { |
2476 | - list($table, $id, , $status) = $PP; |
|
2476 | + list($table, $id,, $status) = $PP; |
|
2477 | 2477 | $this->checkValueForInline($res, $value, $tcaFieldConf, $table, $id, $status, $field, $additionalData); |
2478 | 2478 | } |
2479 | 2479 | |
@@ -3783,7 +3783,7 @@ discard block |
||
3783 | 3783 | // Get current value array: |
3784 | 3784 | $flexFormTools = GeneralUtility::makeInstance(FlexFormTools::class); |
3785 | 3785 | $dataStructureIdentifier = $flexFormTools->getDataStructureIdentifier( |
3786 | - [ 'config' => $conf ], |
|
3786 | + ['config' => $conf], |
|
3787 | 3787 | $table, |
3788 | 3788 | $field, |
3789 | 3789 | $row |
@@ -4142,7 +4142,7 @@ discard block |
||
4142 | 4142 | public function copyL10nOverlayRecords($table, $uid, $destPid, $first = false, $overrideValues = [], $excludeFields = '') |
4143 | 4143 | { |
4144 | 4144 | // There's no need to perform this for page-records or for tables that are not localizable |
4145 | - if (!BackendUtility::isTableLocalizable($table) || $table === 'pages' || $table === 'pages_language_overlay') { |
|
4145 | + if (!BackendUtility::isTableLocalizable($table) || $table === 'pages' || $table === 'pages_language_overlay') { |
|
4146 | 4146 | return; |
4147 | 4147 | } |
4148 | 4148 | |
@@ -5909,7 +5909,7 @@ discard block |
||
5909 | 5909 | BackendUtility::workspaceOL($table, $origRecordRow); |
5910 | 5910 | // Get current data structure and value array: |
5911 | 5911 | $dataStructureIdentifier = $flexFormTools->getDataStructureIdentifier( |
5912 | - [ 'config' => $conf ], |
|
5912 | + ['config' => $conf], |
|
5913 | 5913 | $table, |
5914 | 5914 | $fieldName, |
5915 | 5915 | $origRecordRow |
@@ -117,7 +117,7 @@ discard block |
||
117 | 117 | /** |
118 | 118 | * Determines the highest severity from the given statuses. |
119 | 119 | * |
120 | - * @param array $statusCollection An array of \TYPO3\CMS\Reports\Status objects. |
|
120 | + * @param ReportStatus[] $statusCollection An array of \TYPO3\CMS\Reports\Status objects. |
|
121 | 121 | * @return int The highest severity found from the statuses. |
122 | 122 | */ |
123 | 123 | public function getHighestSeverity(array $statusCollection) |
@@ -141,7 +141,7 @@ discard block |
||
141 | 141 | /** |
142 | 142 | * Renders the system's status |
143 | 143 | * |
144 | - * @param array $statusCollection An array of statuses as returned by the available status providers |
|
144 | + * @param ReportStatus[] $statusCollection An array of statuses as returned by the available status providers |
|
145 | 145 | * @return string The system status as an HTML table |
146 | 146 | */ |
147 | 147 | protected function renderStatus(array $statusCollection) |