| @@ 75-82 (lines=8) @@ | ||
| 72 | /** |
|
| 73 | * @return string[] |
|
| 74 | */ |
|
| 75 | private function findRulesetFiles() |
|
| 76 | { |
|
| 77 | $installedStandards = (new Finder())->files() |
|
| 78 | ->in($this->vendorDir) |
|
| 79 | ->name('ruleset.xml'); |
|
| 80 | ||
| 81 | return array_keys(iterator_to_array($installedStandards)); |
|
| 82 | } |
|
| 83 | ||
| 84 | /** |
|
| 85 | * @return string[] |
|
| @@ 31-39 (lines=9) @@ | ||
| 28 | /** |
|
| 29 | * {@inheritdoc} |
|
| 30 | */ |
|
| 31 | public function findAllSniffs() |
|
| 32 | { |
|
| 33 | $sniffFilesInfo = (new Finder())->files() |
|
| 34 | ->in($this->vendorDir) |
|
| 35 | ->name('*Sniff.php') |
|
| 36 | ->sortByName(); |
|
| 37 | ||
| 38 | return array_keys(iterator_to_array($sniffFilesInfo)); |
|
| 39 | } |
|
| 40 | } |
|
| 41 | ||