repman-io/repman

View on GitHub
src/Query/Admin/TelemetryQuery/DbalTelemetryQuery.php

Summary

Maintainability
A
2 hrs
Test Coverage

Method packages has 33 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function packages(string $organizationId, \DateTimeImmutable $till, int $limit = 100, int $offset = 0): array
    {
        return array_map(function (array $data): Package {
            return new Package(
                $data['type'],
Severity: Minor
Found in src/Query/Admin/TelemetryQuery/DbalTelemetryQuery.php - About 1 hr to fix

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

        public function organizations(int $limit = 100, int $offset = 0): array
        {
            return array_map(function (array $data): Organization {
                return new Organization(
                    $data['id'],
    Severity: Minor
    Found in src/Query/Admin/TelemetryQuery/DbalTelemetryQuery.php - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status