Conditions | 3 |
Paths | 3 |
Total Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
19 | public static function onSemanticFormsSelectSetup ( & $parser ) { |
||
20 | |||
21 | if ( !defined( 'PF_VERSION' ) ) { |
||
22 | die( '<b>Error:</b><a href="https://github.com/SemanticMediaWiki/SemanticFormsSelect/">Semantic Forms Select</a> requires the <a href="https://www.mediawiki.org/wiki/Extension:PageForms">Page Forms</a> extension. Please install and activate this extension first.' ); |
||
23 | } |
||
24 | |||
25 | if ( isset( $GLOBALS['wgPageFormsFormPrinter'] ) ) { |
||
26 | $GLOBALS['wgPageFormsFormPrinter']->registerInputType( \SFS\SemanticFormsSelectInput::class ); |
||
27 | } |
||
28 | |||
29 | return true; |
||
30 | } |
||
31 | |||
39 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.