mirror of
https://github.com/jikan-me/jikan-rest.git
synced 2025-02-20 11:23:35 +08:00
review Schedule controller
This commit is contained in:
parent
e4b43081d7
commit
625f10a4a2
@ -32,7 +32,9 @@ class ScheduleController extends Controller
|
||||
$schedule = $this->jikan->getSchedule(new ScheduleRequest());
|
||||
|
||||
if (!is_null($day)) {
|
||||
$schedule = $schedule->{'get' . ucfirst(strtolower($day))}();
|
||||
$schedule = [
|
||||
strtolower($day) => $schedule->{'get' . ucfirst(strtolower($day))}()
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user