Skip to content

Commit fc7ec76

Browse files
committed
fix style
1 parent 055a844 commit fc7ec76

File tree

3 files changed

+5
-9
lines changed

3 files changed

+5
-9
lines changed

src/Facades/LastModified.php

+2-3
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,11 @@
22

33
namespace Abordage\LastModified\Facades;
44

5-
use Illuminate\Support\Carbon;
65
use Illuminate\Support\Facades\Facade;
76

87
/**
9-
* @method static void set(Carbon $updated_at)
10-
* @method static Carbon|null get()
8+
* @method static void set(\Illuminate\Support\Carbon $updated_at)
9+
* @method static \Illuminate\Support\Carbon|null get()
1110
*
1211
* @see \Abordage\LastModified\LastModified
1312
*/

src/LastModified.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ class LastModified
88
{
99
private ?Carbon $updatedAt = null;
1010

11-
public function set(?Carbon $updated_at): void
11+
public function set(?Carbon $updatedAt): void
1212
{
13-
$this->updatedAt = $updated_at;
13+
$this->updatedAt = $updatedAt;
1414
}
1515

1616
public function get(): ?Carbon

src/LastModifiedServiceProvider.php

+1-4
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,6 @@ public function boot(): void
2424
public function register(): void
2525
{
2626
$this->mergeConfigFrom(__DIR__ . '/../config/last-modified.php', 'last-modified');
27-
28-
$this->app->singleton('laravel-last-modified', function () {
29-
return new LastModified();
30-
});
27+
$this->app->singleton('laravel-last-modified', fn () => new LastModified());
3128
}
3229
}

0 commit comments

Comments
 (0)