@@ 136-138 (lines=3) @@ | ||
133 | ||
134 | foreach ($paths as $path) { |
|
135 | if (substr($path, $lastOffset, $dirLen) !== $dir) { |
|
136 | if (0 < strlen($common) && DIRECTORY_SEPARATOR === $common[strlen($common) - 1]) { |
|
137 | $common = substr($common, 0, strlen($common) - 1); |
|
138 | } |
|
139 | ||
140 | return $common; |
|
141 | } |
|
@@ 150-152 (lines=3) @@ | ||
147 | ||
148 | $common = substr($common, 0, -1); |
|
149 | ||
150 | if (0 < strlen($common) && DIRECTORY_SEPARATOR === $common[strlen($common) - 1]) { |
|
151 | $common = substr($common, 0, strlen($common) - 1); |
|
152 | } |
|
153 | ||
154 | return $common; |
|
155 | } |