Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 10 |
CRAP Score | 1 |
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 | 2 | 'Response :: ' . $response, |
|
22 | 2 | ['app' => 'files_antivirus'] |
|
23 | 2 | ); |
|
24 | 2 | @fclose($this->getWriteHandle()); |
|
25 | |||
26 | 2 | $this->status->parseResponse($response); |
|
27 | 2 | } |
|
28 | |||
39 |
If you suppress an error, we recommend checking for the error condition explicitly: