Conditions | 3 |
Paths | 3 |
Total Lines | 15 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
31 | public function runActualTask($params = []): ?string |
||
32 | { |
||
33 | if (PHP2CommandLineSingleton::commandExists('sake-lint-all')) { |
||
34 | foreach ($this->mu()->getExistingModuleDirLocations() as $moduleDir) { |
||
|
|||
35 | $this->mu()->execMe( |
||
36 | $this->mu()->getWebRootDirLocation(), |
||
37 | 'sake-lint-all ' . $moduleDir, |
||
38 | 'Linting all PHP files in ' . $moduleDir, |
||
39 | true |
||
40 | ); |
||
41 | } |
||
42 | } else { |
||
43 | return 'You need to install sake-lint-all to use this task: https://github.com/sunnysideup/silverstripe-easy-coding-standards'; |
||
44 | } |
||
45 | return null; |
||
46 | } |
||
53 |