@@ 79-93 (lines=15) @@ | ||
76 | /** |
|
77 | * @param string $path |
|
78 | */ |
|
79 | private function checkDirectory($path) |
|
80 | { |
|
81 | // code sniffer |
|
82 | foreach ((new Finder())->in($path)->files() as $filePath => $fileInfo) { |
|
83 | $file = $this->getCodeSniffer()->processFile($filePath); |
|
84 | ||
85 | } |
|
86 | ||
87 | // php-cs-fixer |
|
88 | ||
89 | ||
90 | $this->style->success( |
|
91 | sprintf('Directory "%s" was checked!', $path) |
|
92 | ); |
|
93 | } |
|
94 | ||
95 | /** |
|
96 | * Lazy loaded due to duplicated constants in setup |
@@ 91-104 (lines=14) @@ | ||
88 | /** |
|
89 | * @param string $path |
|
90 | */ |
|
91 | private function fixDirectory($path) |
|
92 | { |
|
93 | // code sniffer |
|
94 | foreach (Finder::create()->in($path)->files() as $filePath => $fileInfo) { |
|
95 | $file = $this->codeBeautifier->processFile($filePath); |
|
96 | var_dump($file->getErrorCount()); |
|
97 | } |
|
98 | ||
99 | // php-cs-fixer |
|
100 | ||
101 | $this->style->success( |
|
102 | sprintf('Directory "%s" was checked!', $path) |
|
103 | ); |
|
104 | } |
|
105 | } |
|
106 |