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) { if ($fromCheckin) {
$tripData->checkins = array_filter( $tripData->checkins = array_filter(
$tripData->checkins, $tripData->checkins,
function ($checkin) use ($fromCheckin) { function ($key) use ($fromCheckin) {
return $checkin->id >= $fromCheckin; return $key >= $fromCheckin;
} },
ARRAY_FILTER_USE_KEY
); );
} }
if ($toCheckin) { if ($toCheckin) {
$tripData->checkins = array_filter( $tripData->checkins = array_filter(
$tripData->checkins, $tripData->checkins,
function ($checkin) use ($toCheckin) { function ($key) use ($toCheckin) {
return $checkin->id <= $toCheckin; return $key <= $toCheckin;
} },
ARRAY_FILTER_USE_KEY
); );
} }

View file

@ -13,7 +13,6 @@
<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>