eveseat/eveapi

View on GitHub
src/Models/Sde/MapDenormalize.php

Summary

Maintainability
B
5 hrs
Test Coverage

MapDenormalize has 27 functions (exceeds 20 allowed). Consider refactoring.
Open

#[OA\Schema(
    title: 'MapDenormalize',
    description: 'Map Denormalize',
    properties: [
        new OA\Property(property: 'itemID', description: 'The entity ID', type: 'integer'),
Severity: Minor
Found in src/Models/Sde/MapDenormalize.php - About 3 hrs to fix

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

        public function getMoonIndicatorsAttribute()
        {
            if (is_null($this->moon_indicators)) {
                $this->moon_indicators = (object) [
                    'ubiquitous' => $this->moon_content->filter(function ($type) {
    Severity: Minor
    Found in src/Models/Sde/MapDenormalize.php - About 1 hr to fix

      Avoid too many return statements within this method.
      Open

                          return $type->marketGroupID == 2401;
      Severity: Major
      Found in src/Models/Sde/MapDenormalize.php - About 30 mins to fix

        Avoid too many return statements within this method.
        Open

                            return ! in_array($type->marketGroupID, [2396, 2397, 2398, 2400, 2401]);
        Severity: Major
        Found in src/Models/Sde/MapDenormalize.php - About 30 mins to fix

          Avoid too many return statements within this method.
          Open

                  return $this->moon_indicators ?: (object) [
                      'ubiquitous' => 0,
                      'common' => 0,
                      'uncommon' => 0,
                      'rare' => 0,
          Severity: Major
          Found in src/Models/Sde/MapDenormalize.php - About 30 mins to fix

            There are no issues that match your filters.

            Category
            Status