@@ -81,7 +81,7 @@ discard block |
||
| 81 | 81 | foreach ($this->signals as $sig) { |
| 82 | 82 | $this->pcntl->signal( |
| 83 | 83 | $sig, |
| 84 | - function ($sig) { |
|
| 84 | + function($sig) { |
|
| 85 | 85 | $this->log->info('received signal. signo: ' . $sig); |
| 86 | 86 | $this->receivedSignal = $sig; |
| 87 | 87 | |
@@ -151,7 +151,7 @@ discard block |
||
| 151 | 151 | } |
| 152 | 152 | |
| 153 | 153 | $result = new Result(); |
| 154 | - register_shutdown_function(function () use ($result) { |
|
| 154 | + register_shutdown_function(function() use ($result) { |
|
| 155 | 155 | $data = $this->dataRepository->load(getmypid()); |
| 156 | 156 | try { |
| 157 | 157 | $data->write($result); |
@@ -85,7 +85,7 @@ |
||
| 85 | 85 | private function getCollectionWithTag($tag) |
| 86 | 86 | { |
| 87 | 87 | return new ForkCollection( |
| 88 | - array_filter($this->forks, function ($fork) use ($tag) { |
|
| 88 | + array_filter($this->forks, function($fork) use ($tag) { |
|
| 89 | 89 | return $this->tagsToPids[$fork->getPid()] === $tag; |
| 90 | 90 | }) |
| 91 | 91 | ); |
@@ -20,7 +20,7 @@ |
||
| 20 | 20 | public function toArray() |
| 21 | 21 | { |
| 22 | 22 | return array_map( |
| 23 | - function ($fork) { |
|
| 23 | + function($fork) { |
|
| 24 | 24 | return $fork->getResult()->getReturn(); |
| 25 | 25 | }, |
| 26 | 26 | $this->forks |