repman-io/repman

View on GitHub
src/Query/User/PackageQuery/DbalPackageQuery.php

Summary

Maintainability
C
1 day
Test Coverage

File DbalPackageQuery.php has 419 lines of code (exceeds 250 allowed). Consider refactoring.
Open

<?php

declare(strict_types=1);

namespace Buddy\Repman\Query\User\PackageQuery;
Severity: Minor
Found in src/Query/User/PackageQuery/DbalPackageQuery.php - About 6 hrs to fix

    Method findAll has 55 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        public function findAll(string $organizationId, Filter $filter): array
        {
            $filterSQL = $joinSQL = '';
            $params = [
                'organization_id' => $organizationId,
    Severity: Major
    Found in src/Query/User/PackageQuery/DbalPackageQuery.php - About 2 hrs to fix

      Method getDetailsById has 28 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          public function getDetailsById(string $id): Option
          {
              $data = $this->connection->fetchAssociative(
                  'SELECT
                      id,
      Severity: Minor
      Found in src/Query/User/PackageQuery/DbalPackageQuery.php - About 1 hr to fix

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

            public function getById(string $id): Option
            {
                $data = $this->connection->fetchAssociative(
                    'SELECT
                        id,
        Severity: Minor
        Found in src/Query/User/PackageQuery/DbalPackageQuery.php - About 1 hr to fix

          There are no issues that match your filters.

          Category
          Status