Skip to content

Commit

Permalink
fix style
Browse files Browse the repository at this point in the history
  • Loading branch information
abordage committed Jun 11, 2022
1 parent 055a844 commit fc7ec76
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 9 deletions.
5 changes: 2 additions & 3 deletions src/Facades/LastModified.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,11 @@

namespace Abordage\LastModified\Facades;

use Illuminate\Support\Carbon;
use Illuminate\Support\Facades\Facade;

/**
* @method static void set(Carbon $updated_at)
* @method static Carbon|null get()
* @method static void set(\Illuminate\Support\Carbon $updated_at)
* @method static \Illuminate\Support\Carbon|null get()
*
* @see \Abordage\LastModified\LastModified
*/
Expand Down
4 changes: 2 additions & 2 deletions src/LastModified.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ class LastModified
{
private ?Carbon $updatedAt = null;

public function set(?Carbon $updated_at): void
public function set(?Carbon $updatedAt): void
{
$this->updatedAt = $updated_at;
$this->updatedAt = $updatedAt;
}

public function get(): ?Carbon
Expand Down
5 changes: 1 addition & 4 deletions src/LastModifiedServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,6 @@ public function boot(): void
public function register(): void
{
$this->mergeConfigFrom(__DIR__ . '/../config/last-modified.php', 'last-modified');

$this->app->singleton('laravel-last-modified', function () {
return new LastModified();
});
$this->app->singleton('laravel-last-modified', fn () => new LastModified());
}
}

0 comments on commit fc7ec76

Please sign in to comment.