Conditions | 2 |
Paths | 2 |
Total Lines | 15 |
Code Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Changes | 3 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
13 | public function findByStartTime(TaskInterface $task, \DateTime $scheduleTime) |
||
14 | { |
||
15 | try { |
||
16 | return $this->createQueryBuilder('e') |
||
17 | ->innerJoin('e.task', 't') |
||
18 | ->where('t.uuid = :uuid') |
||
19 | ->andWhere('e.scheduleTime = :scheduleTime') |
||
20 | ->setParameter('uuid', $task->getUuid()) |
||
21 | ->setParameter('scheduleTime', $scheduleTime) |
||
22 | ->getQuery() |
||
23 | ->getSingleResult(); |
||
24 | } catch (NoResultException $e) { |
||
25 | return; |
||
26 | } |
||
27 | } |
||
28 | |||
55 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.