Completed
Branch develop (6aad12)
by Novikov
02:25
created
Controller/DashboardController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -183,7 +183,7 @@
 block discarded – undo
183 183
         $cron = $cronList[$id];
184 184
 
185 185
         $data = array();
186
-        $data['file'] =  ($type == 'log') ? $cron->getLogFile(): $cron->getErrorFile();
186
+        $data['file'] = ($type == 'log') ? $cron->getLogFile() : $cron->getErrorFile();
187 187
         $data['content'] = \file_get_contents($data['file']);
188 188
 
189 189
         $serializer = new Serializer(array(), array('json' => new JsonEncoder()));
Please login to merge, or discard this patch.
Manager/Cron.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -140,7 +140,7 @@
 block discarded – undo
140 140
             $logSize = \filesize($logFile);
141 141
         }
142 142
         if (isset($errorFile) && \file_exists($errorFile)) {
143
-            $lastRunTime = \max($lastRunTime ? : 0, \filemtime($errorFile));
143
+            $lastRunTime = \max($lastRunTime ?: 0, \filemtime($errorFile));
144 144
             $errorSize = \filesize($errorFile);
145 145
         }
146 146
 
Please login to merge, or discard this patch.
Manager/CronManager.php 1 patch
Spacing   +2 added lines, -2 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
 
@@ -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
     }
Please login to merge, or discard this patch.
Twig/TwigExtension.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
             );
32 32
         }
33 33
         $this->logDir = $logDir;
34
-        $this->symfonyCommand = 'php '.$kernelDir.'/console';
34
+        $this->symfonyCommand = 'php ' . $kernelDir . '/console';
35 35
     }
36 36
     
37 37
     public function getGlobals()
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -23,8 +23,7 @@
 block discarded – undo
23 23
     {
24 24
         if (function_exists('posix_getpwuid')) {
25 25
             $this->wwwUser = posix_getpwuid(posix_geteuid());
26
-        }
27
-        else {
26
+        } else {
28 27
             $this->wwwUser = array(
29 28
                 'name' => get_current_user(),
30 29
                 'dir'  => '-',
Please login to merge, or discard this patch.