Showing 103 of 440 total issues
Method handle
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function handle()
{
parent::handle();
$response = $this->retrieve([
Method toEve
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function toEve()
{
return sprintf('[%s, %s]', $this->type->typeName, $this->info->name) . PHP_EOL .
$this->low_slots->map(function ($slot) {
Method handle
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function handle()
{
parent::handle();
$structure_batch = new StructureBatch();
Method enqueueDetailedCorporationContractsJobs
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function enqueueDetailedCorporationContractsJobs(array $contract_ids)
{
CorporationContract::whereIn('contract_id', $contract_ids)
->whereHas('detail', function ($query) {
$query->where('status', '<>', 'deleted');
Method handle
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function handle(): void
{
parent::handle();
$structure_batch = new StructureBatch();
Method handle
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function handle()
{
parent::handle();
$structure_batch = new StructureBatch();
Function handle
has a Cognitive Complexity of 10 (exceeds 5 allowed). Consider refactoring. Open
Open
public function handle()
{
$this->line('SeAT Token Upgrader');
- 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 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function handle()
{
while (true) {
$response = $this->retrieve([
Method handle
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function handle()
{
parent::handle();
// Perform a journal walk backwards to get all of the
Method handle
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function handle()
{
parent::handle();
$response = $this->retrieve([
Method addCommands
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function addCommands()
{
$this->commands([
// Buckets
\Seat\Eveapi\Commands\Seat\Buckets\Info::class,
Method handle
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function handle()
{
while (true) {
$response = $this->retrieve([
Method handle
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function handle()
{
parent::handle();
while (true) {
Method handle
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function handle()
{
parent::handle();
while (true) {
Method handle
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function handle()
{
parent::handle();
CorporationIndustryMiningObserver::where('corporation_id', $this->getCorporationId())
Method fromEsi
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function fromEsi($esi_structure): ContractDetail
{
$this->fill([
'issuer_id' => $esi_structure->issuer_id,
'issuer_corporation_id' => $esi_structure->issuer_corporation_id,
Method handle
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function handle()
{
parent::handle();
$structure_batch = new StructureBatch();
Method handle
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function handle()
{
parent::handle();
$structure_batch = new StructureBatch();
Method handle
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function handle(EsiBase $job, Closure $next): void
{
// bypass control if the class is not related to ESI or is the ESI ping job
if ($job instanceof Esi) {
logger()->debug(
Function handleEsiFailedCall
has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring. Open
Open
private function handleEsiFailedCall(RequestFailedException $exception)
{
// increment ESI rate limit
$this->incrementEsiRateLimit();
- 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"