From 505149550405af739e670a2f51fed14b8921364a Mon Sep 17 00:00:00 2001 From: Antoine Musso Date: Thu, 12 Apr 2007 19:38:25 +0000 Subject: [PATCH] clean up white space, comments end at 80 --- includes/Categoryfinder.php | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/includes/Categoryfinder.php b/includes/Categoryfinder.php index fd75d77a31..7a9d4277d0 100644 --- a/includes/Categoryfinder.php +++ b/includes/Categoryfinder.php @@ -1,15 +1,16 @@ seed ( * array ( 12345 ) , @@ -18,8 +19,8 @@ * ) ; * $a = $cf->run() ; * print implode ( "," , $a ) ; - * - * + * + * */ class Categoryfinder { @@ -90,13 +91,13 @@ class Categoryfinder { function check ( $id , &$conds ) { # Shortcut (runtime paranoia): No contitions=all matched if ( count ( $conds ) == 0 ) return true ; - + if ( !isset ( $this->parents[$id] ) ) return false ; # iterate through the parents foreach ( $this->parents[$id] AS $p ) { $pname = $p->cl_to ; - + # Is this a condition? if ( isset ( $conds[$pname] ) ) { # This key is in the category list! @@ -113,7 +114,7 @@ class Categoryfinder { } } } - + # Not done yet, try sub-parents if ( !isset ( $this->name2id[$pname] ) ) { # No sub-parent @@ -133,7 +134,7 @@ class Categoryfinder { */ function scan_next_layer () { $fname = "Categoryfinder::scan_next_layer" ; - + # Find all parents of the article currently in $this->next $layer = array () ; $res = $this->dbr->select( @@ -161,7 +162,7 @@ class Categoryfinder { $this->dbr->freeResult( $res ) ; $this->next = array() ; - + # Find the IDs of all category pages in $layer, if they exist if ( count ( $layer ) > 0 ) { $res = $this->dbr->select( -- 2.20.1