| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 1 |
| Changes | 2 | ||
| Bugs | 0 | Features | 2 |
| 1 | <?php |
||
| 9 | 6 | class TaskRepository extends EntityRepository implements TaskRepositoryInterface |
|
| 10 | { |
||
| 11 | 6 | /** |
|
| 12 | 6 | * {@inheritdoc} |
|
| 13 | 6 | */ |
|
| 14 | 6 | public function findEndBefore(\DateTime $dateTime) |
|
| 15 | 6 | { |
|
| 16 | 6 | return $this->createQueryBuilder('t') |
|
| 17 | ->where('t.lastExecution IS NOT NULL OR t.lastExecution > :dateTime') |
||
| 18 | 6 | ->setParameter('dateTime', $dateTime) |
|
| 19 | ->getQuery() |
||
| 20 | ->getResult(); |
||
| 40 |