fix(continuous-integration): correction php-cs-fixer
All checks were successful
Cadoles/nineskeletor/pipeline/pr-master This commit looks good
All checks were successful
Cadoles/nineskeletor/pipeline/pr-master This commit looks good
This commit is contained in:
@ -30,7 +30,7 @@ class CronRepository extends ServiceEntityRepository
|
||||
$this->getEntityManager()->flush();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public function toExec()
|
||||
{
|
||||
// Les commandes à executer
|
||||
@ -38,13 +38,12 @@ class CronRepository extends ServiceEntityRepository
|
||||
// = statut = 2 (OK) et derniere execution + interval > now et nombre d'appel = 0
|
||||
// = statut = 3 (KO) et derniere execution + interval > now et nombre d'appel = 0
|
||||
// = statut = 3 (KO) et nombre d'execution < nombre d'appel
|
||||
|
||||
|
||||
$now=new \DateTime();
|
||||
$now = new \DateTime();
|
||||
|
||||
$qb = $this->createQueryBuilder('cron')
|
||||
->Where('(cron.statut=0 OR cron.statut=1) AND cron.nextexecdate<:now');
|
||||
|
||||
return $qb->getQuery()->setParameter('now',$now->format("Y-m-d H:i:s"))->getResult();
|
||||
return $qb->getQuery()->setParameter('now', $now->format('Y-m-d H:i:s'))->getResult();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user