Merge "Make variant selection menu toggleable by keyboard"
[lhc/web/wiklou.git] / maintenance / commandLine.inc
index db0c560..be07142 100644 (file)
@@ -21,7 +21,7 @@
  * @ingroup Maintenance
  */
 
-require( dirname( __FILE__ ) . '/Maintenance.php' );
+require_once __DIR__ . '/Maintenance.php';
 
 global $optionsWithArgs;
 if ( !isset( $optionsWithArgs ) ) {
@@ -41,8 +41,9 @@ class CommandLineInc extends Maintenance {
         * No help, it would just be misleading since it misses custom options
         */
        protected function maybeHelp( $force = false ) {
-               if ( !$force )
+               if ( !$force ) {
                        return;
+               }
                parent::maybeHelp( true );
        }
 
@@ -54,5 +55,5 @@ class CommandLineInc extends Maintenance {
 }
 
 $maintClass = 'CommandLineInc';
-require( RUN_MAINTENANCE_IF_MAIN );
+require RUN_MAINTENANCE_IF_MAIN;