From 4d1e58dce89c6bb2691f78e005cffe0a69fc8f1a Mon Sep 17 00:00:00 2001 From: Siebrand Mazeland Date: Thu, 26 Dec 2013 23:57:07 +0100 Subject: [PATCH] Declare visibility for class properties of LBFactory and LBFactorySimple Change-Id: Ia4ffc4e99006384a097ea03f6ee982376a06cde8 --- includes/db/LBFactory.php | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/includes/db/LBFactory.php b/includes/db/LBFactory.php index c4e7976e04..1289bdccbe 100644 --- a/includes/db/LBFactory.php +++ b/includes/db/LBFactory.php @@ -26,10 +26,8 @@ * @ingroup Database */ abstract class LBFactory { - /** - * @var LBFactory - */ - static $instance; + /** @var LBFactory */ + protected static $instance; /** * Disables all access to the load balancer, will cause all database access @@ -198,15 +196,14 @@ abstract class LBFactory { * A simple single-master LBFactory that gets its configuration from the b/c globals */ class LBFactorySimple extends LBFactory { + /** @var LoadBalancer */ + protected $mainLB; - /** - * @var LoadBalancer - */ - var $mainLB; - var $extLBs = array(); + /** @var LoadBalancer[] */ + protected $extLBs = array(); - # Chronology protector - var $chronProt; + /** @var ChronologyProtector */ + protected $chronProt; function __construct( $conf ) { $this->chronProt = new ChronologyProtector; -- 2.20.1