Completed
Push — develop ( 3053a6...06a153 )
by Stuart
09:04
created
src/ValueBuilders/BuildArray.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -116,7 +116,7 @@
 block discarded – undo
116 116
      */
117 117
     private static function fromEverythingElse($data)
118 118
     {
119
-        return [ $data ];
119
+        return [$data];
120 120
     }
121 121
 
122 122
     /**
Please login to merge, or discard this patch.
src/ValueBuilders/DescendDotNotationPath.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
         // robustness!
77 77
         RequireIndexable::check($arr, E4xx_UnsupportedType::class);
78 78
 
79
-        $retval =& self::getPathFromRoot($arr, $index, $extendingItem);
79
+        $retval = & self::getPathFromRoot($arr, $index, $extendingItem);
80 80
         return $retval;
81 81
     }
82 82
 
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
         // robustness!
98 98
         RequireAssignable::check($obj, E4xx_UnsupportedType::class);
99 99
 
100
-        $retval =& self::getPathFromRoot($obj, $property, $extendingItem);
100
+        $retval = & self::getPathFromRoot($obj, $property, $extendingItem);
101 101
         return $retval;
102 102
     }
103 103
 
@@ -116,11 +116,11 @@  discard block
 block discarded – undo
116 116
     public static function &into(&$item, $property, $extendingItem = null)
117 117
     {
118 118
         if (IsAssignable::check($item)) {
119
-            $retval =& self::intoObject($item, $property, $extendingItem);
119
+            $retval = & self::intoObject($item, $property, $extendingItem);
120 120
             return $retval;
121 121
         }
122 122
         if (IsTraversable::check($item)) {
123
-            $retval =& self::intoArray($item, $property, $extendingItem);
123
+            $retval = & self::intoArray($item, $property, $extendingItem);
124 124
             return $retval;
125 125
         }
126 126
 
@@ -179,7 +179,7 @@  discard block
 block discarded – undo
179 179
     private static function &getPathFromRoot(&$root, $path, $extendingItem)
180 180
     {
181 181
         // to avoid recursion, this will track where we are in the tree
182
-        $retval =& $root;
182
+        $retval = & $root;
183 183
 
184 184
         // this will track where we have been, in case we need to report on
185 185
         // an error
@@ -193,7 +193,7 @@  discard block
 block discarded – undo
193 193
                 throw new E4xx_CannotDescendPath($retval, implode('.', $visitedPath));
194 194
             }
195 195
 
196
-            $retval =& self::getChildFromPart($retval, $part, $extendingItem);
196
+            $retval = & self::getChildFromPart($retval, $part, $extendingItem);
197 197
             $visitedPath[] = $part;
198 198
         }
199 199
 
@@ -221,7 +221,7 @@  discard block
 block discarded – undo
221 221
         }
222 222
 
223 223
         // if we get here, this must be an array
224
-        $retval =& self::getPartFromArray($container, $part, $extendingItem);
224
+        $retval = & self::getPartFromArray($container, $part, $extendingItem);
225 225
         return $retval;
226 226
     }
227 227
 
Please login to merge, or discard this patch.
src/Editors/RemoveUsingDotNotationPath.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
 
89 89
         // find the point where we want to remove the data from
90 90
         list ($firstPart, $finalPart) = self::splitPathInTwo($path);
91
-        $leaf =& DescendDotNotationPath::into($container, $firstPart);
91
+        $leaf = & DescendDotNotationPath::into($container, $firstPart);
92 92
 
93 93
         // remove it
94 94
         RemoveProperty::from($leaf, $finalPart);
@@ -109,6 +109,6 @@  discard block
 block discarded – undo
109 109
         $firstPart = FilterDotNotationParts::fromString($path, 0, -1);
110 110
         $finalPart = FilterDotNotationParts::fromString($path, -1, 1);
111 111
 
112
-        return [ $firstPart, $finalPart ];
112
+        return [$firstPart, $finalPart];
113 113
     }
114 114
 }
115 115
\ No newline at end of file
Please login to merge, or discard this patch.
src/Containers/LazyValueObject.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -86,8 +86,8 @@
 block discarded – undo
86 86
             throw new E4xx_NoSuchMethod(get_class($this), $methodName);
87 87
         }
88 88
 
89
-        $callable   = [ $this, $verb . 'Data'];
90
-        $argsToPass = array_merge([ $infoName ], $args);
89
+        $callable   = [$this, $verb . 'Data'];
90
+        $argsToPass = array_merge([$infoName], $args);
91 91
         return call_user_func_array($callable, $argsToPass);
92 92
     }
93 93
 
Please login to merge, or discard this patch.
src/Editors/MergeUsingDotNotationPath.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -83,10 +83,10 @@  discard block
 block discarded – undo
83 83
         // find the point where we want to merge
84 84
         list ($firstPart, $finalPart) = self::splitPathInTwo($path);
85 85
         if ($firstPart !== null) {
86
-            $leaf =& DescendDotNotationPath::intoArray($arr, $firstPart, $extendingItem);
86
+            $leaf = & DescendDotNotationPath::intoArray($arr, $firstPart, $extendingItem);
87 87
         }
88 88
         else {
89
-            $leaf =& $arr;
89
+            $leaf = & $arr;
90 90
         }
91 91
 
92 92
         // merge it
@@ -217,10 +217,10 @@  discard block
 block discarded – undo
217 217
 
218 218
         // special case - we're already at the end of the path
219 219
         if (strlen($firstPart) === 0) {
220
-            return [ null, $finalPart ];
220
+            return [null, $finalPart];
221 221
         }
222 222
 
223 223
         // general case - we're not at the end of the path
224
-        return [ $firstPart, $finalPart ];
224
+        return [$firstPart, $finalPart];
225 225
     }
226 226
 }
Please login to merge, or discard this patch.