fix(continuous-integration): correction php-cs-fixer
All checks were successful
Cadoles/nineskeletor/pipeline/pr-master This commit looks good

This commit is contained in:
2022-09-23 16:14:15 +02:00
parent 5f3cc51f5c
commit b78f54b76c
70 changed files with 5943 additions and 5549 deletions

View File

@ -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();
}
}