forked from eatvio/eatvio-infra
make static-analyse code
This commit is contained in:
@@ -3,23 +3,25 @@
|
||||
namespace App\Livewire\Chat;
|
||||
|
||||
use Livewire\Component;
|
||||
use Illuminate\View\View;
|
||||
use Illuminate\Support\Collection;
|
||||
|
||||
class LastUsers extends Component
|
||||
{
|
||||
public $lastChatUsers;
|
||||
public Collection $lastChatUsers;
|
||||
|
||||
public $activeUserId;
|
||||
public int|null $activeUserId = null;
|
||||
|
||||
public $curUserId;
|
||||
public int $curUserId;
|
||||
|
||||
public $chanId;
|
||||
public string $chanId;
|
||||
|
||||
public function render()
|
||||
public function render(): View
|
||||
{
|
||||
return view('livewire.chat.last-users');
|
||||
}
|
||||
|
||||
public function switchTo($id)
|
||||
public function switchTo(int $id): void
|
||||
{
|
||||
$this->activeUserId = $id;
|
||||
$this->dispatch('updateRecipientId', id: $id)->to('chat.message-window');
|
||||
|
||||
Reference in New Issue
Block a user