R6API/Client

View on GitHub

Showing 3 of 5 total issues

File StatisticType.php has 358 lines of code (exceeds 250 allowed). Consider refactoring.
Open

<?php
declare(strict_types=1);

namespace R6API\Client\Api\Type;

Severity: Minor
Found in src/Api/Type/StatisticType.php - About 4 hrs to fix

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

        public function get(string $platform, string $region, int $season, array $profileIds): array
        {
            $parameters = [];
    
            // check $platform is part of PlatformType enum
    Severity: Minor
    Found in src/Api/RankApi.php - About 1 hr to fix

      Method __construct has 5 arguments (exceeds 4 allowed). Consider refactoring.
      Open

              Authentication $authentication,
              ProfileApiInterface $profileApi,
              ProgressionApiInterface $progressionApi,
              StatisticApiInterface $statisticApi,
              RankApiInterface $rankApi
      Severity: Minor
      Found in src/Client.php - About 35 mins to fix
        Severity
        Category
        Status
        Source
        Language