mirror of
https://github.com/usetrmnl/byos_laravel.git
synced 2026-01-13 15:07:49 +00:00
parent
1298814521
commit
3cdc267809
3 changed files with 2 additions and 3 deletions
|
|
@ -6,7 +6,6 @@ use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
||||
use Illuminate\Database\Eloquent\Relations\HasMany;
|
||||
use Illuminate\Support\Carbon;
|
||||
|
||||
class Playlist extends Model
|
||||
{
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@ class IcalResponseParser implements ResponseParser
|
|||
$filteredEvents = array_values(array_filter($events, function (array $event) use ($windowStart, $windowEnd): bool {
|
||||
$startDate = $this->asCarbon($event['DTSTART'] ?? null);
|
||||
|
||||
if (!$startDate instanceof \Carbon\Carbon) {
|
||||
if (! $startDate instanceof Carbon) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue