| Conditions | 2 |
| Paths | 2 |
| Total Lines | 3 |
| Code Lines | 2 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 3 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 52 | 12 | public function __destruct() { |
|
| 53 | 12 | if ( is_resource( $this->stream ) ) { |
|
| 54 | 11 | @fclose( $this->stream ); |
|
|
1 ignored issue
–
show
|
|||
| 55 | } |
||
| 58 | } |
If you suppress an error, we recommend checking for the error condition explicitly: