| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 1 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 27 | 2 | public static function zombieSocketDetected(SocketInterface $socket) |
|
| 28 | { |
||
| 29 | 2 | return new self( |
|
| 30 | 2 | $socket, |
|
| 31 | 2 | sprintf( |
|
| 32 | 'System has detected a zombie connection %s and closed it. '. |
||
| 33 | 2 | 'If you see this message it means that application ' . |
|
| 34 | 2 | 'has lost control on one of its sockets.', |
|
| 35 | (string) $socket |
||
| 36 | 2 | ) |
|
| 37 | 2 | ); |
|
| 38 | } |
||
| 39 | } |
||
| 40 |