Completed
Pull Request — develop (#3)
by jean-marie
01:57
created
Manager/Cron.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -138,7 +138,7 @@  discard block
 block discarded – undo
138 138
             $logSize = filesize($logFile);
139 139
         }
140 140
         if (isset($errorFile) && file_exists($errorFile)) {
141
-            $lastRunTime = max($lastRunTime ? : 0, filemtime($errorFile));
141
+            $lastRunTime = max($lastRunTime ?: 0, filemtime($errorFile));
142 142
             $errorSize = filesize($errorFile);
143 143
         }
144 144
 
@@ -476,15 +476,15 @@  discard block
 block discarded – undo
476 476
             $cronLine .= '#suspended: ';
477 477
         }
478 478
 
479
-        $cronLine .= $this->getExpression() . ' ' . $this->command;
479
+        $cronLine .= $this->getExpression().' '.$this->command;
480 480
         if ('' != $this->logFile) {
481
-            $cronLine .= ' > ' . $this->logFile;
481
+            $cronLine .= ' > '.$this->logFile;
482 482
         }
483 483
         if ('' != $this->errorFile) {
484
-            $cronLine .= ' 2> ' . $this->errorFile;
484
+            $cronLine .= ' 2> '.$this->errorFile;
485 485
         }
486 486
         if ('' != $this->comment) {
487
-            $cronLine .= ' #' . $this->comment;
487
+            $cronLine .= ' #'.$this->comment;
488 488
         }
489 489
         return $cronLine;
490 490
     }
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
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
         // parsing cron file
35 35
         $process = new Process('crontab -l');
36 36
         $process->run();
37
-        $lines = array_filter(explode(PHP_EOL, $process->getOutput()), function ($line) {
37
+        $lines = array_filter(explode(PHP_EOL, $process->getOutput()), function($line) {
38 38
             return '' != trim($line);
39 39
         });
40 40
 
@@ -44,10 +44,10 @@  discard block
 block discarded – undo
44 44
                 try {
45 45
                     $line = Cron::parse($line);
46 46
                 } catch (\Exception $e) {
47
-                    $process->addErrorOutput('CronManager was unable to parse crontab at line ' . $lineNumber);
47
+                    $process->addErrorOutput('CronManager was unable to parse crontab at line '.$lineNumber);
48 48
                 }
49 49
             }
50
-            $this->lines['l' . $lineNumber] = $line;
50
+            $this->lines['l'.$lineNumber] = $line;
51 51
         }
52 52
 
53 53
         $this->error = $process->getErrorOutput();
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
      */
61 61
     public function get()
62 62
     {
63
-        return array_filter($this->lines, function ($line) {
63
+        return array_filter($this->lines, function($line) {
64 64
             return $line instanceof Cron;
65 65
         });
66 66
     }
@@ -96,9 +96,9 @@  discard block
 block discarded – undo
96 96
     {
97 97
         $file = tempnam(sys_get_temp_dir(), 'cron');
98 98
 
99
-        file_put_contents($file, $this->getRaw() . PHP_EOL);
99
+        file_put_contents($file, $this->getRaw().PHP_EOL);
100 100
 
101
-        $process = new Process('crontab ' . $file);
101
+        $process = new Process('crontab '.$file);
102 102
         $process->run();
103 103
 
104 104
         $this->error = $process->getErrorOutput();
Please login to merge, or discard this patch.
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.