Use new code style
This commit is contained in:
@ -46,7 +46,5 @@ class Domain extends Rule {
|
||||
public function check($value) : bool { // phpcs:ignore
|
||||
|
||||
return (bool) preg_match('/^(?!\-)(?:(?:[a-zA-Z\d][a-zA-Z\d\-]{0,61})?[a-zA-Z\d]\.){1,126}(?!\d+)[a-zA-Z\d]{1,63}$/', (string) $value);
|
||||
|
||||
} // end check;
|
||||
|
||||
} // end class Domain;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user