@@ -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); |
@@ -85,7 +85,7 @@ |
||
85 | 85 | public function getQueryBuilder() |
86 | 86 | { |
87 | 87 | $urlDecoder = $this->objectManager->get($this->getQueryBuilderClassName()); |
88 | - if(!$urlDecoder instanceof FacetQueryBuilderInterface) { |
|
88 | + if (!$urlDecoder instanceof FacetQueryBuilderInterface) { |
|
89 | 89 | throw new InvalidQueryBuilderException('Invalid querybuilder for package ' . __CLASS__); |
90 | 90 | } |
91 | 91 | return $urlDecoder; |
@@ -90,6 +90,7 @@ |
||
90 | 90 | * Note: Rollback will not work in case of different connections. |
91 | 91 | * |
92 | 92 | * @param string[] ...$tableNames |
93 | + * @param string $tableNames |
|
93 | 94 | * @return Connection |
94 | 95 | */ |
95 | 96 | public function getConnectionForAllInTransactionInvolvedTables(string ...$tableNames) : Connection |
@@ -175,7 +175,7 @@ |
||
175 | 175 | * This methods sets the page argument to an expected positive integer value in the arguments array. |
176 | 176 | * |
177 | 177 | * @param array $arguments |
178 | - * @return array |
|
178 | + * @return integer |
|
179 | 179 | */ |
180 | 180 | protected function adjustPageArgumentToPositiveInteger(array $arguments) |
181 | 181 | { |
@@ -2231,13 +2231,13 @@ |
||
2231 | 2231 | $specificResultsPerGroup = $this->getValueByPathOrDefaultValue($specificPath, null); |
2232 | 2232 | |
2233 | 2233 | if ($specificResultsPerGroup !== null) { |
2234 | - return (int) $specificResultsPerGroup; |
|
2234 | + return (int)$specificResultsPerGroup; |
|
2235 | 2235 | } |
2236 | 2236 | |
2237 | 2237 | $commonPath = 'plugin.tx_solr.search.grouping.numberOfResultsPerGroup'; |
2238 | 2238 | $commonValue = $this->getValueByPathOrDefaultValue($commonPath, null); |
2239 | 2239 | if ($commonValue !== null) { |
2240 | - return (int) $commonValue; |
|
2240 | + return (int)$commonValue; |
|
2241 | 2241 | } |
2242 | 2242 | |
2243 | 2243 | return $defaultIfEmpty; |
@@ -467,7 +467,9 @@ |
||
467 | 467 | $path = $this->prefixWithNamespace('groupPage'); |
468 | 468 | $groupPages = $this->argumentsAccessor->get($path); |
469 | 469 | foreach ($groupPages as $groups) { |
470 | - if (!is_array($groups)) continue; |
|
470 | + if (!is_array($groups)) { |
|
471 | + continue; |
|
472 | + } |
|
471 | 473 | foreach ($groups as $groupItemPage) { |
472 | 474 | if ($groupItemPage > $max) { |
473 | 475 | $max = $groupItemPage; |
@@ -361,7 +361,7 @@ |
||
361 | 361 | protected function doASearch($query, $offSet) |
362 | 362 | { |
363 | 363 | $response = $this->search->search($query, $offSet, null); |
364 | - if($response === null) { |
|
364 | + if ($response === null) { |
|
365 | 365 | throw new SolrIncompleteResponseException('The response retrieved from solr was incomplete', 1505989678); |
366 | 366 | } |
367 | 367 |