From d5a9ba3c7aeed2b238e29eff1741d996b5dce578 Mon Sep 17 00:00:00 2001 From: Aryeh Gregor Date: Thu, 26 Jun 2008 20:26:56 +0000 Subject: [PATCH] Consistent whitespace --- includes/Title.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/includes/Title.php b/includes/Title.php index 459a7aead1..8cbbbd153d 100644 --- a/includes/Title.php +++ b/includes/Title.php @@ -2878,13 +2878,13 @@ class Title { ." AND cl_from <> '0'" ." ORDER BY cl_sortkey"; - $res = $dbr->query ( $sql ) ; + $res = $dbr->query( $sql ); - if($dbr->numRows($res) > 0) { - while ( $x = $dbr->fetchObject ( $res ) ) + if( $dbr->numRows( $res ) > 0 ) { + while( $x = $dbr->fetchObject( $res ) ) //$data[] = Title::newFromText($wgContLang->getNSText ( NS_CATEGORY ).':'.$x->cl_to); - $data[$wgContLang->getNSText ( NS_CATEGORY ).':'.$x->cl_to] = $this->getFullText(); - $dbr->freeResult ( $res ) ; + $data[$wgContLang->getNSText( NS_CATEGORY ).':'.$x->cl_to] = $this->getFullText(); + $dbr->freeResult( $res ); } else { $data = array(); } @@ -2901,7 +2901,7 @@ class Title { $parents = $this->getParentCategories(); if( $parents ) { - foreach($parents as $parent => $current) { + foreach( $parents as $parent => $current ) { if ( array_key_exists( $parent, $children ) ) { # Circular reference $stack[$parent] = array(); -- 2.20.1