@@ -96,7 +96,7 @@ |
||
96 | 96 | */ |
97 | 97 | public function hasParser($className, $priority) |
98 | 98 | { |
99 | - if(empty($this->parsers[$priority])) { |
|
99 | + if (empty($this->parsers[$priority])) { |
|
100 | 100 | return false; |
101 | 101 | } |
102 | 102 |
@@ -2230,14 +2230,14 @@ |
||
2230 | 2230 | $specificPath = 'plugin.tx_solr.search.grouping.groups.' . $groupName . 'numberOfResultsPerGroup'; |
2231 | 2231 | $specificResultsPerGroup = $this->getValueByPathOrDefaultValue($specificPath, null); |
2232 | 2232 | |
2233 | - if($specificResultsPerGroup !== null) { |
|
2234 | - return (int) $specificResultsPerGroup; |
|
2233 | + if ($specificResultsPerGroup !== null) { |
|
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 | - if($commonValue !== null) { |
|
2240 | - return (int) $commonValue; |
|
2239 | + if ($commonValue !== null) { |
|
2240 | + return (int)$commonValue; |
|
2241 | 2241 | } |
2242 | 2242 | |
2243 | 2243 | return $defaultIfEmpty; |
@@ -24,7 +24,6 @@ |
||
24 | 24 | * |
25 | 25 | * This copyright notice MUST APPEAR in all copies of the script! |
26 | 26 | ***************************************************************/ |
27 | -use ApacheSolrForTypo3\Solr\Domain\Search\ResultSet\Result\SearchResult; |
|
28 | 27 | use ApacheSolrForTypo3\Solr\System\Configuration\TypoScriptConfiguration; |
29 | 28 | use ApacheSolrForTypo3\Solr\System\Util\ArrayAccessor; |
30 | 29 | use TYPO3\CMS\Core\Utility\ArrayUtility; |
@@ -438,7 +438,7 @@ discard block |
||
438 | 438 | public function setGroupItemPage(string $groupName, string $groupItemValue, int $page): SearchRequest |
439 | 439 | { |
440 | 440 | $this->stateChanged = true; |
441 | - $path = $this->prefixWithNamespace('groupPage:' . $groupName . ':' .$groupItemValue); |
|
441 | + $path = $this->prefixWithNamespace('groupPage:' . $groupName . ':' . $groupItemValue); |
|
442 | 442 | $this->argumentsAccessor->set($path, $page); |
443 | 443 | return $this; |
444 | 444 | } |
@@ -452,8 +452,8 @@ discard block |
||
452 | 452 | */ |
453 | 453 | public function getGroupItemPage(string $groupName, string $groupItemValue): int |
454 | 454 | { |
455 | - $path = $this->prefixWithNamespace('groupPage:' . $groupName . ':' .$groupItemValue); |
|
456 | - return max(1,(int)$this->argumentsAccessor->get($path)); |
|
455 | + $path = $this->prefixWithNamespace('groupPage:' . $groupName . ':' . $groupItemValue); |
|
456 | + return max(1, (int)$this->argumentsAccessor->get($path)); |
|
457 | 457 | } |
458 | 458 | |
459 | 459 | /** |
@@ -466,9 +466,9 @@ discard block |
||
466 | 466 | $max = 1; |
467 | 467 | $path = $this->prefixWithNamespace('groupPage'); |
468 | 468 | $groupPages = $this->argumentsAccessor->get($path); |
469 | - foreach($groupPages as $groups) { |
|
470 | - foreach($groups as $groupItemPage) { |
|
471 | - if($groupItemPage > $max) { |
|
469 | + foreach ($groupPages as $groups) { |
|
470 | + foreach ($groups as $groupItemPage) { |
|
471 | + if ($groupItemPage > $max) { |
|
472 | 472 | $max = $groupItemPage; |
473 | 473 | } |
474 | 474 | } |
@@ -40,9 +40,9 @@ discard block |
||
40 | 40 | */ |
41 | 41 | public function getByName($name) |
42 | 42 | { |
43 | - foreach($this->data as $group) { |
|
43 | + foreach ($this->data as $group) { |
|
44 | 44 | /** @var $group Group */ |
45 | - if($group->getGroupName() === $name) { |
|
45 | + if ($group->getGroupName() === $name) { |
|
46 | 46 | return $group; |
47 | 47 | } |
48 | 48 | } |
@@ -56,9 +56,9 @@ discard block |
||
56 | 56 | */ |
57 | 57 | public function getHasWithName($name): bool |
58 | 58 | { |
59 | - foreach($this->data as $group) { |
|
59 | + foreach ($this->data as $group) { |
|
60 | 60 | /** @var $group Group */ |
61 | - if($group->getGroupName() === $name) { |
|
61 | + if ($group->getGroupName() === $name) { |
|
62 | 62 | return true; |
63 | 63 | } |
64 | 64 | } |
@@ -72,7 +72,7 @@ discard block |
||
72 | 72 | public function getGroupNames(): array |
73 | 73 | { |
74 | 74 | $names = []; |
75 | - foreach($this->data as $group) { |
|
75 | + foreach ($this->data as $group) { |
|
76 | 76 | /** @var $group Group */ |
77 | 77 | $names[] = $group->getGroupName(); |
78 | 78 | } |