Merge "Remove two unused constants from EditPage.php"
[lhc/web/wiklou.git] / maintenance / commandLine.inc
index 86a558d..0d3e643 100644 (file)
  * @ingroup Maintenance
  */
 
-require_once( __DIR__ . '/Maintenance.php' );
+require_once __DIR__ . '/Maintenance.php';
 
+// @codingStandardsIgnoreStart MediaWiki.NamingConventions.ValidGlobalName.wgPrefix
 global $optionsWithArgs;
+// @codingStandardsIgnoreEnd
 if ( !isset( $optionsWithArgs ) ) {
        $optionsWithArgs = array();
 }
 
 class CommandLineInc extends Maintenance {
        public function __construct() {
+               // @codingStandardsIgnoreStart MediaWiki.NamingConventions.ValidGlobalName.wgPrefix
                global $optionsWithArgs;
+               // @codingStandardsIgnoreEnd
                parent::__construct();
                foreach ( $optionsWithArgs as $name ) {
                        $this->addOption( $name, '', false, true );
@@ -48,12 +52,14 @@ class CommandLineInc extends Maintenance {
        }
 
        public function execute() {
+               // @codingStandardsIgnoreStart MediaWiki.NamingConventions.ValidGlobalName.wgPrefix
                global $args, $options;
+               // @codingStandardsIgnoreEnd
                $args = $this->mArgs;
                $options = $this->mOptions;
        }
 }
 
 $maintClass = 'CommandLineInc';
-require( RUN_MAINTENANCE_IF_MAIN );
+require RUN_MAINTENANCE_IF_MAIN;