Completed
Pull Request — master (#41)
by guillaume
03:05
created
Command/ProcessDynamicChannelCommand.php 3 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -170,7 +170,7 @@
 block discarded – undo
170 170
      * @param array $fieldGroupIdentifierList
171 171
      * @param int $maxConcurrentJobsCount
172 172
      *
173
-     * @return bool
173
+     * @return integer
174 174
      */
175 175
     private function calculateAvailableSlotsCount($lockNames, $fieldGroupIdentifierList, $maxConcurrentJobsCount)
176 176
     {
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,6 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -186,7 +186,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
Notifier/Mailer.php 3 patches
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,6 @@
 block discarded – undo
38 38
 
39 39
     /**
40 40
      * @param \Swift_Mailer       $mailer
41
-     * @param TranslatorInterface $translator
42 41
      * @param EngineInterface     $templating
43 42
      * @param string              $from
44 43
      * @param string              $to
Please login to merge, or discard this patch.
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -51,11 +51,11 @@
 block discarded – undo
51 51
         $to,
52 52
         $subject
53 53
     ){
54
-     $this->mailer = $mailer;
55
-     $this->templating = $templating;
56
-     $this->from = $from;
57
-     $this->to = $to;
58
-     $this->subject = $subject;
54
+        $this->mailer = $mailer;
55
+        $this->templating = $templating;
56
+        $this->from = $from;
57
+        $this->to = $to;
58
+        $this->subject = $subject;
59 59
     }
60 60
 
61 61
     /**
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
Command/LoggerStateChannelCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -110,7 +110,7 @@
 block discarded – undo
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
                 }
Please login to merge, or discard this patch.