ci: 👷 lint code to MediaWiki standards

Check commit and GitHub actions for more details
This commit is contained in:
github-actions 2023-04-05 17:51:09 +00:00
parent fe4f4a91d2
commit 350041c5f7

View file

@ -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 );