Remove phpcs exclude rules and update PHP code
Change-Id: Ie37deda368a4d163cf324988721033829ae8af77
This commit is contained in:
@@ -28,6 +28,9 @@ use Wikimedia\ParamValidator\ParamValidator;
|
||||
* @ingroup API
|
||||
*/
|
||||
class ApiLanguageSearch extends ApiBase {
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function execute() {
|
||||
$params = $this->extractRequestParams();
|
||||
$search = $params['search'];
|
||||
@@ -37,6 +40,9 @@ class ApiLanguageSearch extends ApiBase {
|
||||
$result->addValue( null, $this->getModuleName(), $searches );
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function getAllowedParams() {
|
||||
return [
|
||||
'search' => [
|
||||
|
||||
Reference in New Issue
Block a user