Conditions | 4 |
Paths | 1 |
Total Lines | 15 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
33 | protected function doExecute() |
||
34 | { |
||
35 | $onlyprojectname = $this->input->getArgument('project'); |
||
36 | /** @var AnacronSkeleton $theSkeleton */ |
||
37 | $theSkeleton = $this->skeletonProvider->findSkeleton(AnacronSkeleton::NAME); |
||
38 | $this->fileSystemProvider->projectsLoop(function ($project) use ($onlyprojectname, $theSkeleton) { |
||
39 | if (isset($onlyprojectname) && $project["name"] != $onlyprojectname) { |
||
40 | return; |
||
41 | } |
||
42 | if ($this->skeletonProvider->hasSkeleton($project, $theSkeleton)) { |
||
43 | $this->dialogProvider->logStep("Running cron on project " . $project["name"]); |
||
44 | $theSkeleton->maintenance($project); |
||
45 | } |
||
46 | }); |
||
47 | } |
||
48 | } |
||
49 |