@@ -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; |
@@ -38,9 +38,7 @@ |
||
38 | 38 | use ApacheSolrForTypo3\Solr\Search\SearchComponentManager; |
39 | 39 | use ApacheSolrForTypo3\Solr\System\Configuration\TypoScriptConfiguration; |
40 | 40 | use ApacheSolrForTypo3\Solr\System\Logging\SolrLogManager; |
41 | -use ApacheSolrForTypo3\Solr\System\Solr\SolrCommunicationException; |
|
42 | 41 | use ApacheSolrForTypo3\Solr\System\Solr\SolrIncompleteResponseException; |
43 | -use ApacheSolrForTypo3\Solr\System\Solr\SolrInternalServerErrorException; |
|
44 | 42 | use TYPO3\CMS\Core\Utility\GeneralUtility; |
45 | 43 | use TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer; |
46 | 44 |
@@ -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 |
@@ -52,7 +52,7 @@ |
||
52 | 52 | return $this->getFilteredCopy(function(Option $option) use ($filteredPrefix) |
53 | 53 | { |
54 | 54 | $filteredPrefixLength = strlen($filteredPrefix); |
55 | - $currentPrefix = substr(strtolower($option->getLabel()),0, $filteredPrefixLength); |
|
55 | + $currentPrefix = substr(strtolower($option->getLabel()), 0, $filteredPrefixLength); |
|
56 | 56 | |
57 | 57 | return $currentPrefix === $filteredPrefix; |
58 | 58 | }); |
@@ -89,12 +89,12 @@ |
||
89 | 89 | */ |
90 | 90 | protected static function applySortBy(array $prefixes, $sortBy): array |
91 | 91 | { |
92 | - if($sortBy === 'count' || $sortBy === '') |
|
92 | + if ($sortBy === 'count' || $sortBy === '') |
|
93 | 93 | { |
94 | 94 | return $prefixes; |
95 | 95 | } |
96 | 96 | |
97 | - if($sortBy === 'alpha') |
|
97 | + if ($sortBy === 'alpha') |
|
98 | 98 | { |
99 | 99 | sort($prefixes); |
100 | 100 | return $prefixes; |
@@ -125,7 +125,7 @@ |
||
125 | 125 | } |
126 | 126 | |
127 | 127 | // calculate starting count for <ol> (items per page multiplied by (number of pages -1) and adding +1) |
128 | - $pagination['resultCountStart'] = (($this->getItemsPerPage() * ($this->currentPage-1))+1); |
|
128 | + $pagination['resultCountStart'] = (($this->getItemsPerPage() * ($this->currentPage - 1)) + 1); |
|
129 | 129 | return $pagination; |
130 | 130 | } |
131 | 131 |
@@ -324,7 +324,7 @@ discard block |
||
324 | 324 | } |
325 | 325 | |
326 | 326 | /** |
327 | - * @return BigramPhraseFields |
|
327 | + * @return PhraseFields |
|
328 | 328 | */ |
329 | 329 | public function getBigramPhraseFields() |
330 | 330 | { |
@@ -341,7 +341,7 @@ discard block |
||
341 | 341 | } |
342 | 342 | |
343 | 343 | /** |
344 | - * @return TrigramPhraseFields |
|
344 | + * @return PhraseFields |
|
345 | 345 | */ |
346 | 346 | public function getTrigramPhraseFields() |
347 | 347 | { |