Laravel version update
Laravel version update
This commit is contained in:
@@ -32,13 +32,13 @@ class Hex extends AbstractValidator
|
||||
*/
|
||||
public function isValid($value)
|
||||
{
|
||||
if (!is_string($value) && !is_int($value)) {
|
||||
if (! is_string($value) && ! is_int($value)) {
|
||||
$this->error(self::INVALID);
|
||||
return false;
|
||||
}
|
||||
|
||||
$this->setValue($value);
|
||||
if (!ctype_xdigit((string) $value)) {
|
||||
if (! ctype_xdigit((string) $value)) {
|
||||
$this->error(self::NOT_HEX);
|
||||
return false;
|
||||
}
|
||||
|
Reference in New Issue
Block a user