forked from eatvio/eatvio-infra
make static-analyse code
This commit is contained in:
@@ -11,75 +11,75 @@ class ProfileEditDetailzForm extends Form
|
||||
public ?UserDetailz $userDetailz;
|
||||
|
||||
#[Rule('required|string|min:3')]
|
||||
public $first_name;
|
||||
public string $first_name;
|
||||
|
||||
#[Rule('required|string|min:3')]
|
||||
public $last_name;
|
||||
public string $last_name;
|
||||
|
||||
#[Rule('required|email')]
|
||||
public $email;
|
||||
public string $email;
|
||||
|
||||
#[Rule('required|in:male,female')]
|
||||
public $gender;
|
||||
public string $gender;
|
||||
|
||||
#[Rule('required|date')]
|
||||
public $birthdate;
|
||||
public string $birthdate;
|
||||
|
||||
#[Rule('required|string|min:3')]
|
||||
public $country;
|
||||
public string $country;
|
||||
|
||||
#[Rule('required|string|min:3')]
|
||||
public $city;
|
||||
public string $city;
|
||||
|
||||
#[Rule('required|string|min:3')]
|
||||
public $lang;
|
||||
public string $lang;
|
||||
|
||||
#[Rule('required|integer|min:35')]
|
||||
public $weight;
|
||||
public int $weight;
|
||||
|
||||
#[Rule('required|integer|min:35')]
|
||||
public $height;
|
||||
public int $height;
|
||||
|
||||
#[Rule('required|integer|min:20')]
|
||||
public $chest_circumference;
|
||||
public int $chest_circumference;
|
||||
|
||||
#[Rule('required|integer|min:20')]
|
||||
public $waist_circumference;
|
||||
public int $waist_circumference;
|
||||
|
||||
#[Rule('required|integer|min:20')]
|
||||
public $hip_circumference;
|
||||
public int $hip_circumference;
|
||||
|
||||
#[Rule('required|integer|min:20')]
|
||||
public $blood_pressure_up;
|
||||
public int $blood_pressure_up;
|
||||
|
||||
#[Rule('required|integer|min:20')]
|
||||
public $blood_pressure_down;
|
||||
public int $blood_pressure_down;
|
||||
|
||||
#[Rule('required|boolean')]
|
||||
public $has_hypo;
|
||||
public int|bool $has_hypo;
|
||||
|
||||
#[Rule('required|boolean')]
|
||||
public $has_hyper;
|
||||
public int|bool $has_hyper;
|
||||
|
||||
#[Rule('nullable')]
|
||||
public $about_alergy = 'nullable';
|
||||
public string $about_alergy = 'nullable';
|
||||
|
||||
#[Rule('nullable')]
|
||||
public $about_taking_pils = 'nullable';
|
||||
public string $about_taking_pils = 'nullable';
|
||||
|
||||
#[Rule('nullable')]
|
||||
public $about_sport_hobbies = 'nullable';
|
||||
public string $about_sport_hobbies = 'nullable';
|
||||
|
||||
#[Rule('nullable')]
|
||||
public $favorite_foods = 'nullable';
|
||||
public string $favorite_foods = 'nullable';
|
||||
|
||||
#[Rule('nullable')]
|
||||
public $unfavorite_foods = 'nullable';
|
||||
public string $unfavorite_foods = 'nullable';
|
||||
|
||||
#[Rule('nullable')]
|
||||
public $additional_info = 'nullable';
|
||||
public string $additional_info = 'nullable';
|
||||
|
||||
public function setDetailz(UserDetailz $detailz)
|
||||
public function setDetailz(UserDetailz $detailz): void
|
||||
{
|
||||
$this->userDetailz = $detailz;
|
||||
$this->first_name = $detailz->first_name;
|
||||
@@ -107,7 +107,7 @@ class ProfileEditDetailzForm extends Form
|
||||
$this->additional_info = $detailz->additional_info;
|
||||
}
|
||||
|
||||
public function update()
|
||||
public function update(): void
|
||||
{
|
||||
$this->userDetailz->update(
|
||||
$this->except(['userDetailz', 'email'])
|
||||
|
||||
Reference in New Issue
Block a user