@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | $this->coordinator = new Coordinator($this->config, $this->log); |
39 | 39 | $this->coordinator->forkMaster(); |
40 | 40 | $this->registerSignalHandler($this->coordinator, $this->log); |
41 | - $this->log->info('parent pid: ' . $this->config->get('ownerPid')); |
|
41 | + $this->log->info('parent pid: '.$this->config->get('ownerPid')); |
|
42 | 42 | } |
43 | 43 | |
44 | 44 | /** |
@@ -51,11 +51,11 @@ discard block |
||
51 | 51 | try { |
52 | 52 | $this->coordinator->enqueue(new Task($callable, $args, $tag)); |
53 | 53 | } catch (\RuntimeException $e) { |
54 | - $this->log->error('failed to enqueue the task: ' . $e->getMessage()); |
|
54 | + $this->log->error('failed to enqueue the task: '.$e->getMessage()); |
|
55 | 55 | throw $e; |
56 | 56 | } |
57 | 57 | |
58 | - $this->log->info('queued task #' . $this->coordinator->queuedCount()); |
|
58 | + $this->log->info('queued task #'.$this->coordinator->queuedCount()); |
|
59 | 59 | } |
60 | 60 | |
61 | 61 | /** |
@@ -71,7 +71,7 @@ discard block |
||
71 | 71 | */ |
72 | 72 | public function results(): \Generator |
73 | 73 | { |
74 | - foreach($this->coordinator->results() as $r) { |
|
74 | + foreach ($this->coordinator->results() as $r) { |
|
75 | 75 | pcntl_signal_dispatch(); |
76 | 76 | yield $r; |
77 | 77 | } |
@@ -97,8 +97,8 @@ discard block |
||
97 | 97 | foreach ($this->signals as $sig) { |
98 | 98 | $pcntl->signal( |
99 | 99 | $sig, |
100 | - function ($sig) use ($log, $coordinator) { |
|
101 | - $log->info('received signal. signo: ' . $sig); |
|
100 | + function($sig) use ($log, $coordinator) { |
|
101 | + $log->info('received signal. signo: '.$sig); |
|
102 | 102 | $log->info('--> sending a signal " to children.'); |
103 | 103 | $coordinator->sendSignalToMaster($sig); |
104 | 104 | $log->info('<-- signal handling has been completed successfully.'); |