Make makeStaticLoader.php pass phpcs

Change-Id: Ibdf95ca3c3047d497b05cbe195f8b839f111f12e
This commit is contained in:
Roan Kattouw 2013-10-11 16:40:36 +02:00 committed by Timo Tijhof
parent 391057bcec
commit 7d9247040c

View file

@ -73,11 +73,11 @@ class MakeStaticLoader extends Maintenance {
// Path to /modules/
$vePath = $this->getOption( 've-path',
$target === 'demo'
$target === 'demo' ?
// From /demos/ve/index.php
? '../../modules'
'../../modules' :
// From /modules/ve/test/index.html
: '../..'
'../..'
);
$wgResourceModules['Dependencies'] = array(
@ -141,7 +141,7 @@ class MakeStaticLoader extends Maintenance {
've/init/sa/ve.init.sa.Target.js',
) );
$self = isset( $_SERVER['PHP_SELF'] ) ? $_SERVER['PHP_SELF'] : ( lcfirst( __CLASS__ ) . '.php' );
$self = isset( $_SERVER['PHP_SELF'] ) ? $_SERVER['PHP_SELF'] : ( lcfirst( __CLASS__ ) . '.php' );
$head = $body = '';