r57049 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r57048‎ | r57049 | r57050 >
Date:10:43, 29 September 2009
Author:siebrand
Status:deferred
Tags:
Comment:
Update indentation
Modified paths:
  • /trunk/extensions/Translate/utils/TranslateYaml.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Translate/utils/TranslateYaml.php
@@ -4,13 +4,13 @@
55 public static function loadString( $text ) {
66 global $wgTranslateYamlLibrary;
77 switch ($wgTranslateYamlLibrary) {
8 - case 'spyc':
9 - require_once( dirname(__FILE__).'/../spyc/spyc.php' );
10 - return spyc_load( $text );
11 - case 'syck':
12 - return self::syckLoad( $text );
13 - default:
14 - throw new MWException( "Unknown Yaml library" );
 8+ case 'spyc':
 9+ require_once( dirname(__FILE__).'/../spyc/spyc.php' );
 10+ return spyc_load( $text );
 11+ case 'syck':
 12+ return self::syckLoad( $text );
 13+ default:
 14+ throw new MWException( "Unknown Yaml library" );
1515 }
1616 }
1717
@@ -22,13 +22,13 @@
2323 public static function dump( $text ) {
2424 global $wgTranslateYamlLibrary;
2525 switch ($wgTranslateYamlLibrary) {
26 - case 'spyc':
27 - require_once( dirname(__FILE__).'/../spyc/spyc.php' );
28 - return Spyc::YAMLDump( $text );
29 - case 'syck':
30 - return self::syckDump( $text );
31 - default:
32 - throw new MWException( "Unknown Yaml library" );
 26+ case 'spyc':
 27+ require_once( dirname(__FILE__).'/../spyc/spyc.php' );
 28+ return Spyc::YAMLDump( $text );
 29+ case 'syck':
 30+ return self::syckDump( $text );
 31+ default:
 32+ throw new MWException( "Unknown Yaml library" );
3333 }
3434 }
3535
@@ -105,4 +105,4 @@
106106 }
107107
108108 // BC
109 -class TranslateSpyc extends TranslateYaml {}
\ No newline at end of file
 109+class TranslateSpyc extends TranslateYaml {}

Status & tagging log