From: umherirrender Date: Fri, 5 Dec 2014 21:31:59 +0000 (+0100) Subject: phpcs: The abstract declaration must precede the visibility X-Git-Tag: 1.31.0-rc.0~13067 X-Git-Url: http://git.cyclocoop.org/ecrire?a=commitdiff_plain;h=52553eccb63e381b7da89a644766a3d0c8a777f9;p=lhc%2Fweb%2Fwiklou.git phpcs: The abstract declaration must precede the visibility Change-Id: I957eb6007f110252726e67c1fb7099b02fdca676 --- diff --git a/includes/db/LBFactory.php b/includes/db/LBFactory.php index fdf170367c..0e89a5b064 100644 --- a/includes/db/LBFactory.php +++ b/includes/db/LBFactory.php @@ -109,7 +109,7 @@ abstract class LBFactory { * Construct a factory based on a configuration array (typically from $wgLBFactoryConf) * @param array $conf */ - public abstract function __construct( array $conf ); + abstract public function __construct( array $conf ); /** * Create a new load balancer object. The resulting object will be untracked, @@ -118,7 +118,7 @@ abstract class LBFactory { * @param bool|string $wiki Wiki ID, or false for the current wiki * @return LoadBalancer */ - public abstract function newMainLB( $wiki = false ); + abstract public function newMainLB( $wiki = false ); /** * Get a cached (tracked) load balancer object. @@ -126,7 +126,7 @@ abstract class LBFactory { * @param bool|string $wiki Wiki ID, or false for the current wiki * @return LoadBalancer */ - public abstract function getMainLB( $wiki = false ); + abstract public function getMainLB( $wiki = false ); /** * Create a new load balancer for external storage. The resulting object will be @@ -137,7 +137,7 @@ abstract class LBFactory { * @param bool|string $wiki Wiki ID, or false for the current wiki * @return LoadBalancer */ - protected abstract function newExternalLB( $cluster, $wiki = false ); + abstract protected function newExternalLB( $cluster, $wiki = false ); /** * Get a cached (tracked) load balancer for external storage @@ -146,7 +146,7 @@ abstract class LBFactory { * @param bool|string $wiki Wiki ID, or false for the current wiki * @return LoadBalancer */ - public abstract function &getExternalLB( $cluster, $wiki = false ); + abstract public function &getExternalLB( $cluster, $wiki = false ); /** * Execute a function for each tracked load balancer @@ -156,7 +156,7 @@ abstract class LBFactory { * @param callable $callback * @param array $params */ - public abstract function forEachLB( $callback, array $params = array() ); + abstract public function forEachLB( $callback, array $params = array() ); /** * Prepare all tracked load balancers for shutdown