Failed Conditions
Pull Request — master (#1802)
by Timo
05:03
created
Classes/Domain/Search/Query/ParameterBuilder/QueryFields.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@
 block discarded – undo
70 70
         $string = $this->toString();
71 71
         // return empty array on empty string
72 72
 
73
-        if(trim($string) === '') {
73
+        if (trim($string) === '') {
74 74
             return $query;
75 75
         }
76 76
 
Please login to merge, or discard this patch.
Classes/Domain/Search/Query/ParameterBuilder/Sorting.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -81,7 +81,7 @@
 block discarded – undo
81 81
     public function build(Query $query): Query
82 82
     {
83 83
         $isEnabledAndField = $this->isEnabled && !empty($this->sortField);
84
-        if(!$isEnabledAndField) {
84
+        if (!$isEnabledAndField) {
85 85
             $query->getQueryParametersContainer()->remove('sort');
86 86
             return $query;
87 87
         }
Please login to merge, or discard this patch.
Classes/Domain/Search/Query/ParameterBuilder/Grouping.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -95,7 +95,7 @@
 block discarded – undo
95 95
     public function build(Query $query): Query
96 96
     {
97 97
         if (!$this->isEnabled) {
98
-            $query->getQueryParametersContainer()->removeMany(['group','group.format','group.ngroups','group.limit','group.query', 'group.sort', 'group.field']);
98
+            $query->getQueryParametersContainer()->removeMany(['group', 'group.format', 'group.ngroups', 'group.limit', 'group.query', 'group.sort', 'group.field']);
99 99
 
100 100
             return $query;
101 101
         }
Please login to merge, or discard this patch.
Classes/Domain/Search/Query/ParameterBuilder/AbstractFieldList.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -106,7 +106,7 @@
 block discarded – undo
106 106
     {
107 107
         $string = $this->toString();
108 108
         // return empty array on empty string
109
-        if(trim($string) === '' || !$this->isEnabled) {
109
+        if (trim($string) === '' || !$this->isEnabled) {
110 110
             $query->getQueryParametersContainer()->remove($this->parameterKey);
111 111
             return $query;
112 112
         }
Please login to merge, or discard this patch.
Classes/Domain/Search/Query/ParameterBuilder/Debug.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -73,8 +73,8 @@
 block discarded – undo
73 73
      */
74 74
     public function build(Query $query): Query
75 75
     {
76
-        if(!$this->isEnabled) {
77
-            $query->getQueryParametersContainer()->removeMany(['debugQuery','echoParams']);
76
+        if (!$this->isEnabled) {
77
+            $query->getQueryParametersContainer()->removeMany(['debugQuery', 'echoParams']);
78 78
             return $query;
79 79
         }
80 80
 
Please login to merge, or discard this patch.
Classes/Domain/Search/Query/ParameterBuilder/Spellchecking.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@
 block discarded – undo
67 67
     public function build(Query $query): Query
68 68
     {
69 69
         if (!$this->isEnabled) {
70
-            $query->getQueryParametersContainer()->removeMany(['spellcheck','spellcheck.collate', 'spellcheck.maxCollationTries']);
70
+            $query->getQueryParametersContainer()->removeMany(['spellcheck', 'spellcheck.collate', 'spellcheck.maxCollationTries']);
71 71
             return $query;
72 72
         }
73 73
 
Please login to merge, or discard this patch.
Classes/Domain/Search/Query/ParameterBuilder/Highlighting.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -168,7 +168,7 @@
 block discarded – undo
168 168
     public function build(Query $query): Query
169 169
     {
170 170
         if (!$this->isEnabled) {
171
-            $query->getQueryParametersContainer()->removeMany(['hl','hl.fragsize','hl.fl','hl.useFastVectorHighlighter','hl.tag.pre', 'hl.tag.post', 'hl.simple.pre', 'hl.simple.post']);
171
+            $query->getQueryParametersContainer()->removeMany(['hl', 'hl.fragsize', 'hl.fl', 'hl.useFastVectorHighlighter', 'hl.tag.pre', 'hl.tag.post', 'hl.simple.pre', 'hl.simple.post']);
172 172
 
173 173
             return $query;
174 174
         }
Please login to merge, or discard this patch.