Showing 31 of 156 total issues
Similar blocks of code found in 2 locations. Consider refactoring. Open
protected array $roles_array = [ 'Account_Take_1', 'Account_Take_2', 'Account_Take_3', 'Account_Take_4', 'Account_Take_5', 'Account_Take_6', 'Account_Take_7', 'Accountant', 'Auditor', 'Communications_Officer', 'Config_Equipment', 'Config_Starbase_Equipment', 'Container_Take_1', 'Container_Take_2', 'Container_Take_3', 'Container_Take_4', 'Container_Take_5', 'Container_Take_6', 'Container_Take_7', 'Contract_Manager', 'Diplomat', 'Director', 'Factory_Manager', 'Fitting_Manager', 'Hangar_Query_1',
- Read upRead up
The class CharacterInfo has 18 public methods. Consider refactoring CharacterInfo to keep number of public methods under 10. Open
class CharacterInfo extends Model{ use HasFactory; protected $guarded = [];
- Read upRead up
- Exclude checks
File CheckJobsCommand.php
has 277 lines of code (exceeds 250 allowed). Consider refactoring. Confirmed
<?php /* * MIT License *
Avoid excessively long variable names like $unknown_constellation_ids. Keep variable name length under 20. Open
$unknown_constellation_ids = System::whereDoesntHave('constellation')->pluck('constellation_id')->unique()->values();
- Read upRead up
- Exclude checks
Function handleException
has a Cognitive Complexity of 12 (exceeds 5 allowed). Consider refactoring. Open
private function handleException(RequestFailedException $exception): void { // If error is in 4xx or 5xx range increase esi rate limit if (($exception->getOriginalException()->getCode() >= 400) && ($exception->getOriginalException()->getCode() <= 599)) { $this->incrementEsiRateLimit();
- Read upRead up
Method persist
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Confirmed
private function persist(Collection $contracts): void { Contract::upsert( $contracts->toArray(), ['contract_id'],
Similar blocks of code found in 10 locations. Consider refactoring. Open
<?php /* * MIT License *
- Read upRead up
Similar blocks of code found in 10 locations. Consider refactoring. Open
<?php /* * MIT License *
- Read upRead up
Similar blocks of code found in 10 locations. Consider refactoring. Open
<?php /* * MIT License *
- Read upRead up
Similar blocks of code found in 10 locations. Consider refactoring. Open
<?php /* * MIT License *
- Read upRead up
Similar blocks of code found in 10 locations. Consider refactoring. Open
<?php /* * MIT License *
- Read upRead up
Similar blocks of code found in 10 locations. Consider refactoring. Open
<?php /* * MIT License *
- Read upRead up
Similar blocks of code found in 10 locations. Consider refactoring. Open
<?php /* * MIT License *
- Read upRead up
Similar blocks of code found in 10 locations. Consider refactoring. Open
<?php /* * MIT License *
- Read upRead up
Similar blocks of code found in 10 locations. Consider refactoring. Open
<?php /* * MIT License *
- Read upRead up
The class CharacterInfo has a coupling between objects value of 26. Consider to reduce the number of dependencies under 13. Open
class CharacterInfo extends Model{ use HasFactory; protected $guarded = [];
- Read upRead up
- Exclude checks
The class MaintenanceJob has a coupling between objects value of 22. Consider to reduce the number of dependencies under 13. Open
class MaintenanceJob implements ShouldQueue{ use Batchable; use Dispatchable; use InteractsWithQueue;
- Read upRead up
- Exclude checks
Function handle
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Confirmed
public function handle(int $location_id): void { $location = Location::with('locatable')->firstOrNew([ 'location_id' => $location_id, ]);
- Read upRead up
Function failed
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Confirmed
public function failed(Throwable $exception): void { if ($exception instanceof MaxAttemptsExceededException) { $this->delete(); logger()->info('deleted job because MaxAttemptsException');
- Read upRead up
Missing class import via use statement (line '42', column '50'). Open
throw_unless(is_string($expression), new \Exception(sprintf('class %s could not be found in scheduled jobs', $scheduled_class)));
- Read upRead up
- Exclude checks