Showing 186 of 479 total issues
Avoid too many return
statements within this method. Open
Open
return $query->where(function ($sub_query) use ($character_ids) {
$sub_query->whereHas('attackers', function ($query) use ($character_ids) {
$query->whereIntegerInRaw('killmail_attackers.character_id', $character_ids);
})->orWhereHas('victim', function ($query) use ($character_ids) {
$query->whereIntegerInRaw('killmail_victims.character_id', $character_ids);
Avoid too many return
statements within this method. Open
Open
return $permission->title == $this->ability;
Avoid too many return
statements within this method. Open
Open
return $query->where(function ($sub_query) use ($map) {
$character_ids = array_merge(
auth()->user()->associatedCharacterIds(),
$map->pluck('characters')->flatten()->toArray(),
);
Avoid too many return
statements within this method. Open
Open
return $rules;
Avoid too many return
statements within this method. Open
Open
return $collection->when($collection->isNotEmpty(), function ($ids) {
return $this->resolveFactionIDs($ids);
});
Avoid too many return
statements within this method. Open
Open
return ($row->location_flag == 'AutoFit' && $row->location_type == 'solar_system') ? 'In Space' : '';
Avoid too many return
statements within this method. Open
Open
return 'table-danger';
Avoid too many return
statements within this method. Open
Open
return $row->container->station->name;
Avoid too many return
statements within this method. Open
Open
return [
'characters' => collect($filters->character ?? [])->pluck('id')->toArray(),
'corporations' => collect($filters->corporation ?? [])->pluck('id')->toArray(),
'alliances' => collect($filters->alliance ?? [])->pluck('id')->toArray(),
];
Avoid too many return
statements within this method. Open
Open
return 'Delivery Hangar';
Avoid too many return
statements within this method. Open
Open
return ($row->location_flag == 'AutoFit' && $row->location_type == 'solar_system') ? 'In Space' : '';
Avoid too many return
statements within this method. Open
Open
return sprintf('%d (%d)', $row->item_id, $row->location_id);
Avoid too many return
statements within this method. Open
Open
return $row->container->container->structure->name;
Avoid too many return
statements within this method. Open
Open
return [
'characters' => collect($filters->character ?? [])->pluck('id')->toArray(),
'corporations' => collect($filters->corporation ?? [])->pluck('id')->toArray(),
'alliances' => collect($filters->alliance ?? [])->pluck('id')->toArray(),
];
Avoid too many return
statements within this method. Open
Open
return $item->station->name;
Avoid too many return
statements within this method. Open
Open
return $this->divisions->where('division', 7)->first()->name ?? sprintf('%s 7', trans_choice('web::assets.division', 1));
Avoid too many return
statements within this method. Open
Open
return 'table-warning';
Avoid too many return
statements within this method. Open
Open
return [
'characters' => collect($filters->character ?? [])->pluck('id')->toArray(),
'corporations' => collect($filters->corporation ?? [])->pluck('id')->toArray(),
'alliances' => collect($filters->alliance ?? [])->pluck('id')->toArray(),
];
Avoid too many return
statements within this method. Open
Open
return [
'alliances' => collect($filters->alliance ?? [])->pluck('id')->toArray(),
];
Avoid too many return
statements within this method. Open
Open
if ($permissions->filter(function ($permission) { return ! $permission->hasFilters(); })->isNotEmpty())