@@ -98,7 +98,7 @@ discard block |
||
98 | 98 | */ |
99 | 99 | public function removeMany(array $parameterNames) |
100 | 100 | { |
101 | - foreach($parameterNames as $parameterName) { |
|
101 | + foreach ($parameterNames as $parameterName) { |
|
102 | 102 | $this->remove($parameterName); |
103 | 103 | } |
104 | 104 | } |
@@ -108,8 +108,8 @@ discard block |
||
108 | 108 | */ |
109 | 109 | public function removeByPrefix($prefix) |
110 | 110 | { |
111 | - foreach($this->queryParameters as $parameterName => $parameterValue) { |
|
112 | - if(GeneralUtility::isFirstPartOfStr($parameterName, $prefix)) { |
|
111 | + foreach ($this->queryParameters as $parameterName => $parameterValue) { |
|
112 | + if (GeneralUtility::isFirstPartOfStr($parameterName, $prefix)) { |
|
113 | 113 | unset($this->queryParameters[$parameterName]); |
114 | 114 | } |
115 | 115 | } |
@@ -70,7 +70,7 @@ |
||
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 |
@@ -81,7 +81,7 @@ |
||
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 | } |
@@ -95,7 +95,7 @@ |
||
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 | } |
@@ -106,7 +106,7 @@ |
||
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 | } |
@@ -73,8 +73,8 @@ |
||
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 |
@@ -67,7 +67,7 @@ |
||
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 |
@@ -168,7 +168,7 @@ |
||
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 | } |