From 207816b5d5be0e849db67979462795a8b11cbab4 Mon Sep 17 00:00:00 2001 From: StyleCI Bot Date: Sun, 12 Nov 2023 10:24:30 +0000 Subject: [PATCH] Apply fixes from StyleCI --- src/Day.php | 1 - src/PreciseTime.php | 2 +- tests/OpeningHoursTest.php | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Day.php b/src/Day.php index 9c6d782..2a18c28 100644 --- a/src/Day.php +++ b/src/Day.php @@ -3,7 +3,6 @@ namespace Spatie\OpeningHours; use DateTimeInterface; -use Spatie\OpeningHours\Helpers\Arr; enum Day: string { diff --git a/src/PreciseTime.php b/src/PreciseTime.php index 9f5690d..4355a04 100644 --- a/src/PreciseTime.php +++ b/src/PreciseTime.php @@ -21,7 +21,7 @@ protected function __construct(DateTimeInterface $dateTime, mixed $data = null) public static function fromString(string $string, mixed $data = null, ?DateTimeInterface $date = null): parent { if ($date !== null) { - throw new InvalidArgumentException(static::class . ' does not support date reference point'); + throw new InvalidArgumentException(static::class.' does not support date reference point'); } return self::fromDateTime(new DateTimeImmutable($string), $data); diff --git a/tests/OpeningHoursTest.php b/tests/OpeningHoursTest.php index ea506ee..f1f7f12 100644 --- a/tests/OpeningHoursTest.php +++ b/tests/OpeningHoursTest.php @@ -1075,7 +1075,7 @@ public function it_throws_an_exception_on_invalid_timezone() $this->expectExceptionMessage('Invalid Timezone'); OpeningHours::create([ - 'timezone' => ['input' => ['foo']] + 'timezone' => ['input' => ['foo']], ]); }