@@ -15,15 +15,15 @@ discard block |
||
| 15 | 15 | * @defgroup SemanticCompoundQueries SemanticCompoundQueries |
| 16 | 16 | */ |
| 17 | 17 | |
| 18 | -if ( !defined( 'MEDIAWIKI' ) ) die(); |
|
| 18 | +if (!defined('MEDIAWIKI')) die(); |
|
| 19 | 19 | |
| 20 | -define( 'SCQ_VERSION', '1.0.1' ); |
|
| 20 | +define('SCQ_VERSION', '1.0.1'); |
|
| 21 | 21 | |
| 22 | 22 | $GLOBALS['wgExtensionCredits']['semantic'][] = array( |
| 23 | 23 | 'path' => __FILE__, |
| 24 | 24 | 'name' => 'Semantic Compound Queries', |
| 25 | 25 | 'version' => SCQ_VERSION, |
| 26 | - 'author' => array( 'Yaron Koren' ), |
|
| 26 | + 'author' => array('Yaron Koren'), |
|
| 27 | 27 | 'url' => 'https://www.mediawiki.org/wiki/Extension:Semantic_Compound_Queries', |
| 28 | 28 | 'descriptionmsg' => 'semanticcompoundqueries-desc', |
| 29 | 29 | 'license-name' => 'GPL-2.0+' |
@@ -40,7 +40,7 @@ discard block |
||
| 40 | 40 | |
| 41 | 41 | $GLOBALS['wgAPIModules']['compoundquery'] = '\SCQCompoundQueryApi'; |
| 42 | 42 | |
| 43 | -function scqgRegisterParser( Parser &$parser ) { |
|
| 44 | - $parser->setFunctionHook( 'compound_query', array( 'SCQQueryProcessor', 'doCompoundQuery' ) ); |
|
| 43 | +function scqgRegisterParser(Parser&$parser) { |
|
| 44 | + $parser->setFunctionHook('compound_query', array('SCQQueryProcessor', 'doCompoundQuery')); |
|
| 45 | 45 | return true; // always return true, in order not to stop MW's hook processing! |
| 46 | 46 | } |