r61418 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r61417‎ | r61418 | r61419 >
Date:15:25, 23 January 2010
Author:reedy
Status:ok
Tags:
Comment:
Stylise on ApiParse.php
Modified paths:
  • /trunk/phase3/includes/api/ApiParse.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/api/ApiParse.php
@@ -158,8 +158,8 @@
159159 $p_result->getDisplayTitle() :
160160 $titleObj->getPrefixedText();
161161
162 - if( isset( $prop['headitems'] ) )
163 - $result_array['headitems'] = $this->formatHeadItems( $p_result->getHeadItems() );
 162+ if ( isset( $prop['headitems'] ) )
 163+ $result_array['headitems'] = $this->formatHeadItems( $p_result->getHeadItems() );
164164
165165 if ( !is_null( $oldid ) )
166166 $result_array['revid'] = intval( $oldid );
@@ -219,7 +219,7 @@
220220
221221 private function formatHeadItems( $headItems ) {
222222 $result = array();
223 - foreach( $headItems as $tag => $content ) {
 223+ foreach ( $headItems as $tag => $content ) {
224224 $entry = array();
225225 $entry['tag'] = $tag;
226226 $this->getResult()->setContent( $entry, $content );

Status & tagging log