@@ -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 | } |
@@ -432,7 +432,7 @@ |
||
432 | 432 | |
433 | 433 | // Diff link |
434 | 434 | $image = $this->iconFactory->getIcon('actions-document-history-open', Icon::SIZE_SMALL)->render(); |
435 | - $singleLine['rollbackLink']= $this->linkPage($image, ['diff' => $sysLogUid]); |
|
435 | + $singleLine['rollbackLink'] = $this->linkPage($image, ['diff' => $sysLogUid]); |
|
436 | 436 | // remove first link |
437 | 437 | $singleLine['time'] = htmlspecialchars(BackendUtility::datetime($entry['tstamp'])); |
438 | 438 | // add time |
@@ -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, |
@@ -64,7 +64,7 @@ discard block |
||
64 | 64 | * Validates whether the submitted language parameter can be |
65 | 65 | * interpreted as integer value. |
66 | 66 | * |
67 | - * @param stdClass $parameters |
|
67 | + * @param \stdClass $parameters |
|
68 | 68 | * @return int|NULL |
69 | 69 | */ |
70 | 70 | protected function validateLanguageParameter(\stdClass $parameters) |
@@ -82,8 +82,8 @@ discard block |
||
82 | 82 | * and the default origin record - thus, the default record would be |
83 | 83 | * affected if the translation overlay shall be published. |
84 | 84 | * |
85 | - * @param stdClass $parameters |
|
86 | - * @return array |
|
85 | + * @param \stdClass $parameters |
|
86 | + * @return \TYPO3\CMS\Workspaces\Domain\Model\CombinedRecord[] |
|
87 | 87 | */ |
88 | 88 | protected function getAffectedElements(\stdClass $parameters) |
89 | 89 | { |
@@ -65,7 +65,7 @@ |
||
65 | 65 | $backendUser = $this->getBackendUser(); |
66 | 66 | $openDocs = $backendUser->getModuleData('FormEngine', 'ses'); |
67 | 67 | if ($openDocs !== null) { |
68 | - list($this->openDocs, ) = $openDocs; |
|
68 | + list($this->openDocs,) = $openDocs; |
|
69 | 69 | } |
70 | 70 | $this->recentDocs = $backendUser->getModuleData('opendocs::recent') ?: []; |
71 | 71 | } |