Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
Laratipsofficial authored and github-actions[bot] committed May 30, 2023
1 parent 5a02037 commit 5b56311
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/Components/Flatpickr.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ private function mode()

private function value(): string|int|array|null
{
if (!$this->value) {
if (! $this->value) {
return null;
}

Expand Down Expand Up @@ -159,7 +159,7 @@ private function firstDayOfWeekConfig()

private function time24hr(): ?bool
{
if (!$this->showTime) {
if (! $this->showTime) {
return null;
}

Expand All @@ -178,13 +178,13 @@ public function defaultClearer()

private function throwValueExceptions()
{
if (!$this->value) {
if (! $this->value) {
return;
}

switch ($this->mode()) {
case 'multiple':
if (!is_array($this->value)) {
if (! is_array($this->value)) {
throw new \Exception("The value must be array of dates or Carbon instances when multiple is set.");
}

Expand All @@ -199,11 +199,11 @@ private function throwValueExceptions()
return;
}

if (!is_string($this->value)) {
if (! is_string($this->value)) {
throw new \Exception("The value must be string when range is set.");
}

if (!Str::contains($this->value, ' to ')) {
if (! Str::contains($this->value, ' to ')) {
throw new \Exception("The two dates must be string and separated by ' to ' in between.");
}

Expand Down

0 comments on commit 5b56311

Please sign in to comment.