@@ -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 | } |
@@ -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; |
@@ -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(); |
@@ -37,7 +37,7 @@ |
||
| 37 | 37 | ]; |
| 38 | 38 | } |
| 39 | 39 | $this->logDir = $logDir; |
| 40 | - $this->symfonyCommand = 'php ' . $kernelDir . '/console'; |
|
| 40 | + $this->symfonyCommand = 'php '.$kernelDir.'/console'; |
|
| 41 | 41 | } |
| 42 | 42 | |
| 43 | 43 | /** |