Passed
Pull Request — master (#1680)
by Timo
04:39
created
Classes/Domain/Search/SearchRequest.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -437,7 +437,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
             }
Please login to merge, or discard this patch.
Classes/Domain/Search/ResultSet/Result/Parser/ResultParserRegistry.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -96,7 +96,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
Classes/System/Configuration/TypoScriptConfiguration.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -2230,14 +2230,14 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.