r99992 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r99991‎ | r99992 | r99993 >
Date:22:25, 16 October 2011
Author:krinkle
Status:ok
Tags:
Comment:
[RL2] clean up, break long lines
Modified paths:
  • /branches/RL2/extensions/Gadgets/backend/Gadget.php (modified) (history)

Diff [purge]

Index: branches/RL2/extensions/Gadgets/backend/Gadget.php
@@ -87,7 +87,12 @@
8888 // Do the actual validation of this property
8989 $func = $validation[0];
9090 if ( !$func( $val ) ) {
91 - return Status::newFatal( 'gadgets-validate-wrongtype', $property, $validation[1], gettype( $val ) );
 91+ return Status::newFatal(
 92+ 'gadgets-validate-wrongtype',
 93+ $property,
 94+ $validation[1],
 95+ gettype( $val )
 96+ );
9297 }
9398
9499 if ( isset( $validation[2] ) ) {
@@ -95,7 +100,12 @@
96101 $func = $validation[2];
97102 foreach ( $val as $i => $v ) {
98103 if ( !$func( $v ) ){
99 - return Status::newFatal( 'gadgets-validate-wrongtype', "{$property}[{$i}]", $validation[3], gettype( $v ) );
 104+ return Status::newFatal(
 105+ 'gadgets-validate-wrongtype',
 106+ "{$property}[{$i}]",
 107+ $validation[3],
 108+ gettype( $v )
 109+ );
100110 }
101111 }
102112 }

Status & tagging log