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