Completed
Push — develop ( dac91a...dc8379 )
by Novikov
9s
created
DependencyInjection/FOACronExtension.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
14 14
      */
15 15
     public function load(array $configs, ContainerBuilder $container)
16 16
     {
17
-        $loader = new XmlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config'));
17
+        $loader = new XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
18 18
         $loader->load('services.xml');
19 19
     }
20 20
 }
Please login to merge, or discard this patch.
Twig/TwigExtension.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
30 30
             ];
31 31
         }
32 32
         $this->logDir = $logDir;
33
-        $this->symfonyCommand = 'php ' . $kernelDir . '/console';
33
+        $this->symfonyCommand = 'php '.$kernelDir.'/console';
34 34
     }
35 35
 
36 36
     public function getGlobals()
Please login to merge, or discard this patch.
Manager/Cron.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -517,15 +517,15 @@
 block discarded – undo
517 517
             $cronLine .= '#suspended: ';
518 518
         }
519 519
 
520
-        $cronLine .= $this->getExpression() . ' ' . $this->command;
520
+        $cronLine .= $this->getExpression().' '.$this->command;
521 521
         if ('' != $this->logFile) {
522
-            $cronLine .= ' > ' . $this->logFile;
522
+            $cronLine .= ' > '.$this->logFile;
523 523
         }
524 524
         if ('' != $this->errorFile) {
525
-            $cronLine .= ' 2> ' . $this->errorFile;
525
+            $cronLine .= ' 2> '.$this->errorFile;
526 526
         }
527 527
         if ('' != $this->comment) {
528
-            $cronLine .= ' #' . $this->comment;
528
+            $cronLine .= ' #'.$this->comment;
529 529
         }
530 530
 
531 531
         return $cronLine;
Please login to merge, or discard this patch.
Manager/CronManager.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
         // parsing cron file
37 37
         $process = new Process('crontab -l');
38 38
         $process->run();
39
-        $lines = array_filter(explode(PHP_EOL, $process->getOutput()), function ($line) {
39
+        $lines = array_filter(explode(PHP_EOL, $process->getOutput()), function($line) {
40 40
             return '' != trim($line);
41 41
         });
42 42
 
@@ -46,10 +46,10 @@  discard block
 block discarded – undo
46 46
                 try {
47 47
                     $line = Cron::parse($line);
48 48
                 } catch (\Exception $e) {
49
-                    $process->addErrorOutput('CronManager was unable to parse crontab at line ' . $lineNumber);
49
+                    $process->addErrorOutput('CronManager was unable to parse crontab at line '.$lineNumber);
50 50
                 }
51 51
             }
52
-            $this->lines['l' . $lineNumber] = $line;
52
+            $this->lines['l'.$lineNumber] = $line;
53 53
         }
54 54
 
55 55
         $this->error = $process->getErrorOutput();
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
      */
63 63
     public function getCrons()
64 64
     {
65
-        return array_filter($this->lines, function ($line) {
65
+        return array_filter($this->lines, function($line) {
66 66
             return $line instanceof Cron;
67 67
         });
68 68
     }
@@ -115,9 +115,9 @@  discard block
 block discarded – undo
115 115
     {
116 116
         $file = tempnam(sys_get_temp_dir(), 'cron');
117 117
 
118
-        file_put_contents($file, $this->getRaw() . PHP_EOL);
118
+        file_put_contents($file, $this->getRaw().PHP_EOL);
119 119
 
120
-        $process = new Process('crontab ' . $file);
120
+        $process = new Process('crontab '.$file);
121 121
         $process->run();
122 122
 
123 123
         $this->error = $process->getErrorOutput();
Please login to merge, or discard this patch.