Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
0.00% |
0 / 3 |
|
0.00% |
0 / 2 |
CRAP | |
0.00% |
0 / 1 |
| ext | |
0.00% |
0 / 3 |
|
0.00% |
0 / 2 |
6 | |
0.00% |
0 / 1 |
| is_enableable | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| enable_step | |
0.00% |
0 / 2 |
|
0.00% |
0 / 1 |
2 | |||
| 1 | <?php |
| 2 | |
| 3 | namespace vendor5\foo; |
| 4 | |
| 5 | class ext extends \phpbb\extension\base |
| 6 | { |
| 7 | static public $enabled; |
| 8 | |
| 9 | public function is_enableable() |
| 10 | { |
| 11 | return array('Reason 1', 'Reason 2'); |
| 12 | } |
| 13 | |
| 14 | public function enable_step($old_state) |
| 15 | { |
| 16 | self::$enabled = true; |
| 17 | return self::$enabled; |
| 18 | } |
| 19 | } |