@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | namespace ApacheSolrForTypo3\Solr\Controller\Backend; |
4 | 4 | |
5 | 5 | /*************************************************************** |
@@ -148,7 +148,7 @@ |
||
148 | 148 | } |
149 | 149 | |
150 | 150 | /** |
151 | - * @param $pid |
|
151 | + * @param integer $pid |
|
152 | 152 | * @return \ApacheSolrForTypo3\Solr\System\Configuration\TypoScriptConfiguration|array |
153 | 153 | */ |
154 | 154 | protected function getConfigurationFromPageId($pid) |
@@ -63,13 +63,13 @@ |
||
63 | 63 | */ |
64 | 64 | public function initializeView(ViewInterface $view) |
65 | 65 | { |
66 | - if($view instanceof TemplateView) { |
|
66 | + if ($view instanceof TemplateView) { |
|
67 | 67 | $customTemplate = $this->getCustomTemplateFromConfiguration(); |
68 | - if($customTemplate === '') { |
|
68 | + if ($customTemplate === '') { |
|
69 | 69 | return; |
70 | 70 | } |
71 | 71 | |
72 | - if(strpos($customTemplate, 'EXT:') !== false) { |
|
72 | + if (strpos($customTemplate, 'EXT:') !== false) { |
|
73 | 73 | $view->setTemplatePathAndFilename($customTemplate); |
74 | 74 | } else { |
75 | 75 | $view->setTemplate($customTemplate); |
@@ -251,7 +251,7 @@ discard block |
||
251 | 251 | /** |
252 | 252 | * Resets all the errors for all index queue items. |
253 | 253 | * |
254 | - * @return mixed |
|
254 | + * @return integer |
|
255 | 255 | */ |
256 | 256 | public function resetAllErrors() |
257 | 257 | { |
@@ -297,7 +297,7 @@ discard block |
||
297 | 297 | * different value for non-database-record types. |
298 | 298 | * @param string $additionalRecordFields for sql-query |
299 | 299 | * |
300 | - * @return array|NULL |
|
300 | + * @return string |
|
301 | 301 | */ |
302 | 302 | protected function getRecordCached($itemType, $itemUid, $additionalRecordFields) |
303 | 303 | { |
@@ -598,7 +598,7 @@ discard block |
||
598 | 598 | * Marks an item as failed and causes the indexer to skip the item in the |
599 | 599 | * next run. |
600 | 600 | * |
601 | - * @param int|Item $item Either the item's Index Queue uid or the complete item |
|
601 | + * @param Item $item Either the item's Index Queue uid or the complete item |
|
602 | 602 | * @param string $errorMessage Error message |
603 | 603 | */ |
604 | 604 | public function markItemAsFailed($item, $errorMessage = '') |
@@ -388,7 +388,7 @@ |
||
388 | 388 | 'items', |
389 | 389 | (string)$queryBuilderForDeletingProperties->expr()->andX( |
390 | 390 | $queryBuilderForDeletingProperties->expr()->eq('items.uid', $queryBuilderForDeletingProperties->quoteIdentifier('properties.item_id')), |
391 | - $queryBuilderForDeletingProperties->expr()->eq('items.root' , $site->getRootPageId()), |
|
391 | + $queryBuilderForDeletingProperties->expr()->eq('items.root', $site->getRootPageId()), |
|
392 | 392 | empty($indexingConfigurationName) ? '' : $queryBuilderForDeletingProperties->expr()->eq( |
393 | 393 | 'items.indexing_configuration', $queryBuilderForDeletingProperties->createNamedParameter($indexingConfigurationName) |
394 | 394 | ) |