Completed
Push — master ( badc97...0c7ad1 )
by max
02:56
created
src/Service/Deleter.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -46,12 +46,12 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Service/Updater.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.