ci: 👷 lint code to MediaWiki standards

Check commit and GitHub actions for more details
This commit is contained in:
github-actions 2024-05-15 06:44:12 +00:00
parent d4d71dc34a
commit 1827a1b5c9

View file

@ -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 = [];