@@ -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 | |
@@ -44,10 +44,10 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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(); |
@@ -14,7 +14,7 @@ |
||
| 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 | } |
@@ -30,7 +30,7 @@ |
||
| 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() |
@@ -517,15 +517,15 @@ |
||
| 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; |