Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
44 | 2 | private function updateJobIndex($jobNames) |
|
45 | { |
||
46 | /** @var JobIndexServiceInterface $jobIndexService */ |
||
47 | 2 | $jobIndexService = $this->getContainer()->get(JobIndexServiceInterface::DIC_NAME); |
|
48 | |||
49 | 2 | if (JobUtils::isWildcard($jobNames)) { |
|
50 | 1 | $jobIndexService->resetJobIndex(); |
|
51 | } else { |
||
52 | 1 | $jobIndexService->removeJobs($jobNames); |
|
53 | } |
||
54 | 2 | } |
|
55 | } |
||
56 |