| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 3 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 19 | public function findLastRunForCronJob(CronJob $job) |
||
| 20 | { |
||
| 21 | return $this->createQueryBuilder('cjr') |
||
| 22 | ->select('MAX(cjr.runAt)') |
||
| 23 | ->andWhere('cjr.job = :job') |
||
| 24 | ->andWhere('cjr.result = :success') |
||
| 25 | ->setParameter('job', $job) |
||
| 26 | ->setParameter('success', CronJobResult::SUCCEEDED) |
||
| 27 | ->getQuery() |
||
| 28 | ->getSingleScalarResult(); |
||
| 29 | } |
||
| 30 | } |
||
| 31 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.