Skip to content

Commit

Permalink
Merge pull request #223 from spatie/analysis-4wenP7
Browse files Browse the repository at this point in the history
Apply fixes from StyleCI
  • Loading branch information
kylekatarnls committed Nov 5, 2023
2 parents bf40b99 + 8bdd0a3 commit b630314
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/DateTimeRange.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ protected function __construct(DateTimeInterface $date, Time $start, Time $end,
$start > $date->format(self::TIME_FORMAT)
? ' - 1 day'
: ''
));
));
$endDate = $this->copyAndModify($date, $end.(
$end < $date->format(self::TIME_FORMAT)
? ' + 1 day'
: ''
));
));
parent::__construct(
Time::fromString($start, $start->getData(), $startDate),
Time::fromString($end, $start->getData(), $endDate),
Expand Down
2 changes: 1 addition & 1 deletion src/OpeningHours.php
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ public function setDateTimeClass(?string $dateTimeClass = null): self
*
* Replace the whole metadata handled by OpeningHours.
*
* @param $data
* @param $data
* @return $this
*/
public function setData($data): self
Expand Down

0 comments on commit b630314

Please sign in to comment.