Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 1.0109 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
17 | 2 | protected function shutdownScanner(){ |
|
18 | 2 | @fwrite($this->getWriteHandle(), pack('N', 0)); |
|
|
|||
19 | 2 | $response = fgets($this->getWriteHandle()); |
|
20 | 2 | $this->logger->debug( |
|
21 | 'Response :: ' . $response, |
||
22 | 2 | ['app' => 'files_antivirus'] |
|
23 | 2 | ); |
|
24 | @fclose($this->getWriteHandle()); |
||
25 | 2 | ||
26 | $this->status->parseResponse($response); |
||
27 | } |
||
28 | |||
39 |
If you suppress an error, we recommend checking for the error condition explicitly: