Skip to content

Commit

Permalink
fix property name
Browse files Browse the repository at this point in the history
  • Loading branch information
edalzell committed Jan 25, 2022
1 parent 1ff638e commit b80ebe6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Day.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,15 @@ public function __construct($data, bool $isAllDay = false)
$this->startTime = $date->startOfDay()->format('G:i');
$this->endTime = $date->endOfDay()->format('G:i');
} else {
$this->hasEndTime = Arr::has($data, 'end_time');
$this->endTime = Arr::has($data, 'end_time');
$this->startTime = Arr::get($data, 'start_time', Carbon::parse($this->date)->startOfDay()->format('G:i'));
$this->endTime = Arr::get($data, 'end_time', Carbon::parse($this->date)->endOfDay()->format('G:i'));
}
}

public function hasEndTime(): bool
{
return $this->hasEndTime;
return $this->endTime;
}

public function start(): Carbon
Expand Down

0 comments on commit b80ebe6

Please sign in to comment.