|
@@ 130-132 (lines=3) @@
|
| 127 |
|
|
| 128 |
|
foreach ($paths as $path) { |
| 129 |
|
if (substr($path, $lastOffset, $dirLen) !== $dir) { |
| 130 |
|
if (0 < strlen($common) && DIRECTORY_SEPARATOR === $common[strlen($common) - 1]) { |
| 131 |
|
$common = substr($common, 0, strlen($common) - 1); |
| 132 |
|
} |
| 133 |
|
|
| 134 |
|
return $common; |
| 135 |
|
} |
|
@@ 144-146 (lines=3) @@
|
| 141 |
|
|
| 142 |
|
$common = substr($common, 0, -1); |
| 143 |
|
|
| 144 |
|
if (0 < strlen($common) && DIRECTORY_SEPARATOR === $common[strlen($common) - 1]) { |
| 145 |
|
$common = substr($common, 0, strlen($common) - 1); |
| 146 |
|
} |
| 147 |
|
|
| 148 |
|
return $common; |
| 149 |
|
} |