| Conditions | 3 |
| Paths | 3 |
| Total Lines | 10 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 12 |
| Changes | 0 | ||
| 1 | <?php |
||
| 24 | public function __construct(Wiki &$wikiclass = null) |
||
|
|
|||
| 25 | { |
||
| 26 | |||
| 27 | $extensions = $wikiClass->get_extensions(); |
||
| 28 | if( !array_key_exists( 'CheckUser', $extensions ) ) { |
||
| 29 | throw new DependencyError( "CheckUser", "http://www.mediawiki.org/wiki/Extension:CheckUser" ); |
||
| 30 | } elseif( $extensions['CheckUser'] < 3 ) { |
||
| 31 | throw new DependencyError( "CheckUser version 3.0 or up", "http://www.mediawiki.org/wiki/Extension:CheckUser" ); |
||
| 32 | } |
||
| 33 | } |
||
| 34 | } |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.