@@ 133-135 (lines=3) @@ | ||
130 | ||
131 | foreach ($paths as $path) { |
|
132 | if (substr($path, $lastOffset, $dirLen) !== $dir) { |
|
133 | if (0 < strlen($common) && DIRECTORY_SEPARATOR === $common[strlen($common) - 1]) { |
|
134 | $common = substr($common, 0, strlen($common) - 1); |
|
135 | } |
|
136 | ||
137 | return $common; |
|
138 | } |
|
@@ 147-149 (lines=3) @@ | ||
144 | ||
145 | $common = substr($common, 0, -1); |
|
146 | ||
147 | if (0 < strlen($common) && DIRECTORY_SEPARATOR === $common[strlen($common) - 1]) { |
|
148 | $common = substr($common, 0, strlen($common) - 1); |
|
149 | } |
|
150 | ||
151 | return $common; |
|
152 | } |