| Conditions | 3 |
| Paths | 3 |
| Total Lines | 9 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | public function __invoke() |
||
| 14 | { |
||
| 15 | foreach ($this->tunnelServer->getPublicConnections() as $key => $publicConnection) { |
||
| 16 | if ($publicConnection->getWaitingDuration() > 120) { |
||
| 17 | $this->tunnelServer->closePublicConnection($publicConnection, 'Waiting for more than 60 seconds without responding'); |
||
| 18 | $this->tunnelServer->getPublicConnections()->remove($key); |
||
| 19 | } |
||
| 20 | } |
||
| 21 | } |
||
| 22 | |||
| 30 | } |