* @ingroup Maintenance
*/
-require_once( __DIR__ . '/Maintenance.php' );
+require_once __DIR__ . '/Maintenance.php';
/**
* Maintenance script that minifies a file or set of files.
$this->mDescription = "Minify a file or set of files.\n\n" .
"If --outfile is not specified, then the output file names will have a .min extension\n" .
"added, e.g. jquery.js -> jquery.min.js.";
-
}
public function execute() {
// Minify one file
$this->minify( $this->getArg( 0 ), $this->getOption( 'outfile' ) );
+
return;
}
$this->error( "No file extension, cannot determine type: $fileName" );
exit( 1 );
}
+
return substr( $fileName, $dotPos + 1 );
}
}
$maintClass = 'MinifyScript';
-require_once( RUN_MAINTENANCE_IF_MAIN );
+require_once RUN_MAINTENANCE_IF_MAIN;