We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 267bf00 commit 893ab10Copy full SHA for 893ab10
src/ReferenceContext.php
@@ -125,11 +125,11 @@ private function reduceDots($path)
125
if ($i > 0 && $parts[$i] === '..') {
126
$parent = $i - $parentOffset;
127
//Make sure parent exists, if not, check the next parent etc
128
- while($parent >= 0 && empty($parts[$parent])){
129
- $parent--;
+ while ($parent >= 0 && empty($parts[$parent])) {
+ $parent--;
130
}
131
//Confirm parent is valid
132
- if(!empty($parts[$parent]) && $parts[$parent] !== '..'){
+ if (!empty($parts[$parent]) && $parts[$parent] !== '..') {
133
unset($parts[$parent]);
134
135
unset($parts[$i]);
0 commit comments