Lines Matching full:files
15 * files is returned as an array.
40 $files = array();
46 $files[] = $file;
52 $files[] = realpath($path);
56 $files = array_unique($files);
57 sort($files);
61 'commonPath' => $this->getCommonPath($files),
62 'files' => $files
65 return $files;
70 * Returns the common path of a set of files.
72 * @param array $files
75 protected function getCommonPath(array $files) argument
77 $count = count($files);
84 return dirname($files[0]) . DIRECTORY_SEPARATOR;
89 foreach ($files as $file) {