@@ -183,7 +183,7 @@ |
||
| 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())); |
@@ -140,7 +140,7 @@ |
||
| 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 | |
@@ -34,7 +34,7 @@ discard block |
||
| 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 |
||
| 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 | } |
@@ -31,7 +31,7 @@ |
||
| 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() |
@@ -23,8 +23,7 @@ |
||
| 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' => '-', |