| 1 | <?php |
||
| 5 | abstract class Sniffer |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * Run PHPCS on given files. |
||
| 9 | * |
||
| 10 | * @param array $files |
||
| 11 | * @param string $standards |
||
| 12 | * @param string $extensions |
||
| 13 | * |
||
| 14 | * @return array |
||
| 15 | */ |
||
| 16 | public static function sniffFiles(array $files, $standards = '', $extensions = '') |
||
| 29 | |||
| 30 | /** |
||
| 31 | * Run PHPCS in a single file. |
||
| 32 | * |
||
| 33 | * @param $file |
||
| 34 | * @param string $standards |
||
| 35 | * @param string $extensions |
||
| 36 | * |
||
| 37 | * @return string|null |
||
| 38 | */ |
||
| 39 | private static function sniffFile($file, $standards = '', $extensions = '') |
||
| 69 | } |
||
| 70 |