aboutsummaryrefslogtreecommitdiffstats
path: root/includes/site
diff options
context:
space:
mode:
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>2023-12-19 00:05:45 +0000
committerGerrit Code Review <gerrit@wikimedia.org>2023-12-19 00:05:45 +0000
commit3e07889c706cde00aea218379120574b49d7a326 (patch)
tree01567fc344c3b62fd0df24340df929e3602c4f75 /includes/site
parentf845bb04b6d22d92643b9ac8e4b33035e575dddc (diff)
parenta778d3fea727e80cfa47aa57c98438d9f527a85a (diff)
downloadmediawikicore-3e07889c706cde00aea218379120574b49d7a326.tar.gz
mediawikicore-3e07889c706cde00aea218379120574b49d7a326.zip
Merge "Inline once-called short private methods to its caller, part 1"
Diffstat (limited to 'includes/site')
-rw-r--r--includes/site/SiteImporter.php9
1 files changed, 1 insertions, 8 deletions
diff --git a/includes/site/SiteImporter.php b/includes/site/SiteImporter.php
index 1ea833f6c95e..18660890c2fe 100644
--- a/includes/site/SiteImporter.php
+++ b/includes/site/SiteImporter.php
@@ -115,14 +115,7 @@ class SiteImporter {
libxml_use_internal_errors( $oldLibXmlErrors );
// phpcs:ignore Generic.PHP.NoSilencedErrors
@libxml_disable_entity_loader( $oldDisable );
- $this->importFromDOM( $document->documentElement );
- }
-
- /**
- * @param DOMElement $root
- */
- private function importFromDOM( DOMElement $root ) {
- $sites = $this->makeSiteList( $root );
+ $sites = $this->makeSiteList( $document->documentElement );
$this->store->saveSites( $sites );
}