Fix phpcs errors

Configuration for phpcs was changed to now require spacing
of ternary to be at the end of the previous line.

Change-Id: I8a358053a9ccf4ec83bfd8db1383fce12d9d9f2f
This commit is contained in:
Timo Tijhof 2013-09-04 15:47:35 -07:00
parent a729731fb9
commit 1f5705aa23

View file

@ -55,6 +55,7 @@ class TemplateDataBlob {
'params',
'sets',
);
static $paramKeys = array(
'label',
'required',
@ -65,6 +66,7 @@ class TemplateDataBlob {
'inherits',
'type',
);
static $types = array(
'unknown',
'string',
@ -249,9 +251,9 @@ class TemplateDataBlob {
return Status::newFatal( 'templatedata-invalid-unknown', $key );
}
if ( !isset( $unnormalizedParams->$paramName->$key ) ) {
$paramObj->$key = is_object( $parentParamObj->$key )
? clone $parentParamObj->$key
: $parentParamObj->$key;
$paramObj->$key = is_object( $parentParamObj->$key ) ?
clone $parentParamObj->$key :
$parentParamObj->$key;
}
}
unset( $paramObj->inherits );
@ -406,9 +408,9 @@ class TemplateDataBlob {
$html .= '<tr>'
// Label
. Html::element( 'th', array(),
isset( $paramObj->label->$langCode )
? $paramObj->label->$langCode
: ucfirst( $paramName )
isset( $paramObj->label->$langCode ) ?
$paramObj->label->$langCode :
ucfirst( $paramName )
)
// Parameters and aliases
. Html::rawElement( 'td', array( 'class' => 'mw-templatedata-doc-param-name' ),
@ -422,9 +424,9 @@ class TemplateDataBlob {
)
)
),
isset( $paramObj->description->$langCode )
? $paramObj->description->$langCode
: 'no description'
isset( $paramObj->description->$langCode ) ?
$paramObj->description->$langCode :
'no description'
)
// Type
. Html::rawElement( 'td', array(