@@ -12,7 +12,7 @@ discard block |
||
12 | 12 | private $values = []; |
13 | 13 | |
14 | 14 | public function __construct(array $arrayConfig = []) { |
15 | - foreach($arrayConfig as $key => $value) |
|
15 | + foreach ($arrayConfig as $key => $value) |
|
16 | 16 | $this->offsetSet($key, $value); |
17 | 17 | |
18 | 18 | $this->onConstruct(); |
@@ -35,7 +35,7 @@ discard block |
||
35 | 35 | |
36 | 36 | public function toArray() { |
37 | 37 | return array_map( |
38 | - function ($value) { |
|
38 | + function($value) { |
|
39 | 39 | return $this->hasToArray($value) ? $value->toArray() : $value; |
40 | 40 | }, |
41 | 41 | $this->values |
@@ -62,7 +62,7 @@ discard block |
||
62 | 62 | } |
63 | 63 | |
64 | 64 | private function getFirstToken($path, $delimiter) { |
65 | - return $this->gettok($path, $delimiter,0); |
|
65 | + return $this->gettok($path, $delimiter, 0); |
|
66 | 66 | } |
67 | 67 | |
68 | 68 | private function evalSubPath($path, $delimiter, $default) { |
@@ -130,18 +130,18 @@ discard block |
||
130 | 130 | |
131 | 131 | |
132 | 132 | # Iterator |
133 | - public function rewind() { return reset($this->values); } |
|
134 | - public function key() { return key($this->values); } |
|
135 | - public function current() { return current($this->values); } |
|
136 | - public function next() { return next($this->values); } |
|
137 | - public function valid() { return key($this->values) !== null; } |
|
133 | + public function rewind() { return reset($this->values); } |
|
134 | + public function key() { return key($this->values); } |
|
135 | + public function current() { return current($this->values); } |
|
136 | + public function next() { return next($this->values); } |
|
137 | + public function valid() { return key($this->values) !== null; } |
|
138 | 138 | |
139 | 139 | |
140 | 140 | # Magic Property Access |
141 | - public function __set($offset, $value) { $this->offsetSet($offset, $value); } |
|
142 | - public function __unset($offset) { $this->offsetUnset($offset); } |
|
143 | - public function __get($offset) { return $this->offsetGet($offset); } |
|
144 | - public function __isset($offset) { return $this->offsetExists($offset); } |
|
141 | + public function __set($offset, $value) { $this->offsetSet($offset, $value); } |
|
142 | + public function __unset($offset) { $this->offsetUnset($offset); } |
|
143 | + public function __get($offset) { return $this->offsetGet($offset); } |
|
144 | + public function __isset($offset) { return $this->offsetExists($offset); } |
|
145 | 145 | |
146 | 146 | /** |
147 | 147 | * @param array $data |