Improve variable name

This commit is contained in:
Marcus Moore
2023-08-02 16:06:59 -07:00
parent 269414e4f2
commit 6400034435
3 changed files with 19 additions and 19 deletions
+4 -4
View File
@@ -6,20 +6,20 @@ use Livewire\Component;
class CategoryEditForm extends Component
{
public $checkinEmail;
public $defaultEulaText;
public $eulaText;
public $requireAcceptance;
public $sendCheckInEmail;
public $useDefaultEula;
public function mount()
{
if ($this->eulaText || $this->useDefaultEula) {
$this->checkinEmail = true;
$this->sendCheckInEmail = true;
}
}
@@ -31,7 +31,7 @@ class CategoryEditForm extends Component
public function updated($property, $value)
{
if (in_array($property, ['eulaText', 'useDefaultEula']) && ($this->eulaText || $this->useDefaultEula)) {
$this->checkinEmail = (bool)$value;
$this->sendCheckInEmail = (bool)$value;
}
}