src/Models/Sde/MapDenormalize.php
MapDenormalize
has 27 functions (exceeds 20 allowed). Consider refactoring. Open
Open
#[OA\Schema(
title: 'MapDenormalize',
description: 'Map Denormalize',
properties: [
new OA\Property(property: 'itemID', description: 'The entity ID', type: 'integer'),
Method getMoonIndicatorsAttribute
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getMoonIndicatorsAttribute()
{
if (is_null($this->moon_indicators)) {
$this->moon_indicators = (object) [
'ubiquitous' => $this->moon_content->filter(function ($type) {
Avoid too many return
statements within this method. Open
Open
return $type->marketGroupID == 2401;
Avoid too many return
statements within this method. Open
Open
return ! in_array($type->marketGroupID, [2396, 2397, 2398, 2400, 2401]);
Avoid too many return
statements within this method. Open
Open
return $this->moon_indicators ?: (object) [
'ubiquitous' => 0,
'common' => 0,
'uncommon' => 0,
'rare' => 0,