Skip to content

Commit a054d25

Browse files
committed
style(src): fix pint formatting
1 parent f2cac74 commit a054d25

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

src/Utility.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -368,19 +368,19 @@ public function isAlphaNumeric(): bool
368368
}
369369

370370
/**
371-
* Check if the string is empty
371+
* Is the string in a valid email format
372372
*/
373-
public function isEmpty(): bool
373+
public function isEmail(): bool
374374
{
375-
return $this->string === '';
375+
return filter_var($this->string, FILTER_VALIDATE_EMAIL) !== false;
376376
}
377377

378378
/**
379-
* Is the string in a valid email format
379+
* Check if the string is empty
380380
*/
381-
public function isEmail(): bool
381+
public function isEmpty(): bool
382382
{
383-
return filter_var($this->string, FILTER_VALIDATE_EMAIL) !== false;
383+
return $this->string === '';
384384
}
385385

386386
/**

0 commit comments

Comments
 (0)