@@ -437,7 +437,7 @@ discard block |
||
437 | 437 | public function setGroupItemPage($groupName, $groupItemValue, $page) |
438 | 438 | { |
439 | 439 | $this->stateChanged = true; |
440 | - $path = $this->prefixWithNamespace('groupPage:' . $groupName . ':' .$groupItemValue); |
|
440 | + $path = $this->prefixWithNamespace('groupPage:' . $groupName . ':' . $groupItemValue); |
|
441 | 441 | $this->argumentsAccessor->set($path, $page); |
442 | 442 | return $this; |
443 | 443 | } |
@@ -451,8 +451,8 @@ discard block |
||
451 | 451 | */ |
452 | 452 | public function getGroupItemPage($groupName, $groupItemValue) |
453 | 453 | { |
454 | - $path = $this->prefixWithNamespace('groupPage:' . $groupName . ':' .$groupItemValue); |
|
455 | - return max(1,(int)$this->argumentsAccessor->get($path)); |
|
454 | + $path = $this->prefixWithNamespace('groupPage:' . $groupName . ':' . $groupItemValue); |
|
455 | + return max(1, (int)$this->argumentsAccessor->get($path)); |
|
456 | 456 | } |
457 | 457 | |
458 | 458 | /** |
@@ -465,9 +465,9 @@ discard block |
||
465 | 465 | $max = 1; |
466 | 466 | $path = $this->prefixWithNamespace('groupPage'); |
467 | 467 | $groupPages = $this->argumentsAccessor->get($path); |
468 | - foreach($groupPages as $groups) { |
|
469 | - foreach($groups as $groupItemPage) { |
|
470 | - if($groupItemPage > $max) { |
|
468 | + foreach ($groupPages as $groups) { |
|
469 | + foreach ($groups as $groupItemPage) { |
|
470 | + if ($groupItemPage > $max) { |
|
471 | 471 | $max = $groupItemPage; |
472 | 472 | } |
473 | 473 | } |
@@ -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; |