Skip to content

Commit

Permalink
Cleanup code style
Browse files Browse the repository at this point in the history
  • Loading branch information
kylekatarnls committed Nov 12, 2023
1 parent 25a7042 commit 8ef0d60
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/multi-tester.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:

strategy:
matrix:
php: ['7.4']
php: ['8.2']
setup: ['stable']

name: PHP ${{ matrix.php }} - ${{ matrix.setup || 'stable' }}
Expand Down
1 change: 0 additions & 1 deletion src/Day.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
namespace Spatie\OpeningHours;

use DateTimeInterface;
use Spatie\OpeningHours\Helpers\Arr;

enum Day: string
{
Expand Down
2 changes: 1 addition & 1 deletion src/PreciseTime.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion tests/OpeningHoursTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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']],
]);
}

Expand Down

0 comments on commit 8ef0d60

Please sign in to comment.