wikimedia/mediawiki-extensions-Wikibase

View on GitHub
repo/includes/Store/Sql/SqlStore.php

Summary

Maintainability
C
7 hrs
Test Coverage

File SqlStore.php has 286 lines of code (exceeds 250 allowed). Consider refactoring.
Open

<?php

namespace Wikibase\Repo\Store\Sql;

use MediaWiki\HookContainer\HookContainer;
Severity: Minor
Found in repo/includes/Store/Sql/SqlStore.php - About 2 hrs to fix

    SqlStore has 21 functions (exceeds 20 allowed). Consider refactoring.
    Open

    class SqlStore implements Store {
    
        /**
         * @var EntityChangeFactory
         */
    Severity: Minor
    Found in repo/includes/Store/Sql/SqlStore.php - About 2 hrs to fix

      Method __construct has 13 arguments (exceeds 4 allowed). Consider refactoring.
      Open

              EntityChangeFactory $entityChangeFactory,
              EntityIdParser $entityIdParser,
              EntityIdComposer $entityIdComposer,
              EntityIdLookup $entityIdLookup,
              EntityTitleStoreLookup $entityTitleLookup,
      Severity: Major
      Found in repo/includes/Store/Sql/SqlStore.php - About 1 hr to fix

        Method newEntityRevisionLookup has 26 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            private function newEntityRevisionLookup() {
                // Maintain a list of watchers to be notified of changes to any entities,
                // in order to update caches.
                /** @var WikiPageEntityStore $dispatcher */
                $dispatcher = $this->getEntityStoreWatcher();
        Severity: Minor
        Found in repo/includes/Store/Sql/SqlStore.php - About 1 hr to fix

          There are no issues that match your filters.

          Category
          Status