@@ -36,7 +36,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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(); |