Passed
Push — master ( de512f...06cfc7 )
by Darko
06:05
created
Blacklight/ManticoreSearch.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -153,7 +153,7 @@  discard block
 block discarded – undo
153 153
      */
154 154
     public function updatePreDb(array $parameters): void
155 155
     {
156
-        if (! empty($parameters)) {
156
+        if (!empty($parameters)) {
157 157
             $this->insertPredb($parameters);
158 158
         }
159 159
     }
@@ -214,15 +214,15 @@  discard block
 block discarded – undo
214 214
         $resultData = [];
215 215
         try {
216 216
             $query = $this->search->setIndex($rt_index)->option('ranker', 'sph04')->option('sort_method', 'pq')->maxMatches(10000)->limit(10000)->sort('id', 'desc')->stripBadUtf8(true)->trackScores(true);
217
-            if (! empty($searchArray)) {
217
+            if (!empty($searchArray)) {
218 218
                 foreach ($searchArray as $key => $value) {
219 219
                     $query->search('@@relaxed @'.$key.' '.self::escapeString($value));
220 220
                 }
221
-            } elseif (! empty($searchString)) {
221
+            } elseif (!empty($searchString)) {
222 222
                 // If $column is an array and has more than one item, implode it and wrap in parentheses.
223
-                if (! empty($column) && \count($column) > 1) {
223
+                if (!empty($column) && \count($column) > 1) {
224 224
                     $searchColumns = '@('.implode(',', $column).')';
225
-                } elseif (! empty($column) && \count($column) == 1) { // If $column is an array and has only one item, use as is.
225
+                } elseif (!empty($column) && \count($column) == 1) { // If $column is an array and has only one item, use as is.
226 226
                     $searchColumns = '@'.$column[0];
227 227
                 } else {
228 228
                     $searchColumns = ''; // Careful, this will search all columns.
Please login to merge, or discard this patch.