| Conditions | 3 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 14 | public function enqueue($result) |
||
| 15 | { |
||
| 16 | if ( |
||
| 17 | $this->isExceedsLimit($serialized = ResultFormatter::serialize($result)) |
||
| 18 | && $this->isExceedsLimit($serialized = ResultFormatter::minifyAndSerialize($result)) |
||
| 19 | ) { |
||
| 20 | throw new \RuntimeException('the fork which includes result exceeds the message queue limit.'); |
||
| 21 | } |
||
| 22 | |||
| 23 | return $this->sendMessage($serialized); |
||
| 24 | } |
||
| 25 | |||
| 42 |