mirror of
https://github.com/StarCitizenTools/mediawiki-skins-Citizen.git
synced 2024-11-28 00:01:05 +00:00
ci: lint code to MediaWiki standards
Check commit and GitHub actions for more details
This commit is contained in:
parent
73f28c33dd
commit
446faaf7f4
|
@ -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 [
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
4911
package-lock.json
generated
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue