| Conditions | 3 |
| Paths | 2 |
| Total Lines | 15 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 23 | public static function run() { |
||
| 24 | $app = new Application(); |
||
| 25 | |||
| 26 | $container = $app->getContainer(); |
||
| 27 | |||
| 28 | // make it possible to turn off cron updates if you use an external |
||
| 29 | // script to execute updates in parallel |
||
| 30 | $useCronUpdates = $container->query(Config::class)->getUseCronUpdates(); |
||
| 31 | $isProperlyConfigured = $container->query(StatusService::class)->isProperlyConfigured(); |
||
|
|
|||
| 32 | if ($useCronUpdates && $isProperlyConfigured) { |
||
| 33 | $container->query(UpdaterService::class)->update(); |
||
| 34 | $container->query(UpdaterService::class)->beforeUpdate(); |
||
| 35 | $container->query(UpdaterService::class)->afterUpdate(); |
||
| 36 | } |
||
| 37 | } |
||
| 38 | |||
| 40 |
Overly long lines are hard to read on any screen. Most code styles therefor impose a maximum limit on the number of characters in a line.