@@ -44,8 +44,8 @@ discard block |
||
| 44 | 44 | foreach ($this->signals as $sig) { |
| 45 | 45 | $this->pcntl->signal( |
| 46 | 46 | $sig, |
| 47 | - function ($sig) { |
|
| 48 | - $this->log->info('received signal. signo: ' . $sig); |
|
| 47 | + function($sig) { |
|
| 48 | + $this->log->info('received signal. signo: '.$sig); |
|
| 49 | 49 | $this->log->info('--> sending a signal " to children.'); |
| 50 | 50 | $this->container->sendSignalToMaster($sig); |
| 51 | 51 | $this->log->info('<-- signal handling has been completed successfully.'); |
@@ -55,7 +55,7 @@ discard block |
||
| 55 | 55 | ); |
| 56 | 56 | } |
| 57 | 57 | |
| 58 | - $this->log->info('parent pid: ' . $this->config->get('ownerPid')); |
|
| 58 | + $this->log->info('parent pid: '.$this->config->get('ownerPid')); |
|
| 59 | 59 | } |
| 60 | 60 | |
| 61 | 61 | /** |
@@ -72,11 +72,11 @@ discard block |
||
| 72 | 72 | try { |
| 73 | 73 | $this->container->enqueue(new Task($callable, $args, $tag)); |
| 74 | 74 | } catch (\RuntimeException $e) { |
| 75 | - $this->log->error('failed to enqueue the task: ' . $e->getMessage()); |
|
| 75 | + $this->log->error('failed to enqueue the task: '.$e->getMessage()); |
|
| 76 | 76 | throw $e; |
| 77 | 77 | } |
| 78 | 78 | |
| 79 | - $this->log->info('queued task #' . $this->container->queuedCount()); |
|
| 79 | + $this->log->info('queued task #'.$this->container->queuedCount()); |
|
| 80 | 80 | } |
| 81 | 81 | |
| 82 | 82 | /** |
@@ -96,7 +96,7 @@ discard block |
||
| 96 | 96 | */ |
| 97 | 97 | public function results() |
| 98 | 98 | { |
| 99 | - foreach($this->container->results() as $r) { |
|
| 99 | + foreach ($this->container->results() as $r) { |
|
| 100 | 100 | yield $r; |
| 101 | 101 | } |
| 102 | 102 | } |