| Conditions | 2 |
| Paths | 2 |
| Total Lines | 33 |
| Code Lines | 22 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 3 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 24 | public function runActualTask($params = []): ?string |
||
| 25 | { |
||
| 26 | $webRoot = $this->mu()->getWebRootDirLocation(); |
||
| 27 | |||
| 28 | $this->mu()->execMe( |
||
| 29 | $webRoot, |
||
| 30 | 'composer require --dev --with-all-dependencies sunnysideup/huringa:dev-master --no-interaction', |
||
| 31 | 'installing huringa', |
||
| 32 | false |
||
| 33 | ); |
||
| 34 | |||
| 35 | $codeDirs = $this->mu()->findNameSpaceAndCodeDirs(); |
||
| 36 | $this->mu()->setBreakOnAllErrors(true); |
||
| 37 | foreach ($codeDirs as $codeDir) { |
||
| 38 | $this->mu()->execMe( |
||
| 39 | $webRoot, |
||
| 40 | 'vendor/bin/huringa ' . $codeDir, |
||
| 41 | 'fixing outdated code styles in ' . $codeDir, |
||
| 42 | false |
||
| 43 | ); |
||
| 44 | |||
| 45 | $this->setCommitMessage('API: fixing outdated code styles using sunnysideup/huringa in ' . $codeDir); |
||
| 46 | } |
||
| 47 | |||
| 48 | $this->mu()->execMe( |
||
| 49 | $webRoot, |
||
| 50 | 'composer remove sunnysideup/huringa:dev-master', |
||
| 51 | 'uninstalling huringa', |
||
| 52 | false |
||
| 53 | ); |
||
| 54 | |||
| 55 | $this->mu()->setBreakOnAllErrors(false); |
||
| 56 | return null; |
||
| 57 | } |
||
| 64 |