Add @deprecated to Article::prepareTextForEdit()
[lhc/web/wiklou.git] / includes / filerepo / ForeignDBRepo.php
index 283576a..7fb7a0e 100644 (file)
@@ -51,10 +51,13 @@ class ForeignDBRepo extends LocalRepo {
        /** @var bool */
        protected $hasSharedCache;
 
-       # Other stuff
+       /** @var IDatabase */
        protected $dbConn;
-       protected $fileFactory = array( 'ForeignDBFile', 'newFromTitle' );
-       protected $fileFromRowFactory = array( 'ForeignDBFile', 'newFromRow' );
+
+       /** @var callable */
+       protected $fileFactory = [ 'ForeignDBFile', 'newFromTitle' ];
+       /** @var callable */
+       protected $fileFromRowFactory = [ 'ForeignDBFile', 'newFromRow' ];
 
        /**
         * @param array|null $info
@@ -95,7 +98,7 @@ class ForeignDBRepo extends LocalRepo {
         */
        protected function getDBFactory() {
                $type = $this->dbType;
-               $params = array(
+               $params = [
                        'host' => $this->dbServer,
                        'user' => $this->dbUser,
                        'password' => $this->dbPassword,
@@ -103,10 +106,10 @@ class ForeignDBRepo extends LocalRepo {
                        'flags' => $this->dbFlags,
                        'tablePrefix' => $this->tablePrefix,
                        'foreign' => true,
-               );
+               ];
 
                return function ( $index ) use ( $type, $params ) {
-                       return DatabaseBase::factory( $type, $params );
+                       return Database::factory( $type, $params );
                };
        }