@@ -42,7 +42,7 @@ discard block |
||
42 | 42 | throw new RuntimeException("Key cannot be an empty string"); |
43 | 43 | } |
44 | 44 | |
45 | - $currentValue =& $this->data; |
|
45 | + $currentValue = & $this->data; |
|
46 | 46 | $keyPath = explode('.', $key); |
47 | 47 | |
48 | 48 | if (1 == count($keyPath)) { |
@@ -61,11 +61,11 @@ discard block |
||
61 | 61 | |
62 | 62 | $endKey = array_pop($keyPath); |
63 | 63 | for ($i = 0; $i < count($keyPath); $i++) { |
64 | - $currentKey =& $keyPath[$i]; |
|
65 | - if (! isset($currentValue[$currentKey])) { |
|
64 | + $currentKey = & $keyPath[$i]; |
|
65 | + if (!isset($currentValue[$currentKey])) { |
|
66 | 66 | $currentValue[$currentKey] = []; |
67 | 67 | } |
68 | - $currentValue =& $currentValue[$currentKey]; |
|
68 | + $currentValue = & $currentValue[$currentKey]; |
|
69 | 69 | } |
70 | 70 | |
71 | 71 | if (!isset($currentValue[$endKey])) { |
@@ -88,7 +88,7 @@ discard block |
||
88 | 88 | throw new RuntimeException("Key cannot be an empty string"); |
89 | 89 | } |
90 | 90 | |
91 | - $currentValue =& $this->data; |
|
91 | + $currentValue = & $this->data; |
|
92 | 92 | $keyPath = explode('.', $key); |
93 | 93 | |
94 | 94 | if (1 == count($keyPath)) { |
@@ -99,14 +99,14 @@ discard block |
||
99 | 99 | |
100 | 100 | $endKey = array_pop($keyPath); |
101 | 101 | for ($i = 0; $i < count($keyPath); $i++) { |
102 | - $currentKey =& $keyPath[$i]; |
|
102 | + $currentKey = & $keyPath[$i]; |
|
103 | 103 | if (!isset($currentValue[$currentKey])) { |
104 | 104 | $currentValue[$currentKey] = []; |
105 | 105 | } |
106 | 106 | if (!is_array($currentValue[$currentKey])) { |
107 | 107 | throw new RuntimeException("Key path at $currentKey of $key cannot be indexed into (is not an array)"); |
108 | 108 | } |
109 | - $currentValue =& $currentValue[$currentKey]; |
|
109 | + $currentValue = & $currentValue[$currentKey]; |
|
110 | 110 | } |
111 | 111 | $currentValue[$endKey] = $value; |
112 | 112 | } |
@@ -120,7 +120,7 @@ discard block |
||
120 | 120 | throw new RuntimeException("Key cannot be an empty string"); |
121 | 121 | } |
122 | 122 | |
123 | - $currentValue =& $this->data; |
|
123 | + $currentValue = & $this->data; |
|
124 | 124 | $keyPath = explode('.', $key); |
125 | 125 | |
126 | 126 | if (1 == count($keyPath)) { |
@@ -131,11 +131,11 @@ discard block |
||
131 | 131 | |
132 | 132 | $endKey = array_pop($keyPath); |
133 | 133 | for ($i = 0; $i < count($keyPath); $i++) { |
134 | - $currentKey =& $keyPath[$i]; |
|
134 | + $currentKey = & $keyPath[$i]; |
|
135 | 135 | if (!isset($currentValue[$currentKey])) { |
136 | 136 | return; |
137 | 137 | } |
138 | - $currentValue =& $currentValue[$currentKey]; |
|
138 | + $currentValue = & $currentValue[$currentKey]; |
|
139 | 139 | } |
140 | 140 | unset($currentValue[$endKey]); |
141 | 141 | } |