Lines Matching refs:path

288         $path = str_replace(array('_', '\\'), DIRECTORY_SEPARATOR, $newClassName).'.php';
290 if (is_file(dirname(__FILE__).DIRECTORY_SEPARATOR.$path) === true) {
292 include dirname(__FILE__).DIRECTORY_SEPARATOR.$path;
298 if (is_file($installedPath.DIRECTORY_SEPARATOR.$path) === true) {
299 include $installedPath.DIRECTORY_SEPARATOR.$path;
306 if (is_file(dirname($rulesetDir).DIRECTORY_SEPARATOR.$path) === true) {
307 include_once dirname($rulesetDir).DIRECTORY_SEPARATOR.$path;
314 @include $path;
981 $path = $file->getPathname();
987 if (strpos($path, DIRECTORY_SEPARATOR.'.', $dirLen) !== false) {
993 echo "\t\t=> $path".PHP_EOL;
996 $sniffs[] = $path;
1065 $path = $this->getInstalledStandardPath($ref);
1066 if (self::isPharFile($path) === true && strpos($path, 'ruleset.xml') === false) {
1068 if (file_exists($path.DIRECTORY_SEPARATOR.'ruleset.xml') === true) {
1069 $path = $path.DIRECTORY_SEPARATOR.'ruleset.xml';
1071 $path = null;
1075 if ($path !== null) {
1076 $ref = $path;
1086 $path = substr($ref, $sepPos);
1092 $path = '';
1095 $path = DIRECTORY_SEPARATOR.'Sniffs'.DIRECTORY_SEPARATOR.$parts[1];
1098 …$path = DIRECTORY_SEPARATOR.'Sniffs'.DIRECTORY_SEPARATOR.$parts[1].DIRECTORY_SEPARATOR.$parts[2].'…
1104 if ($stdPath !== null && $path !== '') {
1110 $newRef = self::realpath($stdPath.$path);
1112 $newRef = self::realpath(dirname($stdPath).$path);
1127 $newRef = self::realpath($dir.$path);
1570 foreach ($paths as $path) {
1571 if (is_dir($path) === true || self::isPharFile($path) === true) {
1572 if (self::isPharFile($path) === true) {
1573 $path = 'phar://'.$path;
1577 $di = new DirectoryIterator($path);
1580 new RecursiveDirectoryIterator($path),
1597 if ($this->shouldProcessFile($file->getPathname(), $path) === false) {
1604 if ($this->shouldIgnoreFile($path, dirname($path)) === true) {
1608 $files[] = $path;
1622 * @param string $path The path to the file being checked.
1627 public function shouldProcessFile($path, $basedir) argument
1632 $fileName = basename($path);
1653 if ($this->shouldIgnoreFile($path, $basedir) === true) {
1665 * @param string $path The path to the file being checked.
1670 public function shouldIgnoreFile($path, $basedir) argument
1672 $relativePath = $path;
1673 if (strpos($path, $basedir) === 0) {
1675 $relativePath = substr($path, (strlen($basedir) + 1));
1708 $testPath = $path;
2288 $path = self::getInstalledStandardPath($standard);
2289 if ($path !== null && strpos($path, 'ruleset.xml') !== false) {
2334 $path = self::realpath($standardPath.DIRECTORY_SEPARATOR.'ruleset.xml');
2335 if (is_file($path) === true) {
2336 return $path;
2338 $path = self::realpath($standardPath);
2339 if ($path !== false) {
2340 return $path;
2400 $path = '';
2402 $path = Phar::running(false);
2405 if ($path !== '') {
2406 $configFile = dirname($path).'/CodeSniffer.conf';
2465 $path = '';
2467 $path = Phar::running(false);
2470 if ($path !== '') {
2471 $configFile = dirname($path).'/CodeSniffer.conf';
2494 * @param string $path The path to use.
2498 public static function isPharFile($path) argument
2500 if (strpos($path, 'phar://') === 0) {
2514 * @param string $path The path to use.
2518 public static function realpath($path) argument
2521 if (substr($path, 0, 2) === '~/') {
2524 $path = $homeDir.substr($path, 1);
2529 if (self::isPharFile($path) === false) {
2530 return realpath($path);
2536 if (file_exists($path) === true) {
2537 return $path;
2541 $extra = str_replace('phar://'.$phar, '', $path);
2542 $path = realpath($phar);
2543 if ($path === false) {
2547 $path = 'phar://'.$path.$extra;
2548 if (file_exists($path) === true) {
2549 return $path;
2562 * @param string $path The path to use.
2566 public static function chdir($path) argument
2568 if (self::isPharFile($path) === true) {
2572 chdir($path);