Completed
Push — master ( 4a2e8e...1585d9 )
by max
03:16
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/EntityFactory.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -35,16 +35,16 @@
 block discarded – undo
35 35
      */
36 36
     public function create(array $data)
37 37
     {
38
-        if (!isset($data['data']) && !isset($data['aggregateItems'])) {
38
+        if (!isset($data[ 'data' ]) && !isset($data[ 'aggregateItems' ])) {
39 39
             return new $this->entityClass($data);
40 40
         }
41 41
 
42 42
         $reflector = new \ReflectionClass($this->entityClass);
43 43
 
44
-        $istanceArgs = [$data['data']];
44
+        $istanceArgs = [ $data[ 'data' ] ];
45 45
 
46
-        foreach ($data['aggregateItems'] as $aggregateItem) {
47
-            $istanceArgs[] = $aggregateItem;
46
+        foreach ($data[ 'aggregateItems' ] as $aggregateItem) {
47
+            $istanceArgs[ ] = $aggregateItem;
48 48
         }
49 49
 
50 50
         return $reflector->newInstanceArgs($istanceArgs);
Please login to merge, or discard this patch.