ci: 👷 lint code to MediaWiki standards

Check commit and GitHub actions for more details
This commit is contained in:
github-actions 2024-11-04 23:26:40 +00:00
parent 37e563bff0
commit 7b9522b395

View file

@ -44,7 +44,6 @@ class ApiWebappManifest extends ApiBase {
* Constructor
*/
public function __construct() {
}
/**
@ -155,7 +154,7 @@ class ApiWebappManifest extends ApiBase {
private function getShortcuts(): array {
$specialPages = [ 'Search', 'Randompage', 'RecentChanges' ];
return array_map( function( $specialPage ) {
return array_map( static function ( $specialPage ) {
$title = SpecialPage::getSafeTitleFor( $specialPage );
return [
'name' => $title->getBaseText(),