@@ -249,7 +249,7 @@ |
||
249 | 249 | * @param string $_id |
250 | 250 | * @param array $mergeParams |
251 | 251 | * @param array|null $return |
252 | - * @return array|null |
|
252 | + * @return null|callable |
|
253 | 253 | */ |
254 | 254 | public function get($index, $type, $_id, array $mergeParams = [], array &$return = null) { |
255 | 255 | if (!$this->indexExists($index)) { |
@@ -47,6 +47,9 @@ |
||
47 | 47 | $this->validateEntity($classMetadata->name); |
48 | 48 | } |
49 | 49 | |
50 | + /** |
|
51 | + * @param string $className |
|
52 | + */ |
|
50 | 53 | private function validateEntity($className) { |
51 | 54 | $type = $this->annotationReader->getClassAnnotation($this->class->getReflectionClass(), Type::class); |
52 | 55 |
@@ -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 |