@@ -27,17 +27,17 @@ discard block |
||
| 27 | 27 | public function execute() { |
| 28 | 28 | $parser = $this->getParser(); |
| 29 | 29 | |
| 30 | - $apiRequestProcessor = new \SFS\ApiSemanticFormsSelectRequestProcessor( $parser ); |
|
| 31 | - $apiRequestProcessor->setDebugFlag( $GLOBALS['wgSF_Select_debug'] ); |
|
| 30 | + $apiRequestProcessor = new \SFS\ApiSemanticFormsSelectRequestProcessor($parser); |
|
| 31 | + $apiRequestProcessor->setDebugFlag($GLOBALS['wgSF_Select_debug']); |
|
| 32 | 32 | |
| 33 | 33 | $resultValues = $apiRequestProcessor->getJsonDecodedResultValuesForRequestParameters( |
| 34 | 34 | $this->extractRequestParams() |
| 35 | 35 | ); |
| 36 | 36 | |
| 37 | 37 | $result = $this->getResult(); |
| 38 | - $result->setIndexedTagName( $resultValues->values, 'value' ); |
|
| 39 | - $result->addValue( $this->getModuleName(), 'values', $resultValues->values ); |
|
| 40 | - $result->addValue( $this->getModuleName(), 'count', $resultValues->count ); |
|
| 38 | + $result->setIndexedTagName($resultValues->values, 'value'); |
|
| 39 | + $result->addValue($this->getModuleName(), 'values', $resultValues->values); |
|
| 40 | + $result->addValue($this->getModuleName(), 'count', $resultValues->count); |
|
| 41 | 41 | |
| 42 | 42 | return true; |
| 43 | 43 | } |
@@ -85,7 +85,7 @@ discard block |
||
| 85 | 85 | * @see ApiBase::getVersion |
| 86 | 86 | */ |
| 87 | 87 | public function getVersion() { |
| 88 | - return __CLASS__ . ': 1.1'; |
|
| 88 | + return __CLASS__.': 1.1'; |
|
| 89 | 89 | } |
| 90 | 90 | |
| 91 | 91 | /** |
@@ -93,8 +93,8 @@ discard block |
||
| 93 | 93 | */ |
| 94 | 94 | protected function getParser(): Parser { |
| 95 | 95 | $parser = MediaWikiServices::getInstance()->getParserFactory()->create(); |
| 96 | - $parser->setTitle( Title::newFromText( 'NO TITLE' ) ); |
|
| 97 | - $parser->setOptions( new ParserOptions( $this->getUser() ) ); |
|
| 96 | + $parser->setTitle(Title::newFromText('NO TITLE')); |
|
| 97 | + $parser->setOptions(new ParserOptions($this->getUser())); |
|
| 98 | 98 | $parser->resetOutput(); |
| 99 | 99 | |
| 100 | 100 | return $parser; |