Showing 103 of 440 total issues
CharacterInfo
has 42 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class CharacterInfo extends ExtensibleModel
{
use HasFactory, NotableTrait;
/**
CorporationInfo
has 39 functions (exceeds 20 allowed). Consider refactoring. Open
Open
#[OA\Schema(
title: 'CorporationInfo',
description: 'Corporation Sheet',
properties: [
new OA\Property(property: 'name', description: 'The name of the corporation', type: 'string'),
Method handle
has 120 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function handle()
{
$response = $this->retrieve([
'character_id' => $this->getCharacterId(),
'planet_id' => $this->planet_id,
Method getSchedules
has 110 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getSchedules(): array
{
$schedules = [
[ // ESI Status | Every Minute
'command' => 'esi:update:status',
Method handle
has 88 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function handle()
{
// Start by warning the user about the command that will be run
$this->comment('Warning! This Laravel command uses exec() to execute a ');
File Sde.php
has 307 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
/*
* This file is part of SeAT
*
Method handle
has 80 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function handle()
{
parent::handle();
// all items which need to be singleton
Method handle
has 80 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function handle()
{
parent::handle();
// Get the assets for this character, chunked in a number of blocks
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'),
CorporationStructure
has 25 functions (exceeds 20 allowed). Consider refactoring. Open
Open
#[OA\Schema(
title: 'CorporationStructure',
description: 'Corporation Structure',
properties: [
new OA\Property(property: 'structure_id', description: 'Structure unique identifier', type: 'integer', format: 'int64'),
Method handle
has 67 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function handle()
{
if ($this->batchId && $this->batch()->cancelled()) {
logger()->debug(sprintf('[Jobs][%s] Orders - Cancelling job due to relevant batch %s cancellation.', $this->job->getJobId(), $this->batch()->id));
Method handle
has 62 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function handle()
{
$this->line('SeAT Token Upgrader');
Function handle
has a Cognitive Complexity of 18 (exceeds 5 allowed). Consider refactoring. Open
Open
public function handle()
{
// Start by warning the user about the command that will be run
$this->comment('Warning! This Laravel command uses exec() to execute a ');
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Method handle
has 60 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function handle()
{
parent::handle();
while (true) {
File PlanetDetail.php
has 262 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
/*
* This file is part of SeAT
*
Method handle
has 53 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function handle()
{
$response = $this->retrieve([
'killmail_id' => $this->killmail_id,
'killmail_hash' => $this->killmail_hash,
File CorporationInfo.php
has 254 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
/*
* This file is part of SeAT
*
File CharacterInfo.php
has 254 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
/*
* This file is part of SeAT
*
Method customValidationMessages
has 52 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function customValidationMessages()
{
return [
'0.integer' => self::INTEGER_VALIDATION_MESSAGE,
'0.between' => self::BETWEEN_VALIDATION_MESSAGE,
Method handle
has 47 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function handle()
{
$job_start_time = now();
// the region_id cached to speed up execution of the loop