ci: lint code to MediaWiki standards

Check commit and GitHub actions for more details
This commit is contained in:
github-actions 2021-07-30 02:49:01 +00:00
parent 73f28c33dd
commit 446faaf7f4
4 changed files with 20 additions and 4899 deletions

View file

@ -106,7 +106,7 @@ final class Header extends Partial {
* @return array
* @throws MWException
*/
public function buildSearchProps() : array {
public function buildSearchProps(): array {
$toggleMsg = $this->skin->msg( 'citizen-search-toggle' )->text();
return [

View file

@ -42,7 +42,7 @@ final class Logos extends Partial {
*
* @return array
*/
public function getLogoData() : array {
public function getLogoData(): array {
$logoData = ResourceLoaderSkinModule::getAvailableLogos( $this->skin->getConfig() );
// check if the logo supports variants

View file

@ -63,7 +63,7 @@ class SkinCitizen extends SkinMustache {
* @return array Returns an array of data used by Citizen skin.
* @throws MWException
*/
public function getTemplateData() : array {
public function getTemplateData(): array {
$out = $this->getOutput();
$title = $out->getTitle();
@ -182,7 +182,7 @@ class SkinCitizen extends SkinMustache {
string $label,
array $urls = [],
array $options = []
) : array {
): array {
$skin = $this->getSkin();
// For some menu items, there is no language key corresponding with its menu key.

4911
package-lock.json generated

File diff suppressed because it is too large Load diff