@@ -46,12 +46,12 @@ 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 | |
53 | 53 | if ($this->eventManager) { |
54 | - $data = ['id' => $id]; |
|
54 | + $data = [ 'id' => $id ]; |
|
55 | 55 | $event = $this->eventManager->createEvent('delete.validation', null, $data); |
56 | 56 | $this->eventManager->trigger($event); |
57 | 57 | |
@@ -82,13 +82,13 @@ discard block |
||
82 | 82 | * @param array $filter |
83 | 83 | * @return EntityInterface[]|null |
84 | 84 | */ |
85 | - public function deleteAll(array $filter = []) |
|
85 | + public function deleteAll(array $filter = [ ]) |
|
86 | 86 | { |
87 | 87 | $criteria = $this->repository->createCriteria($filter); |
88 | 88 | $entities = $this->repository->findMany($criteria); |
89 | 89 | |
90 | 90 | if (empty($entities)) { |
91 | - $this->setErrors(['general' => 'Entities does not found.']); |
|
91 | + $this->setErrors([ 'general' => 'Entities does not found.' ]); |
|
92 | 92 | return; |
93 | 93 | } |
94 | 94 |
@@ -47,7 +47,7 @@ |
||
47 | 47 | $entity = $this->repository->find($criteria); |
48 | 48 | |
49 | 49 | if (!$entity) { |
50 | - $this->setErrors(['general' => sprintf("Entity #%s does not found.", $id)]); |
|
50 | + $this->setErrors([ 'general' => sprintf("Entity #%s does not found.", $id) ]); |
|
51 | 51 | return; |
52 | 52 | } |
53 | 53 |