repo/includes/Store/Sql/SqlStore.php
File SqlStore.php
has 286 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
namespace Wikibase\Repo\Store\Sql;
use MediaWiki\HookContainer\HookContainer;
SqlStore
has 21 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class SqlStore implements Store {
/**
* @var EntityChangeFactory
*/
Method __construct
has 13 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
EntityChangeFactory $entityChangeFactory,
EntityIdParser $entityIdParser,
EntityIdComposer $entityIdComposer,
EntityIdLookup $entityIdLookup,
EntityTitleStoreLookup $entityTitleLookup,
Method newEntityRevisionLookup
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
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();