From 322bbc96be8afd97be289a4bcdbe05e3f79c62fc Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 5 Dec 2023 19:30:36 +0000 Subject: [PATCH 1/2] Update mediawiki/mediawiki-codesniffer requirement from 41.0.0 to 42.0.0 Updates the requirements on [mediawiki/mediawiki-codesniffer](https://github.com/wikimedia/mediawiki-tools-codesniffer) to permit the latest version. - [Changelog](https://github.com/wikimedia/mediawiki-tools-codesniffer/blob/master/HISTORY.md) - [Commits](https://github.com/wikimedia/mediawiki-tools-codesniffer/compare/v41.0.0...v42.0.0) --- updated-dependencies: - dependency-name: mediawiki/mediawiki-codesniffer dependency-type: direct:development ... Signed-off-by: dependabot[bot] --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index c688090..448ce29 100644 --- a/composer.json +++ b/composer.json @@ -3,7 +3,7 @@ "description": "", "license": "GPL-3.0-or-later", "require-dev": { - "mediawiki/mediawiki-codesniffer": "41.0.0", + "mediawiki/mediawiki-codesniffer": "42.0.0", "mediawiki/mediawiki-phan-config": "0.12.1", "mediawiki/minus-x": "1.1.1", "php-parallel-lint/php-console-highlighter": "1.0.0", From 637b45e73920b075f7f24e5ec764c79212f3ac36 Mon Sep 17 00:00:00 2001 From: github-actions Date: Tue, 5 Dec 2023 20:04:42 +0000 Subject: [PATCH 2/2] CI: lint code to MediaWiki standards Check commit and GitHub actions for more details --- maintenance/createUsers.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/maintenance/createUsers.php b/maintenance/createUsers.php index 019dd41..547b2c0 100644 --- a/maintenance/createUsers.php +++ b/maintenance/createUsers.php @@ -82,14 +82,14 @@ private function createUser( $name ) { $user = new User; $userActor = $user->createNew( $name ); if ( $userActor ) { - $this->output( "Created local {$userActor->getName()} on wiki {$wgDBname}\n" ); + $this->output( "Created local {$userActor->getName()} on wiki {$wgDBname}\n" ); } $cau = new CentralAuthUser( $name, 0 ); $create = $cau->promoteToGlobal( $wgDBname ); if ( $create->isGood() ) { - $this->output( "Created global {$userActor->getName()}\n" ); + $this->output( "Created global {$userActor->getName()}\n" ); } if ( $this->getOption( 'no-run' ) ) {