| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Lines | 10 |
| Ratio | 100 % |
| Tests | 0 |
| CRAP Score | 6 |
| Changes | 0 | ||
| 1 | <?php |
||
| 26 | View Code Duplication | public function enable() { |
|
| 27 | if ( $this->is_enabled() ) { |
||
| 28 | return false; |
||
| 29 | } |
||
| 30 | $this->enabled = true; |
||
| 31 | |||
| 32 | $this->enabled(); |
||
| 33 | |||
| 34 | return true; |
||
| 35 | } |
||
| 36 | |||
| 62 | } |