Completed
Push — master ( 0c7ad1...3f78d0 )
by max
02:13
created
src/Entity.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@  discard block
 block discarded – undo
14 14
     /**
15 15
      * @param array $data
16 16
      */
17
-    public function __construct(array $data = [])
17
+    public function __construct(array $data = [ ])
18 18
     {
19 19
         $this->populate($data);
20 20
     }
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
      * @param array $properties
32 32
      * @return array
33 33
      */
34
-    public function extract(array $properties = [])
34
+    public function extract(array $properties = [ ])
35 35
     {
36 36
         $state = get_object_vars($this);
37 37
 
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
      * @param array $array
49 49
      * @return $this
50 50
      */
51
-    public function populate(array $array = [])
51
+    public function populate(array $array = [ ])
52 52
     {
53 53
         $state = get_object_vars($this);
54 54
 
Please login to merge, or discard this patch.
src/ErrorAwareTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@
 block discarded – undo
7 7
     /**
8 8
      * @var array
9 9
      */
10
-    private $errors = [];
10
+    private $errors = [ ];
11 11
 
12 12
     /**
13 13
      * @param array $errors
Please login to merge, or discard this patch.
src/Service/Updater.php 2 patches
Doc Comments   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -22,7 +22,6 @@  discard block
 block discarded – undo
22 22
     protected $eventManager;
23 23
 
24 24
     /**
25
-     * @param ValidatorInterface $validator
26 25
      * @param RepositoryInterface $repository
27 26
      */
28 27
     public function __construct(
@@ -37,7 +36,7 @@  discard block
 block discarded – undo
37 36
     /**
38 37
      * @param mixed $id
39 38
      * @param array $data
40
-     * @return EntityInterface|null
39
+     * @return null|\T4webDomainInterface\EntityInterface
41 40
      */
42 41
     public function update($id, array $data)
43 42
     {
Please login to merge, or discard this 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.
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.