make code style phpinsight

This commit is contained in:
2024-01-10 14:50:30 +03:00
parent fb3670a549
commit b9686e4232
12 changed files with 42 additions and 47 deletions

View File

@@ -3,18 +3,13 @@
namespace App\Livewire\BlogPost;
use App\Models\BlogPost;
use Livewire\Component;
use Illuminate\View\View;
use Livewire\Component;
class LikeCount extends Component
{
public BlogPost $blogPost;
protected function getListeners(): array
{
return ['liked' => '$refresh'];
}
public function mount(BlogPost $blogPost): void
{
$this->blogPost = $blogPost;
@@ -27,4 +22,9 @@ class LikeCount extends Component
['count' => $this->blogPost->likes_count]
);
}
protected function getListeners(): array
{
return ['liked' => '$refresh'];
}
}