Lines Matching refs:paths
180 $paths = array_keys($files);
183 $commonPath = dirname($paths[0]) . '/';
184 $files[basename($paths[0])] = $files[$paths[0]];
186 unset($files[$paths[0]]);
191 $max = count($paths);
195 if (strpos($paths[$i], 'phar://') === 0) {
196 $paths[$i] = substr($paths[$i], 7);
197 $paths[$i] = strtr($paths[$i], '/', DIRECTORY_SEPARATOR);
199 $paths[$i] = explode(DIRECTORY_SEPARATOR, $paths[$i]);
201 if (empty($paths[$i][0])) {
202 $paths[$i][0] = DIRECTORY_SEPARATOR;
207 $max = count($paths);
211 if (!isset($paths[$i][0]) ||
212 !isset($paths[$i+1][0]) ||
213 $paths[$i][0] != $paths[$i+1][0]) {
220 $commonPath .= $paths[0][0];
222 if ($paths[0][0] != DIRECTORY_SEPARATOR) {
227 array_shift($paths[$i]);
236 $files[implode('/', $paths[$i])] = $files[$original[$i]];