Conditions | 1 |
Paths | 1 |
Total Lines | 7 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
19 | public function performSpecialActions(Client $client, WritableContentInterface $originalRequest): bool |
||
20 | { |
||
21 | $successFullyClosed = stream_socket_shutdown($client->socket, STREAM_SHUT_RDWR); |
||
22 | $information['successfullyClosed'] = $successFullyClosed; |
||
|
|||
23 | $this->logger->info('Sent shutdown signal to socket', $information); |
||
24 | $client->setConnected(false); |
||
25 | return true; |
||
26 | } |
||
28 |