Completed
Pull Request — master (#42)
by guillaume
03:43
created
Event/ProcessedEvents.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,5 +11,5 @@
 block discarded – undo
11 11
 
12 12
     const FAIL = 'processed.event.fail';
13 13
 
14
-    const FINISH  = 'processed.event.finish';
14
+    const FINISH = 'processed.event.finish';
15 15
 }
Please login to merge, or discard this patch.
DependencyInjection/ItkgDelayEventExtension.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
         $configuration = new Configuration();
23 23
         $config = $this->processConfiguration($configuration, $configs);
24 24
 
25
-        $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config'));
25
+        $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
26 26
         $loader->load('services.yml');
27 27
 
28 28
         $this->loadEventNames($container, $config);
Please login to merge, or discard this patch.
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   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -57,12 +57,12 @@
 block discarded – undo
57 57
         $subject,
58 58
         $template
59 59
     ){
60
-     $this->mailer = $mailer;
61
-     $this->templating = $templating;
62
-     $this->from = $from;
63
-     $this->to = $to;
64
-     $this->subject = $subject;
65
-     $this->template = $template;
60
+        $this->mailer = $mailer;
61
+        $this->templating = $templating;
62
+        $this->from = $from;
63
+        $this->to = $to;
64
+        $this->subject = $subject;
65
+        $this->template = $template;
66 66
     }
67 67
 
68 68
     /**
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@
 block discarded – undo
56 56
         $to,
57 57
         $subject,
58 58
         $template
59
-    ){
59
+    ) {
60 60
      $this->mailer = $mailer;
61 61
      $this->templating = $templating;
62 62
      $this->from = $from;
Please login to merge, or discard this patch.
Model/Event.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -127,7 +127,7 @@
 block discarded – undo
127 127
      */
128 128
     public function increaseTryCount()
129 129
     {
130
-        $this->tryCount ++;
130
+        $this->tryCount++;
131 131
     }
132 132
 
133 133
     /**
Please login to merge, or discard this patch.
Command/LoggerStateChannelCommand.php 2 patches
Unused Use Statements   -3 removed lines patch added patch discarded remove patch
@@ -4,15 +4,12 @@
 block discarded – undo
4 4
 
5 5
 use DateInterval;
6 6
 use Itkg\DelayEventBundle\Document\Lock;
7
-use Itkg\DelayEventBundle\Handler\LockHandlerInterface;
8 7
 use Itkg\DelayEventBundle\Notifier\NotifierInterface;
9
-use Itkg\DelayEventBundle\Repository\EventRepository;
10 8
 use Itkg\DelayEventBundle\Repository\LockRepository;
11 9
 use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand;
12 10
 use Symfony\Component\Console\Input\InputArgument;
13 11
 use Symfony\Component\Console\Input\InputInterface;
14 12
 use Symfony\Component\Console\Output\OutputInterface;
15
-use Symfony\Component\Filesystem\LockHandler;
16 13
 
17 14
 /**
18 15
  * Class LoggerStateChannelCommand
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -113,7 +113,7 @@
 block discarded – undo
113 113
 
114 114
                         $time = $channel['duration_limit_per_run'] + $this->extraTime;
115 115
                         $dateWithMaxTime->add(
116
-                            new DateInterval('PT' . $time . 'S')
116
+                            new DateInterval('PT'.$time.'S')
117 117
                         );
118 118
                         if (new \DateTime() > ($dateWithMaxTime)) {
119 119
                             $this->notifier->process($key);
Please login to merge, or discard this patch.