X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=maintenance%2FcommandLine.inc;h=8232d529470aa2a238181287dc903231c0b164ba;hp=206e04677b4a46cab494cb3d42d2caeb565e8b5e;hb=74426f3cf796b149f1ae445e41815bbe148640b2;hpb=cd69b253b13c66eb5f61c27200f22ee7eac4cde0 diff --git a/maintenance/commandLine.inc b/maintenance/commandLine.inc index 206e04677b..8232d52947 100644 --- a/maintenance/commandLine.inc +++ b/maintenance/commandLine.inc @@ -23,10 +23,9 @@ require_once __DIR__ . '/Maintenance.php'; -// @codingStandardsIgnoreStart MediaWiki.NamingConventions.ValidGlobalName.wgPrefix -global $optionsWithArgs; -global $optionsWithoutArgs; -// @codingStandardsIgnoreEnd +// phpcs:ignore MediaWiki.NamingConventions.ValidGlobalName.wgPrefix +global $optionsWithArgs, $optionsWithoutArgs; + if ( !isset( $optionsWithArgs ) ) { $optionsWithArgs = []; } @@ -36,9 +35,9 @@ if ( !isset( $optionsWithoutArgs ) ) { class CommandLineInc extends Maintenance { public function __construct() { - // @codingStandardsIgnoreStart MediaWiki.NamingConventions.ValidGlobalName.wgPrefix + // phpcs:ignore MediaWiki.NamingConventions.ValidGlobalName.wgPrefix global $optionsWithArgs, $optionsWithoutArgs; - // @codingStandardsIgnoreEnd + parent::__construct(); foreach ( $optionsWithArgs as $name ) { $this->addOption( $name, '', false, true ); @@ -60,13 +59,13 @@ class CommandLineInc extends Maintenance { } public function execute() { - // @codingStandardsIgnoreStart MediaWiki.NamingConventions.ValidGlobalName.wgPrefix + // phpcs:ignore MediaWiki.NamingConventions.ValidGlobalName.wgPrefix global $args, $options; - // @codingStandardsIgnoreEnd + $args = $this->mArgs; $options = $this->mOptions; } } -$maintClass = 'CommandLineInc'; +$maintClass = CommandLineInc::class; require RUN_MAINTENANCE_IF_MAIN;