@@ -337,7 +337,7 @@ |
||
337 | 337 | } |
338 | 338 | |
339 | 339 | public function delete($entity) { |
340 | - if(!is_object($entity)){ |
|
340 | + if (!is_object($entity)) { |
|
341 | 341 | throw new InvalidArgumentException('Trying to schedule a non object to delete'); |
342 | 342 | } |
343 | 343 |
@@ -133,6 +133,6 @@ |
||
133 | 133 | /** @var Field[] $fields */ |
134 | 134 | $fields = (new AnnotationEntityHydrator())->extractSpecAnnotations($className, Field::class); |
135 | 135 | |
136 | - return isset($fields[$propertyName]) ? $fields[$propertyName]: null; |
|
136 | + return isset($fields[$propertyName]) ? $fields[$propertyName] : null; |
|
137 | 137 | } |
138 | 138 | } |
@@ -294,7 +294,7 @@ discard block |
||
294 | 294 | |
295 | 295 | $queryParams = array_replace_recursive([ |
296 | 296 | 'size' => self::DEFAULT_MAX_RESULTS |
297 | - ], array_filter($queryParams, function ($value) { |
|
297 | + ], array_filter($queryParams, function($value) { |
|
298 | 298 | return $value !== null; |
299 | 299 | })); |
300 | 300 | |
@@ -306,7 +306,7 @@ discard block |
||
306 | 306 | |
307 | 307 | $url = "$index/$type/_search?" . http_build_query($queryParams); |
308 | 308 | |
309 | - $cleanQuery = function ($queryPart, callable $recusiveFn) { |
|
309 | + $cleanQuery = function($queryPart, callable $recusiveFn) { |
|
310 | 310 | if (!is_array($queryPart)) { |
311 | 311 | return $queryPart; |
312 | 312 | } |