Completed
Pull Request — master (#184)
by
unknown
62:45
created
Filter/Widget/Search/MatchSearch.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -59,15 +59,15 @@
 block discarded – undo
59 59
             if (strpos($field, '^') !== false) {
60 60
                 list ($field, $boost) = explode('^', $field);
61 61
             }
62
-            $query =  new MatchQuery($field, $state->getValue(), $this->parameters);
63
-            !isset($boost) ? : $query->addParameter('boost', $boost);
62
+            $query = new MatchQuery($field, $state->getValue(), $this->parameters);
63
+            !isset($boost) ?: $query->addParameter('boost', $boost);
64 64
         } else {
65 65
             list ($path, $field) = explode('+', $field);
66 66
             if (strpos($field, '^') !== false) {
67 67
                 list ($field, $boost) = explode('^', $field);
68 68
             }
69
-            $mQuery =  new MatchQuery($field, $state->getValue(), $this->parameters);
70
-            !isset($boost) ? : $mQuery->addParameter('boost', $boost);
69
+            $mQuery = new MatchQuery($field, $state->getValue(), $this->parameters);
70
+            !isset($boost) ?: $mQuery->addParameter('boost', $boost);
71 71
             $query = new NestedQuery($path, $mQuery);
72 72
         }
73 73
         return $query;
Please login to merge, or discard this patch.