X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FCategoryFinder.php;h=89bf5c7327058dd3bfd643d5b8ed5f82642aa7d7;hb=50ea235528289fa3b7b31a2281c6c7683053b7f4;hp=4efa2ff84ca2e014d72ee557e6f21506180532c2;hpb=939199bcea28a3b13c49c0f808d11d415660b924;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/CategoryFinder.php b/includes/CategoryFinder.php index 4efa2ff84c..89bf5c7327 100644 --- a/includes/CategoryFinder.php +++ b/includes/CategoryFinder.php @@ -20,6 +20,8 @@ * @file */ +use Wikimedia\Rdbms\IDatabase; + /** * The "CategoryFinder" class takes a list of articles, creates an internal * representation of all their parent categories (as well as parents of @@ -40,7 +42,6 @@ * $a = $cf->run(); * print implode( ',' , $a ); * @endcode - * */ class CategoryFinder { /** @var int[] The original article IDs passed to the seed function */ @@ -185,7 +186,6 @@ class CategoryFinder { * Scans a "parent layer" of the articles/categories in $this->next */ private function scanNextLayer() { - # Find all parents of the article currently in $this->next $layer = []; $res = $this->dbr->select(