@@ -44,7 +44,7 @@ |
||
44 | 44 | 'precision_threshold' => $this->getPrecisionThreshold(), |
45 | 45 | 'rehash' => $this->isRehash(), |
46 | 46 | ], |
47 | - function ($val) { |
|
47 | + function($val) { |
|
48 | 48 | return ($val || is_bool($val)); |
49 | 49 | } |
50 | 50 | ); |
@@ -79,7 +79,7 @@ |
||
79 | 79 | 'script' => $this->getScript(), |
80 | 80 | 'sigma' => $this->getSigma(), |
81 | 81 | ], |
82 | - function ($val) { |
|
82 | + function($val) { |
|
83 | 83 | return ($val || is_numeric($val)); |
84 | 84 | } |
85 | 85 | ); |
@@ -208,7 +208,7 @@ |
||
208 | 208 | 'keyed' => $this->isKeyed(), |
209 | 209 | 'order' => $this->getOrder(), |
210 | 210 | ], |
211 | - function ($val) { |
|
211 | + function($val) { |
|
212 | 212 | return ($val || is_numeric($val)); |
213 | 213 | } |
214 | 214 | ); |
@@ -103,7 +103,7 @@ |
||
103 | 103 | 'values' => $this->getValues(), |
104 | 104 | 'compression' => $this->getCompression(), |
105 | 105 | ], |
106 | - function ($val) { |
|
106 | + function($val) { |
|
107 | 107 | return ($val || is_numeric($val)); |
108 | 108 | } |
109 | 109 | ); |
@@ -103,7 +103,7 @@ |
||
103 | 103 | 'field' => $this->getField(), |
104 | 104 | 'script' => $this->getScript(), |
105 | 105 | ], |
106 | - function ($val) { |
|
106 | + function($val) { |
|
107 | 107 | return ($val || is_numeric($val)); |
108 | 108 | } |
109 | 109 | ); |
@@ -131,7 +131,7 @@ |
||
131 | 131 | 'size' => $this->getSize(), |
132 | 132 | 'from' => $this->getFrom(), |
133 | 133 | ], |
134 | - function ($val) { |
|
134 | + function($val) { |
|
135 | 135 | return (($val || is_array($val) || ($val || is_numeric($val)))); |
136 | 136 | } |
137 | 137 | ); |
@@ -105,7 +105,7 @@ |
||
105 | 105 | return array_filter( |
106 | 106 | $this->bag, |
107 | 107 | /** @var BuilderInterface $builder */ |
108 | - function (BuilderInterface $builder) use ($type) { |
|
108 | + function(BuilderInterface $builder) use ($type) { |
|
109 | 109 | return $type === null || $builder->getType() == $type; |
110 | 110 | } |
111 | 111 | ); |
@@ -42,7 +42,7 @@ |
||
42 | 42 | public function __construct($query = null, $filter = null) |
43 | 43 | { |
44 | 44 | @trigger_error( |
45 | - 'The FilteredQuery class is deprecated and will be removed in 2.0. ' . |
|
45 | + 'The FilteredQuery class is deprecated and will be removed in 2.0. '. |
|
46 | 46 | 'Use the "bool" query instead with a "filter" clause.', |
47 | 47 | E_USER_DEPRECATED |
48 | 48 | ); |
@@ -162,7 +162,7 @@ |
||
162 | 162 | public function addRandomFunction($seed = null, BuilderInterface $filter = null) |
163 | 163 | { |
164 | 164 | $function = [ |
165 | - 'random_score' => $seed ? [ 'seed' => $seed ] : new \stdClass(), |
|
165 | + 'random_score' => $seed ? ['seed' => $seed] : new \stdClass(), |
|
166 | 166 | ]; |
167 | 167 | |
168 | 168 | $this->applyFilter($function, $filter); |