mirror of
https://github.com/StarCitizenTools/mediawiki-skins-Citizen.git
synced 2024-11-30 17:14:50 +00:00
ci: 👷 lint code to MediaWiki standards
Check commit and GitHub actions for more details
This commit is contained in:
parent
d4d71dc34a
commit
1827a1b5c9
|
@ -13,8 +13,7 @@ use MessageLocalizer;
|
|||
/**
|
||||
* CitizenComponentUserInfo component
|
||||
*/
|
||||
class CitizenComponentUserInfo implements CitizenComponent
|
||||
{
|
||||
class CitizenComponentUserInfo implements CitizenComponent {
|
||||
/** @var bool */
|
||||
private $isRegistered;
|
||||
|
||||
|
@ -62,8 +61,7 @@ class CitizenComponentUserInfo implements CitizenComponent
|
|||
*
|
||||
* @return array|null
|
||||
*/
|
||||
private function getUserEditCount(): ?array
|
||||
{
|
||||
private function getUserEditCount(): ?array {
|
||||
// Return user edits
|
||||
$edits = MediaWikiServices::getInstance()->getUserEditTracker()->getUserEditCount( $this->user );
|
||||
|
||||
|
@ -85,8 +83,7 @@ class CitizenComponentUserInfo implements CitizenComponent
|
|||
*
|
||||
* @return array|null
|
||||
*/
|
||||
private function getUserGroups(): ?array
|
||||
{
|
||||
private function getUserGroups(): ?array {
|
||||
$groups = MediaWikiServices::getInstance()->getUserGroupManager()->getUserGroups( $this->user );
|
||||
|
||||
if ( empty( $groups ) ) {
|
||||
|
@ -128,8 +125,7 @@ class CitizenComponentUserInfo implements CitizenComponent
|
|||
*
|
||||
* @return array
|
||||
*/
|
||||
private function getUserPage(): array
|
||||
{
|
||||
private function getUserPage(): array {
|
||||
$user = $this->user;
|
||||
$userPageData = $this->userPageData;
|
||||
|
||||
|
@ -162,8 +158,7 @@ class CitizenComponentUserInfo implements CitizenComponent
|
|||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function getTemplateData(): array
|
||||
{
|
||||
public function getTemplateData(): array {
|
||||
$localizer = $this->localizer;
|
||||
$data = [];
|
||||
|
||||
|
|
Loading…
Reference in a new issue