Merge "Fix some PHPDoc type hints in DatabaseMysqli"
[lhc/web/wiklou.git] / includes / PageProps.php
index 5579ba5..dac756e 100644 (file)
  *
  * @file
  */
+use Wikimedia\ScopedCallback;
 
 /**
  * Gives access to properties of a page.
  *
  * @since 1.27
- *
  */
 class PageProps {
 
@@ -55,7 +55,7 @@ class PageProps {
                }
                $previousValue = self::$instance;
                self::$instance = $store;
-               return new ScopedCallback( function() use ( $previousValue ) {
+               return new ScopedCallback( function () use ( $previousValue ) {
                        self::$instance = $previousValue;
                } );
        }
@@ -140,7 +140,7 @@ class PageProps {
                }
 
                if ( $queryIDs ) {
-                       $dbr = wfGetDB( DB_SLAVE );
+                       $dbr = wfGetDB( DB_REPLICA );
                        $result = $dbr->select(
                                'page_props',
                                [
@@ -198,7 +198,7 @@ class PageProps {
                }
 
                if ( $queryIDs != [] ) {
-                       $dbr = wfGetDB( DB_SLAVE );
+                       $dbr = wfGetDB( DB_REPLICA );
                        $result = $dbr->select(
                                'page_props',
                                [