Skip to content

Commit ab0fde8

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

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/Hydrator/EloquentHydrator.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -264,10 +264,7 @@ 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+
return in_array($resourceKey, $this->dates, true);
271268
}
272269

273270
/**

0 commit comments

Comments
 (0)