Compare commits
2 commits
6188c9ed22
...
b586687174
Author | SHA1 | Date | |
---|---|---|---|
b586687174 | |||
6392989456 |
2 changed files with 7 additions and 8 deletions
|
@ -47,20 +47,18 @@ class TrackerController extends Controller
|
||||||
if ($fromCheckin) {
|
if ($fromCheckin) {
|
||||||
$tripData->checkins = array_filter(
|
$tripData->checkins = array_filter(
|
||||||
$tripData->checkins,
|
$tripData->checkins,
|
||||||
function ($key) use ($fromCheckin) {
|
function ($checkin) use ($fromCheckin) {
|
||||||
return $key >= $fromCheckin;
|
return $checkin->id >= $fromCheckin;
|
||||||
},
|
}
|
||||||
ARRAY_FILTER_USE_KEY
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($toCheckin) {
|
if ($toCheckin) {
|
||||||
$tripData->checkins = array_filter(
|
$tripData->checkins = array_filter(
|
||||||
$tripData->checkins,
|
$tripData->checkins,
|
||||||
function ($key) use ($toCheckin) {
|
function ($checkin) use ($toCheckin) {
|
||||||
return $key <= $toCheckin;
|
return $checkin->id <= $toCheckin;
|
||||||
},
|
}
|
||||||
ARRAY_FILTER_USE_KEY
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -13,6 +13,7 @@
|
||||||
<file>routes</file>
|
<file>routes</file>
|
||||||
<file>tests</file>
|
<file>tests</file>
|
||||||
|
|
||||||
|
<exclude-pattern>config/broadcasting.php</exclude-pattern>
|
||||||
<exclude-pattern>bootstrap/cache/*</exclude-pattern>
|
<exclude-pattern>bootstrap/cache/*</exclude-pattern>
|
||||||
<exclude-pattern>bootstrap/autoload.php</exclude-pattern>
|
<exclude-pattern>bootstrap/autoload.php</exclude-pattern>
|
||||||
<exclude-pattern>*/migrations/*</exclude-pattern>
|
<exclude-pattern>*/migrations/*</exclude-pattern>
|
||||||
|
|
Loading…
Reference in a new issue