Skip to content

Commit bb05d05

Browse files
Improve code about use dates attribute from model
1 parent 6ae5a27 commit bb05d05

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/Hydrator/EloquentHydrator.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -264,10 +264,8 @@ protected function isDateAttribute($record, $resourceKey)
264264
{
265265
return in_array(Str::snake($resourceKey), $record->getDates(), true);
266266
}
267-
else
268-
{
269-
return in_array($resourceKey, $this->dates, true);
270-
}
267+
268+
return in_array($resourceKey, $this->dates, true);
271269
}
272270

273271
/**

0 commit comments

Comments
 (0)