Failed Conditions
Pull Request — master (#1385)
by Timo
05:00
created
Classes/Query.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -614,7 +614,7 @@  discard block
 block discarded – undo
614 614
      */
615 615
     public function getResultsPerPage()
616 616
     {
617
-        if($this->getGrouping()->getIsEnabled()) {
617
+        if ($this->getGrouping()->getIsEnabled()) {
618 618
             return $this->getGrouping()->getNumberOfGroups();
619 619
         }
620 620
 
@@ -1237,7 +1237,7 @@  discard block
 block discarded – undo
1237 1237
      */
1238 1238
     public function setHighlighting($highlighting = true, $fragmentSize = 200)
1239 1239
     {
1240
-        if($highlighting instanceof Highlighting) {
1240
+        if ($highlighting instanceof Highlighting) {
1241 1241
             $this->highlighting = $highlighting;
1242 1242
             return;
1243 1243
         }
Please login to merge, or discard this patch.
Classes/Domain/Search/Query/ParameterBuilder/Highlighting.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -162,7 +162,7 @@  discard block
 block discarded – undo
162 162
      */
163 163
     public function build()
164 164
     {
165
-        if(!$this->isEnabled) {
165
+        if (!$this->isEnabled) {
166 166
             return [];
167 167
         }
168 168
 
@@ -199,7 +199,7 @@  discard block
 block discarded – undo
199 199
     public static function fromTypoScriptConfiguration(TypoScriptConfiguration $solrConfiguration)
200 200
     {
201 201
         $isEnabled = $solrConfiguration->getSearchResultsHighlighting();
202
-        if(!$isEnabled) {
202
+        if (!$isEnabled) {
203 203
             return new Highlighting(false);
204 204
         }
205 205
 
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
@@ -244,7 +244,7 @@
 block discarded – undo
244 244
     public static function fromTypoScriptConfiguration(TypoScriptConfiguration $solrConfiguration)
245 245
     {
246 246
         $isEnabled = $solrConfiguration->getSearchGrouping();
247
-        if(!$isEnabled) {
247
+        if (!$isEnabled) {
248 248
             return new Grouping(false);
249 249
         }
250 250
 
Please login to merge, or discard this patch.
Classes/Domain/Search/Query/ParameterBuilder/Faceting.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -212,7 +212,7 @@  discard block
 block discarded – undo
212 212
         $facetParameters['facet.limit'] = $this->limit;
213 213
         $facetParameters['facet.field'] = $this->fields;
214 214
 
215
-        foreach($this->additionalParameters as $additionalParameterKey => $additionalParameterValue) {
215
+        foreach ($this->additionalParameters as $additionalParameterKey => $additionalParameterValue) {
216 216
             $facetParameters[$additionalParameterKey] = $additionalParameterValue;
217 217
         }
218 218
 
@@ -237,7 +237,7 @@  discard block
 block discarded – undo
237 237
 
238 238
         // alpha and lex alias for index
239 239
         if ($this->sorting == 'alpha' || $this->sorting == 'lex') {
240
-            $solrSorting= 'index';
240
+            $solrSorting = 'index';
241 241
         }
242 242
 
243 243
         $facetParameters['facet.sort'] = $solrSorting;
@@ -252,7 +252,7 @@  discard block
 block discarded – undo
252 252
     public static function fromTypoScriptConfiguration(TypoScriptConfiguration $solrConfiguration)
253 253
     {
254 254
         $isEnabled = $solrConfiguration->getSearchFaceting();
255
-        if(!$isEnabled) {
255
+        if (!$isEnabled) {
256 256
             return new Faceting(false);
257 257
         }
258 258
 
Please login to merge, or discard this patch.
Classes/Domain/Search/Query/ParameterBuilder/Filters.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
     public function removeByPrefix($filterFieldName)
58 58
     {
59 59
         foreach ($this->filters as $key => $filterString) {
60
-            if (GeneralUtility::isFirstPartOfStr($filterString, $filterFieldName )) {
60
+            if (GeneralUtility::isFirstPartOfStr($filterString, $filterFieldName)) {
61 61
                 unset($this->filters[$key]);
62 62
             }
63 63
         }
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
      */
81 81
     public function add($filterString, $name = '')
82 82
     {
83
-        if($name !== '') {
83
+        if ($name !== '') {
84 84
             $this->filters[$name] = $filterString;
85 85
         } else {
86 86
             $this->filters[] = $filterString;
Please login to merge, or discard this patch.
Classes/Domain/Search/Query/ParameterBuilder/ReturnFields.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
  *
33 33
  * @package ApacheSolrForTypo3\Solr\Domain\Search\Query\ParameterBuilder
34 34
  */
35
-class ReturnFields implements ParameterBuilder  {
35
+class ReturnFields implements ParameterBuilder {
36 36
 
37 37
     /**
38 38
      * @var array
Please login to merge, or discard this patch.
Classes/Query/Modifier/Faceting.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -93,7 +93,7 @@
 block discarded – undo
93 93
         $this->addFacetQueryFilters();
94 94
 
95 95
         foreach ($this->facetParameters as $facetParameter => $value) {
96
-            if(strtolower($facetParameter) === 'facet.field') {
96
+            if (strtolower($facetParameter) === 'facet.field') {
97 97
                 $query->getFaceting()->setFields($value);
98 98
             } else {
99 99
                 $query->getFaceting()->addAdditionalParameter($facetParameter, $value);
Please login to merge, or discard this patch.
Classes/System/Configuration/TypoScriptConfiguration.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2157,7 +2157,7 @@
 block discarded – undo
2157 2157
         }
2158 2158
 
2159 2159
         $configuredGroups = $groupingConfiguration['groups.'];
2160
-        if(!is_array($configuredGroups)) {
2160
+        if (!is_array($configuredGroups)) {
2161 2161
             return $highestLimit;
2162 2162
         }
2163 2163
 
Please login to merge, or discard this patch.