@@ -110,7 +110,7 @@ discard block |
||
110 | 110 | foreach ($includePaths as $curPath) { |
111 | 111 | if ($pathLength === 0) { |
112 | 112 | $relationshipName = $this->getRelationshipNameForTopResource($curPath); |
113 | - } elseif (strpos($curPath, $pathBeginning . DocumentInterface::PATH_SEPARATOR) === 0) { |
|
113 | + } elseif (strpos($curPath, $pathBeginning.DocumentInterface::PATH_SEPARATOR) === 0) { |
|
114 | 114 | $relationshipName = $this->getRelationshipNameForResource($curPath, $pathLength); |
115 | 115 | } else { |
116 | 116 | $relationshipName = null; |
@@ -166,7 +166,7 @@ discard block |
||
166 | 166 | |
167 | 167 | if ($path !== null) { |
168 | 168 | foreach ($paths as $targetPath) { |
169 | - if (strpos($targetPath, $path . DocumentInterface::PATH_SEPARATOR) === 0) { |
|
169 | + if (strpos($targetPath, $path.DocumentInterface::PATH_SEPARATOR) === 0) { |
|
170 | 170 | $hasMatch = true; |
171 | 171 | break; |
172 | 172 | } |
@@ -221,8 +221,7 @@ discard block |
||
221 | 221 | { |
222 | 222 | $nextSeparatorPos = strpos($curPath, DocumentInterface::PATH_SEPARATOR, $pathLength + 1); |
223 | 223 | $relationshipName = $nextSeparatorPos === false ? |
224 | - substr($curPath, $pathLength + 1) : |
|
225 | - substr($curPath, $pathLength + 1, $nextSeparatorPos - $pathLength - 1); |
|
224 | + substr($curPath, $pathLength + 1) : substr($curPath, $pathLength + 1, $nextSeparatorPos - $pathLength - 1); |
|
226 | 225 | |
227 | 226 | return $relationshipName; |
228 | 227 | } |