There was an error while loading. Please reload this page.
1 parent f2cac74 commit a054d25Copy full SHA for a054d25
1 file changed
src/Utility.php
@@ -368,19 +368,19 @@ public function isAlphaNumeric(): bool
368
}
369
370
/**
371
- * Check if the string is empty
+ * Is the string in a valid email format
372
*/
373
- public function isEmpty(): bool
+ public function isEmail(): bool
374
{
375
- return $this->string === '';
+ return filter_var($this->string, FILTER_VALIDATE_EMAIL) !== false;
376
377
378
379
- * Is the string in a valid email format
+ * Check if the string is empty
380
381
- public function isEmail(): bool
+ public function isEmpty(): bool
382
383
- return filter_var($this->string, FILTER_VALIDATE_EMAIL) !== false;
+ return $this->string === '';
384
385
386
0 commit comments