Completed
Pull Request — master (#41)
by Pascal
03:35 queued 01:00
created
Model/Event.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -121,6 +121,6 @@
 block discarded – undo
121 121
      */
122 122
     public function increaseTryCount()
123 123
     {
124
-        $this->tryCount ++;
124
+        $this->tryCount++;
125 125
     }
126 126
 }
Please login to merge, or discard this patch.
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   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -126,7 +126,7 @@  discard block
 block discarded – undo
126 126
         /** @var Lock $lock */
127 127
         foreach ($locks as $lock) {
128 128
             if ($lock->isCommandLocked()) {
129
-                $lockNames[] = str_replace(sprintf('%s_', $channel), '', $lock->getChannel())   ;
129
+                $lockNames[] = str_replace(sprintf('%s_', $channel), '', $lock->getChannel());
130 130
             }
131 131
         }
132 132
 
@@ -174,7 +174,7 @@  discard block
 block discarded – undo
174 174
      */
175 175
     private function calculateAvailableSlotsCount($lockNames, $fieldGroupIdentifierList, $maxConcurrentJobsCount)
176 176
     {
177
-        $concurrentJobsCount = count(array_intersect($fieldGroupIdentifierList  , $lockNames));
177
+        $concurrentJobsCount = count(array_intersect($fieldGroupIdentifierList, $lockNames));
178 178
 
179 179
         return $maxConcurrentJobsCount - $concurrentJobsCount;
180 180
     }
Please login to merge, or discard this patch.