@@ -70,8 +70,8 @@ discard block |
||
70 | 70 | foreach ($this->signals as $sig) { |
71 | 71 | $this->pcntl->signal( |
72 | 72 | $sig, |
73 | - function ($sig) use($log, $self) { |
|
74 | - $log->info('received signal. signo: ' . $sig); |
|
73 | + function($sig) use($log, $self) { |
|
74 | + $log->info('received signal. signo: '.$sig); |
|
75 | 75 | $self->setReceivedSignal($sig); |
76 | 76 | |
77 | 77 | $log->info('--> sending a signal to children.'); |
@@ -83,7 +83,7 @@ discard block |
||
83 | 83 | ); |
84 | 84 | } |
85 | 85 | |
86 | - $this->log->info('parent pid: ' . $this->ownerPid); |
|
86 | + $this->log->info('parent pid: '.$this->ownerPid); |
|
87 | 87 | } |
88 | 88 | |
89 | 89 | /** |
@@ -119,7 +119,7 @@ discard block |
||
119 | 119 | throw $e; |
120 | 120 | } |
121 | 121 | |
122 | - $this->log->info('queued task #' . $this->forkContainer->queuedCount()); |
|
122 | + $this->log->info('queued task #'.$this->forkContainer->queuedCount()); |
|
123 | 123 | } |
124 | 124 | |
125 | 125 | /** |
@@ -148,7 +148,7 @@ discard block |
||
148 | 148 | |
149 | 149 | if (getmypid() === $this->ownerPid) { |
150 | 150 | // parent |
151 | - $this->log->info('created child process. pid: ' . $fork->getPid()); |
|
151 | + $this->log->info('created child process. pid: '.$fork->getPid()); |
|
152 | 152 | } else { |
153 | 153 | // @codeCoverageIgnoreStart |
154 | 154 | // child |
@@ -161,7 +161,7 @@ discard block |
||
161 | 161 | */ |
162 | 162 | $dataRepository = $this->dataRepository; |
163 | 163 | $log = $this->log; |
164 | - register_shutdown_function(function () use ($fork, $dataRepository, $log, $token) { |
|
164 | + register_shutdown_function(function() use ($fork, $dataRepository, $log, $token) { |
|
165 | 165 | $data = $dataRepository->load(getmypid()); |
166 | 166 | try { |
167 | 167 | $data->write($fork); |
@@ -226,7 +226,7 @@ discard block |
||
226 | 226 | $this->wait(); |
227 | 227 | } |
228 | 228 | if (!$this->forkContainer->hasTag($tag)) { |
229 | - throw new \InvalidArgumentException('unknown tag: ' . $tag); |
|
229 | + throw new \InvalidArgumentException('unknown tag: '.$tag); |
|
230 | 230 | } |
231 | 231 | |
232 | 232 | return $this->forkContainer->getCollection($tag); |
@@ -241,7 +241,7 @@ discard block |
||
241 | 241 | public function sendSignalToChildren($sig) |
242 | 242 | { |
243 | 243 | foreach ($this->forkContainer->getChildPids() as $pid) { |
244 | - $this->log->info('----> sending a signal to child. pid: ' . $pid); |
|
244 | + $this->log->info('----> sending a signal to child. pid: '.$pid); |
|
245 | 245 | posix_kill($pid, $sig); |
246 | 246 | } |
247 | 247 | } |
@@ -344,7 +344,7 @@ discard block |
||
344 | 344 | |
345 | 345 | $childPid = $fork->getPid(); |
346 | 346 | if ($fork->hasNotFinishedSuccessfully()) { |
347 | - $message = 'an error has occurred in child process. pid: ' . $childPid; |
|
347 | + $message = 'an error has occurred in child process. pid: '.$childPid; |
|
348 | 348 | $this->log->error($message); |
349 | 349 | throw new \RuntimeException($message); |
350 | 350 | } |