owncloud/core

View on GitHub
lib/private/Repair/CleanTags.php

Summary

Maintainability
A
3 hrs
Test Coverage

Method deleteOrphanEntries has 30 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    protected function deleteOrphanEntries(IOutput $output, $repairInfo, $deleteTable, $deleteId, $sourceTable, $sourceId, $sourceNullColumn) {
        $qb = $this->connection->getQueryBuilder();

        $qb->select('d.' . $deleteId)
            ->from($deleteTable, 'd')
Severity: Minor
Found in lib/private/Repair/CleanTags.php - About 1 hr to fix

    Method checkTags has 27 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        protected function checkTags($offset) {
            $query = $this->connection->getQueryBuilder();
            $query->select('uid')
                ->from('vcategory')
                ->groupBy('uid')
    Severity: Minor
    Found in lib/private/Repair/CleanTags.php - About 1 hr to fix

      Method deleteOrphanEntries has 7 arguments (exceeds 4 allowed). Consider refactoring.
      Open

          protected function deleteOrphanEntries(IOutput $output, $repairInfo, $deleteTable, $deleteId, $sourceTable, $sourceId, $sourceNullColumn) {
      Severity: Major
      Found in lib/private/Repair/CleanTags.php - About 50 mins to fix

        There are no issues that match your filters.

        Category
        Status