| Conditions | 2 |
| Paths | 2 |
| Total Lines | 13 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 6 |
| Changes | 0 | ||
| 1 | <?php |
||
| 38 | public function decrypt() : bool |
||
| 39 | { |
||
| 40 | if (!$this->_secured) { |
||
| 41 | return true; |
||
| 42 | } |
||
| 43 | |||
| 44 | $result = true; |
||
| 45 | $result &= stream_set_blocking($this->stream, 1); |
||
| 46 | $result &= stream_socket_enable_crypto($this->stream, false); |
||
| 47 | $result &= stream_set_blocking($this->stream, 0); |
||
| 48 | |||
| 49 | return !($this->_secured = !$result); |
||
| 50 | } |
||
| 51 | } |
||
| 52 |