@@ 77-79 (lines=3) @@ | ||
74 | ||
75 | foreach ($paths as $path) { |
|
76 | if (substr($path, $lastOffset, $dirLen) !== $dir) { |
|
77 | if (0 < strlen($common) && DIRECTORY_SEPARATOR === $common[strlen($common) - 1]) { |
|
78 | $common = substr($common, 0, -1); |
|
79 | } |
|
80 | ||
81 | return $common; |
|
82 | } |
|
@@ 91-93 (lines=3) @@ | ||
88 | ||
89 | $common = substr($common, 0, -1); |
|
90 | ||
91 | if (0 < strlen($common) && DIRECTORY_SEPARATOR === $common[strlen($common) - 1]) { |
|
92 | $common = substr($common, 0, -1); |
|
93 | } |
|
94 | ||
95 | return $common; |
|
96 | } |