Showing 186 of 479 total issues
Avoid too many return
statements within this method. Open
Open
return $query->where(function ($sub_query) use ($characters_range, $corporations_range, $alliances_range) {
return $sub_query->whereIn('ceo_id', $characters_range)
->orWhereIn('alliance_id', $alliances_range)
->orWhereIn('corporation_id', $corporations_range);
});
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 [
'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 $permission->title == $this->ability;
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
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 response()->json($response);
Avoid too many return
statements within this method. Open
Open
return $messages->where('mail_id', $message_id)
->first();
Avoid too many return
statements within this method. Open
Open
return 'Delivery Hangar';
Avoid too many return
statements within this method. Open
Open
return 'table-danger';
Avoid too many return
statements within this method. Open
Open
return '';
Avoid too many return
statements within this method. Open
Open
return $row->container->container->station->name;
Avoid too many return
statements within this method. Open
Open
return [
'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 $next($request);
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 $this->divisions->where('division', 5)->first()->name ?? sprintf('%s 5', trans_choice('web::assets.division', 1));
Avoid too many return
statements within this method. Open
Open
return '';
Avoid too many return
statements within this method. Open
Open
return $query->whereIntegerInRaw($table . '.corporation_id', $corporation_ids);
Avoid too many return
statements within this method. Open
Open
return $query->whereIntegerInRaw('object_id', $character_ids);
Avoid too many return
statements within this method. Open
Open
return view('web::common.assets.buttons.cargo', compact('row'))->render();