@@ -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 |
@@ -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 | } |
@@ -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 | } |
@@ -74,7 +74,7 @@ |
||
74 | 74 | public function build(Query $query): Query |
75 | 75 | { |
76 | 76 | if (!$this->isEnabled) { |
77 | - $query->getQueryParametersContainer()->removeMany(['debugQuery','echoParams']); |
|
77 | + $query->getQueryParametersContainer()->removeMany(['debugQuery', 'echoParams']); |
|
78 | 78 | return $query; |
79 | 79 | } |
80 | 80 |
@@ -109,7 +109,7 @@ |
||
109 | 109 | public function removeByPrefix($prefix) |
110 | 110 | { |
111 | 111 | foreach ($this->queryParameters as $parameterName => $parameterValue) { |
112 | - if(GeneralUtility::isFirstPartOfStr($parameterName, $prefix)) { |
|
112 | + if (GeneralUtility::isFirstPartOfStr($parameterName, $prefix)) { |
|
113 | 113 | unset($this->queryParameters[$parameterName]); |
114 | 114 | } |
115 | 115 | } |
@@ -38,8 +38,6 @@ |
||
38 | 38 | use ApacheSolrForTypo3\Solr\Domain\Search\Query\ParameterBuilder\Sorting; |
39 | 39 | use ApacheSolrForTypo3\Solr\Domain\Search\Query\ParameterBuilder\Spellchecking; |
40 | 40 | use ApacheSolrForTypo3\Solr\Domain\Search\Query\ParameterBuilder\TrigramPhraseFields; |
41 | -use ApacheSolrForTypo3\Solr\System\Configuration\TypoScriptConfiguration; |
|
42 | -use ApacheSolrForTypo3\Solr\Util; |
|
43 | 41 | |
44 | 42 | /** |
45 | 43 | * A Solr search query |
@@ -176,9 +176,9 @@ |
||
176 | 176 | return new FieldCollapsing(true, $collapseField, $expand, $expandRows); |
177 | 177 | } |
178 | 178 | |
179 | - /** |
|
180 | - * @return FieldCollapsing |
|
181 | - */ |
|
179 | + /** |
|
180 | + * @return FieldCollapsing |
|
181 | + */ |
|
182 | 182 | public static function getEmpty() |
183 | 183 | { |
184 | 184 | return new FieldCollapsing(false); |