@@ -83,10 +83,10 @@ discard block |
||
| 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 |
@@ -117,7 +117,7 @@ discard block |
||
| 117 | 117 | // find the point where we want to merge |
| 118 | 118 | list ($firstPart, $finalPart) = self::splitPathInTwo($path); |
| 119 | 119 | if ($firstPart !== null) { |
| 120 | - $leaf =& DescendDotNotationPath::intoObject($obj, $firstPart, $extendingItem); |
|
| 120 | + $leaf = & DescendDotNotationPath::intoObject($obj, $firstPart, $extendingItem); |
|
| 121 | 121 | } |
| 122 | 122 | else { |
| 123 | 123 | $leaf = $obj; |
@@ -217,10 +217,10 @@ discard block |
||
| 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 | } |