@@ -117,7 +117,7 @@ |
||
117 | 117 | */ |
118 | 118 | protected function getControllerContext() { |
119 | 119 | |
120 | - if(!is_null($this->controllerContext)) { |
|
120 | + if (!is_null($this->controllerContext)) { |
|
121 | 121 | return $this->controllerContext; |
122 | 122 | } |
123 | 123 |
@@ -93,7 +93,7 @@ discard block |
||
93 | 93 | $this->mountPageUpdater = is_null($mountPageUpdater) ? GeneralUtility::makeInstance(MountPagesUpdater::class) : $mountPageUpdater; |
94 | 94 | $this->tcaService = is_null($TCAService) ? GeneralUtility::makeInstance(TCAService::class) : $TCAService; |
95 | 95 | $this->rootPageResolver = is_null($rootPageResolver) ? GeneralUtility::makeInstance(RootPageResolver::class) : $rootPageResolver; |
96 | - $this->pagesRepository = isset($pagesRepository) ? $pagesRepository: GeneralUtility::makeInstance(PagesRepository::class); |
|
96 | + $this->pagesRepository = isset($pagesRepository) ? $pagesRepository : GeneralUtility::makeInstance(PagesRepository::class); |
|
97 | 97 | } |
98 | 98 | |
99 | 99 | /** |
@@ -337,7 +337,7 @@ discard block |
||
337 | 337 | // Clear existing index queue items to prevent mount point duplicates. |
338 | 338 | // This needs to be done before the overlay handling, because handling an overlay record should |
339 | 339 | // not trigger a deletion. |
340 | - $isTranslation = !empty($record['sys_language_uid']) && $record['sys_language_uid'] !== 0; |
|
340 | + $isTranslation = !empty($record['sys_language_uid']) && $record['sys_language_uid'] !== 0; |
|
341 | 341 | if ($recordTable === 'pages' && !$isTranslation) { |
342 | 342 | $this->indexQueue->deleteItem('pages', $recordUid); |
343 | 343 | } |
@@ -72,7 +72,7 @@ discard block |
||
72 | 72 | * @return void |
73 | 73 | */ |
74 | 74 | public function initializeAction() { |
75 | - $configuration = is_array($this->widgetConfiguration['configuration']) ? $this->widgetConfiguration['configuration'] : []; |
|
75 | + $configuration = is_array($this->widgetConfiguration['configuration']) ? $this->widgetConfiguration['configuration'] : []; |
|
76 | 76 | ArrayUtility::mergeRecursiveWithOverrule($this->configuration, $configuration, false); |
77 | 77 | $this->maximumNumberOfLinks = (int)$this->configuration['maximumNumberOfLinks']; |
78 | 78 | if (!empty($this->configuration['templatePath'])) { |
@@ -126,7 +126,7 @@ discard block |
||
126 | 126 | } |
127 | 127 | |
128 | 128 | // calculate starting count for <ol> (items per page multiplied by (number of pages -1) and adding +1) |
129 | - $pagination['resultCountStart'] = (($this->getItemsPerPage() * ($this->currentPage-1))+1); |
|
129 | + $pagination['resultCountStart'] = (($this->getItemsPerPage() * ($this->currentPage - 1)) + 1); |
|
130 | 130 | return $pagination; |
131 | 131 | } |
132 | 132 |
@@ -48,7 +48,7 @@ |
||
48 | 48 | parent::initializeArguments(); |
49 | 49 | $this->registerArgument('resultSet', SearchResultSet::class, 'resultSet', true); |
50 | 50 | $this->registerArgument('as', 'string', 'as', false, 'documents'); |
51 | - $this->registerArgument('configuration', 'array', 'configuration', false, ['insertAbove' => true, 'insertBelow' => true, 'maximumNumberOfLinks' => 10, 'templatePath' => '']); |
|
51 | + $this->registerArgument('configuration', 'array', 'configuration', false, ['insertAbove' => true, 'insertBelow' => true, 'maximumNumberOfLinks' => 10, 'templatePath' => '']); |
|
52 | 52 | } |
53 | 53 | |
54 | 54 | /** |
@@ -50,7 +50,7 @@ |
||
50 | 50 | $this->registerArgument('resultSet', SearchResultSet::class, 'resultSet', true); |
51 | 51 | $this->registerArgument('groupItem', GroupItem::class, 'groupItem', true); |
52 | 52 | $this->registerArgument('as', 'string', 'as', false, 'documents'); |
53 | - $this->registerArgument('configuration', 'array', 'configuration', false, ['insertAbove' => true, 'insertBelow' => true, 'maximumNumberOfLinks' => 10, 'templatePath' => '']); |
|
53 | + $this->registerArgument('configuration', 'array', 'configuration', false, ['insertAbove' => true, 'insertBelow' => true, 'maximumNumberOfLinks' => 10, 'templatePath' => '']); |
|
54 | 54 | } |
55 | 55 | |
56 | 56 | /** |
@@ -55,7 +55,7 @@ |
||
55 | 55 | */ |
56 | 56 | protected function getControllerContext() { |
57 | 57 | |
58 | - if(!is_null($this->controllerContext)) { |
|
58 | + if (!is_null($this->controllerContext)) { |
|
59 | 59 | return $this->controllerContext; |
60 | 60 | } |
61 | 61 |
@@ -57,7 +57,7 @@ |
||
57 | 57 | */ |
58 | 58 | protected function getControllerContext() { |
59 | 59 | |
60 | - if(!is_null($this->controllerContext)) { |
|
60 | + if (!is_null($this->controllerContext)) { |
|
61 | 61 | return $this->controllerContext; |
62 | 62 | } |
63 | 63 |