| @@ 679-683 (lines=5) @@ | ||
| 676 | $files = explode(',', substr($arg, 10)); |
|
| 677 | foreach ($files as $file) { |
|
| 678 | $path = PHP_CodeSniffer::realpath($file); |
|
| 679 | if ($path === false) { |
|
| 680 | echo 'ERROR: The specified bootstrap file "'.$file.'" does not exist'.PHP_EOL.PHP_EOL; |
|
| 681 | $this->printUsage(); |
|
| 682 | exit(2); |
|
| 683 | } |
|
| 684 | ||
| 685 | $this->values['bootstrap'][] = $path; |
|
| 686 | } |
|
| @@ 690-694 (lines=5) @@ | ||
| 687 | } else if (substr($arg, 0, 10) === 'file-list=') { |
|
| 688 | $fileList = substr($arg, 10); |
|
| 689 | $path = PHP_CodeSniffer::realpath($fileList); |
|
| 690 | if ($path === false) { |
|
| 691 | echo 'ERROR: The specified file list "'.$file.'" does not exist'.PHP_EOL.PHP_EOL; |
|
| 692 | $this->printUsage(); |
|
| 693 | exit(2); |
|
| 694 | } |
|
| 695 | ||
| 696 | $files = file($path); |
|
| 697 | foreach ($files as $inputFile) { |
|
| @@ 706-710 (lines=5) @@ | ||
| 703 | } |
|
| 704 | ||
| 705 | $realFile = PHP_CodeSniffer::realpath($inputFile); |
|
| 706 | if ($realFile === false) { |
|
| 707 | echo 'ERROR: The specified file "'.$inputFile.'" does not exist'.PHP_EOL.PHP_EOL; |
|
| 708 | $this->printUsage(); |
|
| 709 | exit(2); |
|
| 710 | } |
|
| 711 | ||
| 712 | $this->values['files'][] = $realFile; |
|
| 713 | } |
|