Failed Conditions
Pull Request — master (#1763)
by Timo
03:53
created
Classes/Domain/Search/ResultSet/SearchResultSetService.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -361,7 +361,7 @@
 block discarded – undo
361 361
     protected function doASearch($query, $offSet)
362 362
     {
363 363
         $response = $this->search->search($query, $offSet, null);
364
-        if($response === null) {
364
+        if ($response === null) {
365 365
             throw new SolrIncompleteResponseException('The response retrieved from solr was incomplete', 1505989678);
366 366
         }
367 367
 
Please login to merge, or discard this patch.
Classes/Domain/Search/ResultSet/Facets/OptionBased/OptionCollection.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@
 block discarded – undo
52 52
         return $this->getFilteredCopy(function(Option $option) use ($filteredPrefix)
53 53
         {
54 54
             $filteredPrefixLength = strlen($filteredPrefix);
55
-            $currentPrefix = substr(strtolower($option->getLabel()),0, $filteredPrefixLength);
55
+            $currentPrefix = substr(strtolower($option->getLabel()), 0, $filteredPrefixLength);
56 56
 
57 57
             return $currentPrefix === $filteredPrefix;
58 58
         });
Please login to merge, or discard this patch.
Classes/ViewHelpers/Facet/Options/Group/Prefix/LabelPrefixesViewHelper.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -89,12 +89,12 @@
 block discarded – undo
89 89
      */
90 90
     protected static function applySortBy(array $prefixes, $sortBy): array
91 91
     {
92
-        if($sortBy === 'count' || $sortBy === '')
92
+        if ($sortBy === 'count' || $sortBy === '')
93 93
         {
94 94
             return $prefixes;
95 95
         }
96 96
 
97
-        if($sortBy === 'alpha')
97
+        if ($sortBy === 'alpha')
98 98
         {
99 99
             sort($prefixes);
100 100
             return $prefixes;
Please login to merge, or discard this patch.
Classes/ViewHelpers/Widget/Controller/AbstractPaginateWidgetController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -125,7 +125,7 @@
 block discarded – undo
125 125
         }
126 126
 
127 127
         // calculate starting count for <ol> (items per page multiplied by (number of pages -1) and adding +1)
128
-        $pagination['resultCountStart'] = (($this->getItemsPerPage() * ($this->currentPage-1))+1);
128
+        $pagination['resultCountStart'] = (($this->getItemsPerPage() * ($this->currentPage - 1)) + 1);
129 129
         return $pagination;
130 130
     }
131 131
 
Please login to merge, or discard this patch.
Classes/Controller/Backend/Search/IndexQueueModuleController.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -229,8 +229,8 @@
 block discarded – undo
229 229
         $label = 'solr.backend.index_queue_module.flashmessage.error.single_item_not_requeued';
230 230
         $severity = FlashMessage::ERROR;
231 231
 
232
-         $updateCount = $this->indexQueue->updateItem($type, $uid, time());
233
-         $updateCount += $this->tiggerUpdateHook($type, $uid, $pageId, $languageUid);
232
+            $updateCount = $this->indexQueue->updateItem($type, $uid, time());
233
+            $updateCount += $this->tiggerUpdateHook($type, $uid, $pageId, $languageUid);
234 234
 
235 235
         if($updateCount > 0) {
236 236
             $label = 'solr.backend.index_queue_module.flashmessage.success.single_item_was_requeued';
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -232,7 +232,7 @@
 block discarded – undo
232 232
          $updateCount = $this->indexQueue->updateItem($type, $uid, time());
233 233
          $updateCount += $this->tiggerUpdateHook($type, $uid, $pageId, $languageUid);
234 234
 
235
-        if($updateCount > 0) {
235
+        if ($updateCount > 0) {
236 236
             $label = 'solr.backend.index_queue_module.flashmessage.success.single_item_was_requeued';
237 237
             $severity = FlashMessage::OK;
238 238
         }
Please login to merge, or discard this patch.
Classes/Domain/Search/Query/QueryBuilder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -181,7 +181,7 @@
 block discarded – undo
181 181
         $query->setQueryType('standard');
182 182
         $query->useRawQueryString(true);
183 183
         $query->setQueryString('*:*');
184
-        $query->getFilters()->add('type:'. $type .' AND uid:' . $uid);
184
+        $query->getFilters()->add('type:' . $type . ' AND uid:' . $uid);
185 185
         $query->getFilters()->add('siteHash:' . $site->getSiteHash());
186 186
         $query->getReturnFields()->add('*');
187 187
         $query->setSorting('type asc, title asc');
Please login to merge, or discard this patch.