forked from eatvio/eatvio-infra
make static analyse part
This commit is contained in:
@@ -8,28 +8,29 @@ use App\Models\CircumferenceMeasure;
|
||||
use App\Models\User;
|
||||
use Illuminate\Support\Facades\Auth;
|
||||
use LivewireUI\Modal\ModalComponent;
|
||||
use Illuminate\View\View;
|
||||
|
||||
class AddCircumference extends ModalComponent
|
||||
{
|
||||
public User $user;
|
||||
|
||||
public $chest_circumference = 0;
|
||||
public int $chest_circumference = 0;
|
||||
|
||||
public $waist_circumference = 0;
|
||||
public int $waist_circumference = 0;
|
||||
|
||||
public $hip_circumference = 0;
|
||||
public int $hip_circumference = 0;
|
||||
|
||||
public function mount()
|
||||
public function mount(): void
|
||||
{
|
||||
$this->user = Auth::user();
|
||||
}
|
||||
|
||||
public function render()
|
||||
public function render(): View
|
||||
{
|
||||
return view('livewire.user.add-circumference');
|
||||
}
|
||||
|
||||
public function add()
|
||||
public function add(): void
|
||||
{
|
||||
$newMeasure = CircumferenceMeasure::create([
|
||||
'user_id' => $this->user->id,
|
||||
|
||||
Reference in New Issue
Block a user