Skip to content

Commit 91749af

Browse files
authored
Merge branch 'main' into renovate/actions-checkout-7.x
2 parents a52622c + f08e608 commit 91749af

9 files changed

Lines changed: 19 additions & 12 deletions

File tree

.github/workflows/run-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
strategy:
99
fail-fast: true
1010
matrix:
11-
php: [ 8.5, 8.4, 8.3 ]
11+
php: [ 8.5, 8.4 ]
1212
dependency-version: ['--prefer-lowest', '--prefer-stable']
1313
laravel: [12.*, 11.*]
1414
include:

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ auth.json
1010
phpunit.xml
1111
.phpunit.result.cache
1212
.phpunit.cache/
13+
.php-cs-fixer.cache
14+
/.cache
1315

1416
.DS_Store
1517
Thumbs.db

composer.json

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"world"
1212
],
1313
"require": {
14-
"php": "^8.3",
14+
"php": "^8.4",
1515
"ext-json": "*",
1616
"laravel/nova": "^4.20 || ^5.0"
1717
},
@@ -57,9 +57,13 @@
5757
}
5858
},
5959
"scripts": {
60-
"cs": "@cs:fix",
60+
"cs": [
61+
"@php-cs-fixer",
62+
"@cs:fix"
63+
],
6164
"cs:check": "phpcs -p -s --colors --report-full --report-summary",
62-
"cs:fix": "phpcbf -p --colors",
65+
"cs:fix": "phpcbf -p --colors --cache=.cache/phpcs",
66+
"php-cs-fixer": "php-cs-fixer fix --no-interaction",
6367
"psalm": "cpx psalm",
6468
"sa": "@psalm",
6569
"sa:bl": "cpx psalm --set-baseline=psalm-baseline.xml --long-progress --threads=1",

dist/js/card.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/mix-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"/js/card.js": "/js/card.js?id=8ba18f952568b68584172c5bf5465b80"
2+
"/js/card.js": "/js/card.js?id=d69b8490dc74afc75b774716af045b55"
33
}

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@
1616
"devDependencies": {
1717
"@vue/compiler-sfc": "3.5.38",
1818
"laravel-mix": "6.0.49",
19-
"vue-loader": "16.8.3"
19+
"vue-loader": "16.8.3",
20+
"webpack": "5.101.3"
2021
},
2122
"dependencies": {
2223
"vue": "^3.0.0"

src/CardServiceProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ final class CardServiceProvider extends ServiceProvider
1111
/** Bootstrap any application services. */
1212
public function boot(): void
1313
{
14-
$this->app->booted(function () {
14+
$this->app->booted(function (): void {
1515
$this->routes();
1616
});
1717

src/Http/Controllers/WorldClockController.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
namespace InteractionDesignFoundation\WorldClockCard\Http\Controllers;
44

5+
use Carbon\CarbonInterface;
56
use Illuminate\Http\Request;
6-
use Illuminate\Support\Carbon;
77

88
final class WorldClockController
99
{
@@ -48,9 +48,9 @@ private function prettifyTimezoneName(string $timezone, bool $hideContinents): s
4848
return $prettifiedTimezone;
4949
}
5050

51-
private function isNight(Carbon $dateTime, int $nightStart, int $nightEnd): bool
51+
private function isNight(CarbonInterface $dateTime, int $nightStart, int $nightEnd): bool
5252
{
53-
$currentHour = $dateTime->hour;
53+
$currentHour = (int) $dateTime->format('G');
5454

5555
return $currentHour >= $nightStart || $currentHour < $nightEnd;
5656
}

src/WorldClock.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public function __construct($component = null)
2929
]);
3030
}
3131

32-
/** @inheritDoc */
32+
#[\Override]
3333
public function component()
3434
{
3535
return 'worldclock-card';

0 commit comments

Comments
 (0)