@@ -46,7 +46,7 @@ discard block |
||
| 46 | 46 | $entity = $this->repository->find($criteria); |
| 47 | 47 | |
| 48 | 48 | if (!$entity) { |
| 49 | - $this->setErrors(['general' => sprintf("Entity #%s does not found.", $id)]); |
|
| 49 | + $this->setErrors([ 'general' => sprintf("Entity #%s does not found.", $id) ]); |
|
| 50 | 50 | return; |
| 51 | 51 | } |
| 52 | 52 | |
@@ -69,13 +69,13 @@ discard block |
||
| 69 | 69 | * @param array $filter |
| 70 | 70 | * @return EntityInterface[]|null |
| 71 | 71 | */ |
| 72 | - public function deleteAll(array $filter = []) |
|
| 72 | + public function deleteAll(array $filter = [ ]) |
|
| 73 | 73 | { |
| 74 | 74 | $criteria = $this->repository->createCriteria($filter); |
| 75 | 75 | $entities = $this->repository->findMany($criteria); |
| 76 | 76 | |
| 77 | 77 | if (empty($entities)) { |
| 78 | - $this->setErrors(['general' => 'Entities does not found.']); |
|
| 78 | + $this->setErrors([ 'general' => 'Entities does not found.' ]); |
|
| 79 | 79 | return; |
| 80 | 80 | } |
| 81 | 81 | |