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