@@ -50,15 +50,15 @@ |
||
| 50 | 50 | } |
| 51 | 51 | $pid = getmypid(); |
| 52 | 52 | switch (true) { |
| 53 | - case $this->ownerPid === $pid: |
|
| 54 | - $role = 'owner'; |
|
| 55 | - break; |
|
| 56 | - case $this->masterPid === $pid: |
|
| 57 | - $role = 'master'; |
|
| 58 | - break; |
|
| 59 | - default: |
|
| 60 | - $role = 'worker'; |
|
| 61 | - break; |
|
| 53 | + case $this->ownerPid === $pid: |
|
| 54 | + $role = 'owner'; |
|
| 55 | + break; |
|
| 56 | + case $this->masterPid === $pid: |
|
| 57 | + $role = 'master'; |
|
| 58 | + break; |
|
| 59 | + default: |
|
| 60 | + $role = 'worker'; |
|
| 61 | + break; |
|
| 62 | 62 | } |
| 63 | 63 | fputs( |
| 64 | 64 | $this->destination, |
@@ -8,6 +8,7 @@ |
||
| 8 | 8 | { |
| 9 | 9 | /** |
| 10 | 10 | * @param \Ackintosh\Snidel\Fork |
| 11 | + * @param Fork $fork |
|
| 11 | 12 | * @throws \RuntimeException |
| 12 | 13 | */ |
| 13 | 14 | public function enqueue($fork) |
@@ -130,6 +130,7 @@ |
||
| 130 | 130 | /** |
| 131 | 131 | * |
| 132 | 132 | * @param \Ackintosh\Snidel\Result |
| 133 | + * @param Result $result |
|
| 133 | 134 | * @return void |
| 134 | 135 | */ |
| 135 | 136 | public function setResult($result) |
@@ -18,7 +18,6 @@ discard block |
||
| 18 | 18 | /** |
| 19 | 19 | * @param callable $callable |
| 20 | 20 | * @param array $args |
| 21 | - * @param string $string |
|
| 22 | 21 | */ |
| 23 | 22 | public function __construct($callable, $args, $tag) |
| 24 | 23 | { |
@@ -44,7 +43,7 @@ discard block |
||
| 44 | 43 | } |
| 45 | 44 | |
| 46 | 45 | /** |
| 47 | - * @return string|null |
|
| 46 | + * @return string |
|
| 48 | 47 | */ |
| 49 | 48 | public function getTag() |
| 50 | 49 | { |