repman-io/repman

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

Summary

Maintainability
A
2 hrs
Test Coverage

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

    public function findAll(string $organizationId, int $limit = 20, int $offset = 0): array
    {
        return array_map(function (array $data): Package {
            return $this->hydratePackage($data);
            }, $this->connection->fetchAllAssociative(
Severity: Minor
Found in src/Query/Api/PackageQuery/DbalPackageQuery.php - About 1 hr to fix

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

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

      There are no issues that match your filters.

      Category
      Status