@@ -18,7 +18,7 @@ discard block |
||
18 | 18 | $this->data = $data; |
19 | 19 | } |
20 | 20 | |
21 | - if(!is_array($this->data)) { |
|
21 | + if (!is_array($this->data)) { |
|
22 | 22 | throw new \DomainException('Data must be array or json encoded array'); |
23 | 23 | } |
24 | 24 | |
@@ -103,7 +103,7 @@ discard block |
||
103 | 103 | } |
104 | 104 | |
105 | 105 | if ($extraData instanceof self) { |
106 | - foreach($extraData as $key => $value) { |
|
106 | + foreach ($extraData as $key => $value) { |
|
107 | 107 | if (isset($this[$key]) |
108 | 108 | && $value instanceof self |
109 | 109 | && $this[$key] instanceof self |
@@ -130,7 +130,7 @@ discard block |
||
130 | 130 | |
131 | 131 | public function __clone() |
132 | 132 | { |
133 | - foreach($this->data as $key => $value) { |
|
133 | + foreach ($this->data as $key => $value) { |
|
134 | 134 | if ($value instanceof self) { |
135 | 135 | $this->data[$key] = clone $value; |
136 | 136 | } |
@@ -139,7 +139,7 @@ discard block |
||
139 | 139 | |
140 | 140 | public function asArray() { |
141 | 141 | $result = $this->data; |
142 | - foreach($result as $key => $value) { |
|
142 | + foreach ($result as $key => $value) { |
|
143 | 143 | if ($value instanceof self) { |
144 | 144 | $result[$value] = $value->asArray(); |
145 | 145 | } |