Compare commits

..

No commits in common. "b5866871749c314868ecaf37d79608bd4919eb17" and "6188c9ed2291e77ea6f0c1ba98a956ba0e5033a5" have entirely different histories.

2 changed files with 8 additions and 7 deletions

View file

@ -47,18 +47,20 @@ class TrackerController extends Controller
if ($fromCheckin) {
$tripData->checkins = array_filter(
$tripData->checkins,
function ($checkin) use ($fromCheckin) {
return $checkin->id >= $fromCheckin;
}
function ($key) use ($fromCheckin) {
return $key >= $fromCheckin;
},
ARRAY_FILTER_USE_KEY
);
}
if ($toCheckin) {
$tripData->checkins = array_filter(
$tripData->checkins,
function ($checkin) use ($toCheckin) {
return $checkin->id <= $toCheckin;
}
function ($key) use ($toCheckin) {
return $key <= $toCheckin;
},
ARRAY_FILTER_USE_KEY
);
}

View file

@ -13,7 +13,6 @@
<file>routes</file>
<file>tests</file>
<exclude-pattern>config/broadcasting.php</exclude-pattern>
<exclude-pattern>bootstrap/cache/*</exclude-pattern>
<exclude-pattern>bootstrap/autoload.php</exclude-pattern>
<exclude-pattern>*/migrations/*</exclude-pattern>