@@ -1,5 +1,5 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | |
| 4 | 4 | namespace TYPO3\CMS\Core\Database\Schema\EventListener; |
| 5 | 5 | |
@@ -118,7 +118,7 @@ discard block |
||
| 118 | 118 | $values = explode($quoteChar . ',' . $quoteChar, substr($valuesDefinition, 1, -1)); |
| 119 | 119 | |
| 120 | 120 | return array_map( |
| 121 | - function (string $value) use ($quoteChar) { |
|
| 121 | + function(string $value) use ($quoteChar) { |
|
| 122 | 122 | return str_replace($quoteChar . $quoteChar, $quoteChar, $value); |
| 123 | 123 | }, |
| 124 | 124 | $values |
@@ -1230,7 +1230,7 @@ |
||
| 1230 | 1230 | public function remapListedDBRecords_flexFormCallBack($pParams, $dsConf, $dataValue, $dataValue_ext1, $dataValue_ext2, $path) |
| 1231 | 1231 | { |
| 1232 | 1232 | // Extract parameters: |
| 1233 | - list(, , , $config) = $pParams; |
|
| 1233 | + list(,,, $config) = $pParams; |
|
| 1234 | 1234 | // In case the $path is used as index without a trailing slash we will remove that |
| 1235 | 1235 | if (!is_array($config['flexFormRels']['db'][$path]) && is_array($config['flexFormRels']['db'][rtrim($path, '/')])) { |
| 1236 | 1236 | $path = rtrim($path, '/'); |
@@ -471,8 +471,8 @@ discard block |
||
| 471 | 471 | unset($this->dat['records']['sys_file_reference:' . $sysFileReferenceUid]); |
| 472 | 472 | $this->error( |
| 473 | 473 | 'Error: sys_file_reference record ' . (int)$sysFileReferenceUid |
| 474 | - . ' with relation to sys_file record ' . (int)$fileReferenceRecord['uid_local'] |
|
| 475 | - . ', which is not part of the import data, was not imported.' |
|
| 474 | + . ' with relation to sys_file record ' . (int)$fileReferenceRecord['uid_local'] |
|
| 475 | + . ', which is not part of the import data, was not imported.' |
|
| 476 | 476 | ); |
| 477 | 477 | } |
| 478 | 478 | } |
@@ -503,7 +503,7 @@ discard block |
||
| 503 | 503 | * |
| 504 | 504 | * @param int $oldFileUid |
| 505 | 505 | * @param int $newFileUid |
| 506 | - */ |
|
| 506 | + */ |
|
| 507 | 507 | protected function fixUidLocalInSysFileReferenceRecords($oldFileUid, $newFileUid) |
| 508 | 508 | { |
| 509 | 509 | if (!isset($this->dat['header']['records']['sys_file_reference'])) { |
@@ -166,7 +166,7 @@ |
||
| 166 | 166 | $connection = $connectionPool->getConnectionByName($connectionName); |
| 167 | 167 | $tablesOnConnection = array_keys(array_filter( |
| 168 | 168 | $tableMap, |
| 169 | - function ($value) use ($connectionName) { |
|
| 169 | + function($value) use ($connectionName) { |
|
| 170 | 170 | return $value === $connectionName; |
| 171 | 171 | } |
| 172 | 172 | )); |
@@ -1563,7 +1563,7 @@ |
||
| 1563 | 1563 | } |
| 1564 | 1564 | // Delete |
| 1565 | 1565 | $disableDeleteTS = $this->getBackendUser()->getTSConfig('options.disableDelete'); |
| 1566 | - $disableDelete = (bool) trim(isset($disableDeleteTS['properties']['tt_content']) ? $disableDeleteTS['properties']['tt_content'] : $disableDeleteTS['value']); |
|
| 1566 | + $disableDelete = (bool)trim(isset($disableDeleteTS['properties']['tt_content']) ? $disableDeleteTS['properties']['tt_content'] : $disableDeleteTS['value']); |
|
| 1567 | 1567 | if (!$disableDelete) { |
| 1568 | 1568 | $params = '&cmd[tt_content][' . $row['uid'] . '][delete]=1'; |
| 1569 | 1569 | $confirm = $this->getLanguageService()->getLL('deleteWarning') |
@@ -1535,7 +1535,7 @@ |
||
| 1535 | 1535 | $params = '&cmd[tt_content][' . $row['uid'] . '][delete]=1'; |
| 1536 | 1536 | $confirm = $this->getLanguageService()->getLL('deleteWarning') |
| 1537 | 1537 | . BackendUtility::translationCount('tt_content', $row['uid'], (' ' |
| 1538 | - . $this->getLanguageService()->sL('LLL:EXT:lang/Resources/Private/Language/locallang_core.xlf:labels.translationsOfRecord'))); |
|
| 1538 | + . $this->getLanguageService()->sL('LLL:EXT:lang/Resources/Private/Language/locallang_core.xlf:labels.translationsOfRecord'))); |
|
| 1539 | 1539 | $out .= '<a class="btn btn-default t3js-modal-trigger" href="' . htmlspecialchars(BackendUtility::getLinkToDataHandlerAction($params)) . '"' |
| 1540 | 1540 | . ' data-severity="warning"' |
| 1541 | 1541 | . ' data-title="' . htmlspecialchars($this->getLanguageService()->sL('LLL:EXT:lang/Resources/Private/Language/locallang_alt_doc.xlf:label.confirm.delete_record.title')) . '"' |
@@ -270,7 +270,7 @@ discard block |
||
| 270 | 270 | // Onclick action for icon/title: |
| 271 | 271 | $aOnClick = 'document.getElementsByName(\'tempB\')[' . $cc . '].checked=1;' . $wizardOnClick . 'return false;'; |
| 272 | 272 | } else { |
| 273 | - $aOnClick = "document.editForm.defValues.value=unescape('" . rawurlencode($wInfo['params']) . "');goToalt_doc();" . (!$this->onClickEvent?"window.location.hash='#sel2';":''); |
|
| 273 | + $aOnClick = "document.editForm.defValues.value=unescape('" . rawurlencode($wInfo['params']) . "');goToalt_doc();" . (!$this->onClickEvent ? "window.location.hash='#sel2';" : ''); |
|
| 274 | 274 | } |
| 275 | 275 | |
| 276 | 276 | $icon = $this->moduleTemplate->getIconFactory()->getIcon($wInfo['iconIdentifier'])->render(); |
@@ -544,7 +544,7 @@ discard block |
||
| 544 | 544 | { |
| 545 | 545 | if (isset($wizardGroup[$key])) { |
| 546 | 546 | $wizardGroup[$key] = GeneralUtility::trimExplode(',', $wizardGroup[$key]); |
| 547 | - $wizardGroup[$key] = array_map(function ($s) { |
|
| 547 | + $wizardGroup[$key] = array_map(function($s) { |
|
| 548 | 548 | return $s . '.'; |
| 549 | 549 | }, $wizardGroup[$key]); |
| 550 | 550 | } |
@@ -265,7 +265,7 @@ discard block |
||
| 265 | 265 | } else { |
| 266 | 266 | $dump .= '<span class="extbase-debug-type">' . $className . '</span>'; |
| 267 | 267 | } |
| 268 | - if (! $object instanceof \Closure) { |
|
| 268 | + if (!$object instanceof \Closure) { |
|
| 269 | 269 | if ($object instanceof \TYPO3\CMS\Core\SingletonInterface) { |
| 270 | 270 | $scope = 'singleton'; |
| 271 | 271 | } else { |
@@ -402,7 +402,7 @@ discard block |
||
| 402 | 402 | $dump .= '<span class="extbase-debug-closure">) {' . PHP_EOL . '</span>'; |
| 403 | 403 | } |
| 404 | 404 | $lines = file($reflectionFunction->getFileName()); |
| 405 | - for ($l = $reflectionFunction->getStartLine(); $l < $reflectionFunction->getEndLine() -1; ++$l) { |
|
| 405 | + for ($l = $reflectionFunction->getStartLine(); $l < $reflectionFunction->getEndLine() - 1; ++$l) { |
|
| 406 | 406 | $dump .= $plainText ? $lines[$l] : htmlspecialchars($lines[$l]); |
| 407 | 407 | } |
| 408 | 408 | $dump .= str_repeat(self::PLAINTEXT_INDENT, $level); |
@@ -1153,7 +1153,7 @@ |
||
| 1153 | 1153 | ->execute(); |
| 1154 | 1154 | |
| 1155 | 1155 | while ($row = $result->fetch()) { |
| 1156 | - $allOptions[$row['uid']]= $row['title']; |
|
| 1156 | + $allOptions[$row['uid']] = $row['title']; |
|
| 1157 | 1157 | } |
| 1158 | 1158 | } |
| 1159 | 1159 | // disable single entries by TypoScript |
@@ -61,8 +61,8 @@ |
||
| 61 | 61 | { |
| 62 | 62 | $section = $this->arguments['section']; |
| 63 | 63 | $partial = $this->arguments['partial']; |
| 64 | - $arguments = (array) $this->arguments['arguments']; |
|
| 65 | - $optional = (boolean) $this->arguments['optional']; |
|
| 64 | + $arguments = (array)$this->arguments['arguments']; |
|
| 65 | + $optional = (boolean)$this->arguments['optional']; |
|
| 66 | 66 | $contentAs = $this->arguments['contentAs']; |
| 67 | 67 | $tagContent = $this->renderChildren(); |
| 68 | 68 | |
@@ -485,7 +485,7 @@ |
||
| 485 | 485 | |
| 486 | 486 | if ($pageList) { |
| 487 | 487 | $pidField = $table === 'pages' ? 'B.uid' : 'A.pid'; |
| 488 | - $constraints[] = $queryBuilder->expr()->in( |
|
| 488 | + $constraints[] = $queryBuilder->expr()->in( |
|
| 489 | 489 | $pidField, |
| 490 | 490 | $queryBuilder->createNamedParameter( |
| 491 | 491 | GeneralUtility::intExplode(',', $pageList, true), |
@@ -1029,7 +1029,7 @@ |
||
| 1029 | 1029 | |
| 1030 | 1030 | $movePointerParameter = $queryBuilder->createNamedParameter( |
| 1031 | 1031 | VersionState::MOVE_POINTER, |
| 1032 | - \PDO::PARAM_INT |
|
| 1032 | + \PDO::PARAM_INT |
|
| 1033 | 1033 | ); |
| 1034 | 1034 | $workspaceIdParameter = $queryBuilder->createNamedParameter( |
| 1035 | 1035 | $workspaceId, |