| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 26 | protected function shutdownScanner() { |
||
| 27 | @\fwrite($this->getWriteHandle(), \pack('N', 0)); |
||
|
|
|||
| 28 | $response = \fgets($this->getWriteHandle()); |
||
| 29 | $this->logger->debug( |
||
| 30 | 'Response :: ' . $response, |
||
| 31 | ['app' => 'files_antivirus'] |
||
| 32 | ); |
||
| 33 | @\fclose($this->getWriteHandle()); |
||
| 34 | |||
| 35 | $this->status->parseResponse($response); |
||
| 36 | } |
||
| 37 | |||
| 50 |
If you suppress an error, we recommend checking for the error condition explicitly: