mirror of
https://github.com/StarCitizenTools/mediawiki-skins-Citizen.git
synced 2024-11-24 14:34:09 +00:00
ci: 👷 lint code to MediaWiki standards
Check commit and GitHub actions for more details
This commit is contained in:
parent
fe4f4a91d2
commit
350041c5f7
|
@ -26,7 +26,6 @@ declare( strict_types=1 );
|
|||
namespace MediaWiki\Skins\Citizen\Partials;
|
||||
|
||||
use MediaWiki\MediaWikiServices;
|
||||
use Title;
|
||||
|
||||
/**
|
||||
* Title partial of Skin Citizen
|
||||
|
@ -52,7 +51,7 @@ final class PageTitle extends Partial {
|
|||
*
|
||||
* @return bool
|
||||
*/
|
||||
private function shouldAddParenthesis() : bool {
|
||||
private function shouldAddParenthesis(): bool {
|
||||
$ns = $this->title->getNamespace();
|
||||
$contentNs = MediaWikiServices::getInstance()->getNamespaceInfo()->getContentNamespaces();
|
||||
return in_array( $ns, $contentNs );
|
||||
|
|
Loading…
Reference in a new issue