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