@@ -3,7 +3,6 @@ |
||
| 3 | 3 | namespace Itkg\DelayEventBundle\Command; |
| 4 | 4 | |
| 5 | 5 | use Itkg\DelayEventBundle\Handler\LockHandlerInterface; |
| 6 | -use Itkg\DelayEventBundle\Model\Event; |
|
| 7 | 6 | use Itkg\DelayEventBundle\Model\Lock; |
| 8 | 7 | use Itkg\DelayEventBundle\Processor\EventProcessor; |
| 9 | 8 | use Itkg\DelayEventBundle\Repository\EventRepository; |
@@ -186,7 +186,7 @@ |
||
| 186 | 186 | */ |
| 187 | 187 | private function calculateAvailableSlotsCount($lockNames, $fieldGroupIdentifierList, $maxConcurrentJobsCount) |
| 188 | 188 | { |
| 189 | - $concurrentJobsCount = count(array_intersect($fieldGroupIdentifierList , $lockNames)); |
|
| 189 | + $concurrentJobsCount = count(array_intersect($fieldGroupIdentifierList, $lockNames)); |
|
| 190 | 190 | |
| 191 | 191 | return $maxConcurrentJobsCount - $concurrentJobsCount; |
| 192 | 192 | } |
@@ -110,7 +110,7 @@ |
||
| 110 | 110 | } |
| 111 | 111 | |
| 112 | 112 | $dateWithMaxTime = $lock->getLockedAt(); |
| 113 | - $dateWithMaxTime->add(new DateInterval('PT' . $this->timeLimit . 'S')); |
|
| 113 | + $dateWithMaxTime->add(new DateInterval('PT'.$this->timeLimit.'S')); |
|
| 114 | 114 | if (new \DateTime() > ($dateWithMaxTime)) { |
| 115 | 115 | $this->notifier->process($this->channelName); |
| 116 | 116 | } |
@@ -50,7 +50,7 @@ |
||
| 50 | 50 | $from, |
| 51 | 51 | $to, |
| 52 | 52 | $subject |
| 53 | - ){ |
|
| 53 | + ) { |
|
| 54 | 54 | $this->mailer = $mailer; |
| 55 | 55 | $this->templating = $templating; |
| 56 | 56 | $this->from = $from; |