From fa55935f7f01f5427696b4ac3f9f41d7ab877f18 Mon Sep 17 00:00:00 2001 From: umherirrender Date: Mon, 15 Apr 2013 21:38:16 +0200 Subject: [PATCH] Fixed spacing in skins folder Added spaces inside function calls Added spaces before if, foreach Replaced endif, endforeach with curly braces Added some braces for one line statements Change-Id: If934d5343ae28b1b54451754cb78358b213ea71c --- resources/Resources.php | 4 +- skins/CologneBlue.php | 8 +-- skins/Modern.php | 49 ++++++++-------- skins/MonoBook.php | 78 +++++++++++++------------ skins/Vector.php | 123 ++++++++++++++++++++-------------------- 5 files changed, 136 insertions(+), 126 deletions(-) diff --git a/resources/Resources.php b/resources/Resources.php index 7e1e3a3aa4..c96184e680 100644 --- a/resources/Resources.php +++ b/resources/Resources.php @@ -20,7 +20,7 @@ * @file */ -if( !defined( 'MEDIAWIKI' ) ) { +if ( !defined( 'MEDIAWIKI' ) ) { die( 'Not an entry point.' ); } @@ -902,7 +902,7 @@ return array( ), 'mediawiki.special.preferences' => array( 'scripts' => 'resources/mediawiki.special/mediawiki.special.preferences.js', - 'styles' => 'resources/mediawiki.special/mediawiki.special.preferences.css', + 'styles' => 'resources/mediawiki.special/mediawiki.special.preferences.css', ), 'mediawiki.special.recentchanges' => array( 'scripts' => 'resources/mediawiki.special/mediawiki.special.recentchanges.js', diff --git a/skins/CologneBlue.php b/skins/CologneBlue.php index c5f9389061..1669de78bb 100644 --- a/skins/CologneBlue.php +++ b/skins/CologneBlue.php @@ -22,7 +22,7 @@ * @ingroup Skins */ -if( !defined( 'MEDIAWIKI' ) ) { +if ( !defined( 'MEDIAWIKI' ) ) { die( -1 ); } @@ -533,16 +533,16 @@ class CologneBlueTemplate extends BaseTemplate { $search = $this->getSkin()->getRequest()->getText( 'search' ); $action = $this->data['searchaction']; $s = "
"; - if( $which == 'footer' ) { + if ( $which == 'footer' ) { $s .= wfMessage( 'qbfind' )->text() . ": "; } $s .= "" - . ($which == 'footer' ? " " : "
") + . ( $which == 'footer' ? " " : "
" ) . "escaped() . "\" />"; - if( $wgUseTwoButtonsSearchForm ) { + if ( $wgUseTwoButtonsSearchForm ) { $s .= " escaped() . "\" />\n"; } else { $s .= '
\n"; diff --git a/skins/Modern.php b/skins/Modern.php index 9dbefb11bd..917789514c 100644 --- a/skins/Modern.php +++ b/skins/Modern.php @@ -22,8 +22,9 @@ * @ingroup Skins */ -if( !defined( 'MEDIAWIKI' ) ) +if ( !defined( 'MEDIAWIKI' ) ) { die( -1 ); +} /** * Inherit main code from SkinTemplate, set the CSS and template filter. @@ -39,7 +40,7 @@ class SkinModern extends SkinTemplate { */ function setupSkinUserCss( OutputPage $out ) { parent::setupSkinUserCss( $out ); - $out->addModuleStyles ('skins.modern'); + $out->addModuleStyles( 'skins.modern' ); } } @@ -68,7 +69,7 @@ class ModernTemplate extends MonoBookTemplate {

html('title') ?>

+ ?>">html( 'title' ) ?>
@@ -82,30 +83,30 @@ class ModernTemplate extends MonoBookTemplate { for the margins -->
- -
msg('tagline') ?>
- data['newtalk'] ) { - ?>
html('newtalk') ?>
+ +
msg( 'tagline' ) ?>
+ data['newtalk'] ) { + ?>
html( 'newtalk' ) ?>
- data['sitenotice']) { - ?>
html('sitenotice') ?>
+ data['sitenotice'] ) { + ?>
html( 'sitenotice' ) ?>
-
html('userlangattributes') ?>>html('subtitle') ?>
+
html( 'userlangattributes' ) ?>>html( 'subtitle' ) ?>
- data['undelete']) { ?>
html('undelete') ?>
- data['showjumplinks']) { ?>
msg('jumpto') ?> msg('jumptonavigation') ?>msg( 'comma-separator' ) ?>msg('jumptosearch') ?>
+ data['undelete'] ) { ?>
html( 'undelete' ) ?>
+ data['showjumplinks'] ) { ?>
msg( 'jumpto' ) ?> msg( 'jumptonavigation' ) ?>msg( 'comma-separator' ) ?>msg( 'jumptosearch' ) ?>
- html('bodytext') ?> + html( 'bodytext' ) ?>
- data['catlinks']) { $this->html('catlinks'); } ?> - html ('dataAfterContent') ?> + data['catlinks'] ) { $this->html( 'catlinks' ); } ?> + html( 'dataAfterContent' ) ?>
-
html("userlangattributes") ?>> +
html( "userlangattributes" ) ?>>

msg( 'navigation-heading' ) ?>

@@ -120,11 +121,11 @@ class ModernTemplate extends MonoBookTemplate {