From: Sam Reed Date: Sat, 23 Jan 2010 15:25:14 +0000 (+0000) Subject: Stylise on ApiParse.php X-Git-Tag: 1.31.0-rc.0~38141 X-Git-Url: http://git.cyclocoop.org/%24image?a=commitdiff_plain;h=db41a76708202ca059e8279e5e502e4736098d7f;p=lhc%2Fweb%2Fwiklou.git Stylise on ApiParse.php --- diff --git a/includes/api/ApiParse.php b/includes/api/ApiParse.php index ede03a477b..ae0593547c 100644 --- a/includes/api/ApiParse.php +++ b/includes/api/ApiParse.php @@ -158,8 +158,8 @@ class ApiParse extends ApiBase { $p_result->getDisplayTitle() : $titleObj->getPrefixedText(); - if( isset( $prop['headitems'] ) ) - $result_array['headitems'] = $this->formatHeadItems( $p_result->getHeadItems() ); + if ( isset( $prop['headitems'] ) ) + $result_array['headitems'] = $this->formatHeadItems( $p_result->getHeadItems() ); if ( !is_null( $oldid ) ) $result_array['revid'] = intval( $oldid ); @@ -219,7 +219,7 @@ class ApiParse extends ApiBase { private function formatHeadItems( $headItems ) { $result = array(); - foreach( $headItems as $tag => $content ) { + foreach ( $headItems as $tag => $content ) { $entry = array(); $entry['tag'] = $tag; $this->getResult()->setContent( $entry, $content );