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']], ]); }