Completed
Pull Request — master (#40)
by Wachter
05:27
created
tests/app/TestKernel.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@
 block discarded – undo
49 49
     protected function buildContainer()
50 50
     {
51 51
         $container = parent::buildContainer();
52
-        $loader = new XmlFileLoader($container, new FileLocator(__DIR__ . '/config'));
52
+        $loader = new XmlFileLoader($container, new FileLocator(__DIR__.'/config'));
53 53
         $loader->load('services.xml');
54 54
 
55 55
         $container->setParameter('kernel.storage', $this->storage);
Please login to merge, or discard this patch.
src/Command/DebugTasksCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@
 block discarded – undo
57 57
                     $execution->getHandlerClass(),
58 58
                     $execution->getScheduleTime()->format(\DateTime::RFC3339),
59 59
                     !$execution->getEndTime() ? '' : $execution->getEndTime()->format(\DateTime::RFC3339),
60
-                    (round($execution->getDuration(), 6) * 1000000) . 'ms',
60
+                    (round($execution->getDuration(), 6) * 1000000).'ms',
61 61
                 ]
62 62
             );
63 63
         }
Please login to merge, or discard this patch.
src/DependencyInjection/TaskExtension.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -97,7 +97,7 @@
 block discarded – undo
97 97
      *
98 98
      * @param ContainerBuilder $container
99 99
      *
100
-     * @return array
100
+     * @return \string[]
101 101
      */
102 102
     private function getLockingStorageAliases(ContainerBuilder $container)
103 103
     {
Please login to merge, or discard this patch.
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -39,10 +39,10 @@  discard block
 block discarded – undo
39 39
 
40 40
         $container->setAlias('task.lock.storage', $configuration->getLockingStorageId($config['locking']['storage']));
41 41
         foreach (array_keys($config['locking']['storages']) as $key) {
42
-            $container->setParameter('task.lock.storages.' . $key, $config['locking']['storages'][$key]);
42
+            $container->setParameter('task.lock.storages.'.$key, $config['locking']['storages'][$key]);
43 43
         }
44 44
 
45
-        $loader = new Loader\XmlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config'));
45
+        $loader = new Loader\XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
46 46
         $loader->load(sprintf('storage/%s.xml', $config['storage']));
47 47
         $loader->load('task_event_listener.xml');
48 48
         $loader->load('scheduler.xml');
@@ -105,15 +105,15 @@  discard block
 block discarded – undo
105 105
      */
106 106
     private function loadExecutorComponent(array $config, ContainerBuilder $container, LoaderInterface $loader)
107 107
     {
108
-        $loader->load('executor/' . $config['type'] . '.xml');
109
-        $container->setAlias('task.executor', 'task.executor.' . $config['type']);
108
+        $loader->load('executor/'.$config['type'].'.xml');
109
+        $container->setAlias('task.executor', 'task.executor.'.$config['type']);
110 110
 
111 111
         if (!array_key_exists($config['type'], $config)) {
112 112
             return;
113 113
         }
114 114
 
115 115
         foreach ($config[$config['type']] as $key => $value) {
116
-            $container->setParameter('task.executor.' . $key, $value);
116
+            $container->setParameter('task.executor.'.$key, $value);
117 117
         }
118 118
     }
119 119
 
@@ -143,7 +143,7 @@  discard block
 block discarded – undo
143 143
      */
144 144
     public function getConfiguration(array $config, ContainerBuilder $container)
145 145
     {
146
-        $loader = new Loader\XmlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config'));
146
+        $loader = new Loader\XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
147 147
         $loader->load('locking/storages.xml');
148 148
 
149 149
         return new Configuration($this->getLockingStorageAliases($container));
Please login to merge, or discard this patch.
tests/Unit/Command/ScheduleSystemTasksCommandTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -161,7 +161,7 @@  discard block
 block discarded – undo
161 161
             $task->reveal()->getInterval(),
162 162
             $task->reveal()->getFirstExecution(),
163 163
             Argument::that(
164
-                function ($date) {
164
+                function($date) {
165 165
                     return $date <= new \DateTime('+1 Minute');
166 166
                 }
167 167
             )
@@ -270,7 +270,7 @@  discard block
 block discarded – undo
270 270
             $task->reveal()->getInterval(),
271 271
             $task->reveal()->getFirstExecution(),
272 272
             Argument::that(
273
-                function ($date) {
273
+                function($date) {
274 274
                     return $date <= new \DateTime('+1 Minute');
275 275
                 }
276 276
             )
Please login to merge, or discard this patch.
src/Executor/ProcessExecutor.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@
 block discarded – undo
47 47
     public function execute(TaskExecutionInterface $execution)
48 48
     {
49 49
         $process = ProcessBuilder::create(
50
-            [$this->consoleFile, 'task:execute', $execution->getUuid(), '-e ' . $this->environment]
50
+            [$this->consoleFile, 'task:execute', $execution->getUuid(), '-e '.$this->environment]
51 51
         )->getProcess();
52 52
 
53 53
         $process->run();
Please login to merge, or discard this patch.