wikimedia/mediawiki-extensions-Translate

View on GitHub
src/MessageGroupProcessing/ImportTranslatableBundleMaintenanceScript.php

Summary

Maintainability
B
5 hrs
Test Coverage

Method __construct has 73 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function __construct() {
        parent::__construct();
        $this->addArg(
            'xml-path',
            'Path to the XML file to be imported',

    Method execute has 32 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        public function execute() {
            $this->pageImportCount = 0;
            $importFilePath = $this->getPathOfFileToImport();
            $importUser = $this->getImportUser();
            $comment = $this->getOption( 'comment' );

      Method markPageForTranslation has 29 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          private function markPageForTranslation(
              Title $bundleTitle,
              TranslatablePageSettings $translatablePageSettings,
              UserIdentity $importUser
          ): void {

        There are no issues that match your filters.

        Category
        Status