| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Lines | 10 |
| Ratio | 100 % |
| Tests | 0 |
| CRAP Score | 6 |
| Changes | 0 | ||
| 1 | <?php |
||
| 47 | View Code Duplication | public function disable() { |
|
| 48 | if ( ! $this->is_enabled() ) { |
||
| 49 | return false; |
||
| 50 | } |
||
| 51 | $this->enabled = false; |
||
| 52 | |||
| 53 | $this->disabled(); |
||
| 54 | |||
| 55 | return true; |
||
| 56 | } |
||
| 57 | |||
| 62 | } |