Passed
Push — master ( 7564f3...5b2ba6 )
by Beau
01:54 queued 11s
created
src/Data.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
             throw new InvalidPathException("Key cannot be an empty string");
47 47
         }
48 48
 
49
-        $currentValue =& $this->data;
49
+        $currentValue = & $this->data;
50 50
         $keyPath = explode('.', $key);
51 51
 
52 52
         if (1 == count($keyPath)) {
@@ -65,11 +65,11 @@  discard block
 block discarded – undo
65 65
 
66 66
         $endKey = array_pop($keyPath);
67 67
         for ($i = 0; $i < count($keyPath); $i++) {
68
-            $currentKey =& $keyPath[$i];
69
-            if (! isset($currentValue[$currentKey])) {
68
+            $currentKey = & $keyPath[$i];
69
+            if (!isset($currentValue[$currentKey])) {
70 70
                 $currentValue[$currentKey] = [];
71 71
             }
72
-            $currentValue =& $currentValue[$currentKey];
72
+            $currentValue = & $currentValue[$currentKey];
73 73
         }
74 74
 
75 75
         if (!isset($currentValue[$endKey])) {
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
             throw new InvalidPathException("Key cannot be an empty string");
93 93
         }
94 94
 
95
-        $currentValue =& $this->data;
95
+        $currentValue = & $this->data;
96 96
         $keyPath = explode('.', $key);
97 97
 
98 98
         if (1 == count($keyPath)) {
@@ -103,14 +103,14 @@  discard block
 block discarded – undo
103 103
 
104 104
         $endKey = array_pop($keyPath);
105 105
         for ($i = 0; $i < count($keyPath); $i++) {
106
-            $currentKey =& $keyPath[$i];
106
+            $currentKey = & $keyPath[$i];
107 107
             if (!isset($currentValue[$currentKey])) {
108 108
                 $currentValue[$currentKey] = [];
109 109
             }
110 110
             if (!is_array($currentValue[$currentKey])) {
111 111
                 throw new DataException("Key path at $currentKey of $key cannot be indexed into (is not an array)");
112 112
             }
113
-            $currentValue =& $currentValue[$currentKey];
113
+            $currentValue = & $currentValue[$currentKey];
114 114
         }
115 115
         $currentValue[$endKey] = $value;
116 116
     }
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
             throw new InvalidPathException("Key cannot be an empty string");
125 125
         }
126 126
 
127
-        $currentValue =& $this->data;
127
+        $currentValue = & $this->data;
128 128
         $keyPath = explode('.', $key);
129 129
 
130 130
         if (1 == count($keyPath)) {
@@ -135,11 +135,11 @@  discard block
 block discarded – undo
135 135
 
136 136
         $endKey = array_pop($keyPath);
137 137
         for ($i = 0; $i < count($keyPath); $i++) {
138
-            $currentKey =& $keyPath[$i];
138
+            $currentKey = & $keyPath[$i];
139 139
             if (!isset($currentValue[$currentKey])) {
140 140
                 return;
141 141
             }
142
-            $currentValue =& $currentValue[$currentKey];
142
+            $currentValue = & $currentValue[$currentKey];
143 143
         }
144 144
         unset($currentValue[$endKey]);
145 145
     }
Please login to merge, or discard this patch.