Showing 186 of 479 total issues
Avoid too many return
statements within this method. Open
Open
return $this->divisions->where('division', 5)->first()->name;
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 $permission->title == $this->ability;
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->container->structure->name;
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 $item->container->station->name;
Avoid too many return
statements within this method. Open
Open
return $row->structure->name;
Avoid too many return
statements within this method. Open
Open
return $messages->select('mail_id', 'subject', 'from', 'timestamp')
->orderBy('timestamp', 'desc')
->distinct()
->paginate(25);
Avoid too many return
statements within this method. Open
Open
return $row->structure->name;
Avoid too many return
statements within this method. Open
Open
return $row->container->structure->name;
Avoid too many return
statements within this method. Open
Open
return $row->name;
Avoid too many return
statements within this method. Open
Open
return 'table-warning';
Avoid too many return
statements within this method. Open
Open
return $row->location_id;
Avoid too many return
statements within this method. Open
Open
return $row->container->name ?: trans('web::seat.unknown');
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 $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 $query;
Avoid too many return
statements within this method. Open
Open
if ($permissions->filter(function ($permission) { return ! $permission->hasFilters(); })->isNotEmpty())