Laravel version update
Laravel version update
This commit is contained in:
@@ -23,7 +23,9 @@ class Lastmod extends AbstractValidator
|
||||
* Regular expression to use when validating
|
||||
*
|
||||
*/
|
||||
// @codingStandardsIgnoreStart
|
||||
const LASTMOD_REGEX = '/^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])(T([0-1][0-9]|2[0-3])(:[0-5][0-9])(:[0-5][0-9])?(\\+|-)([0-1][0-9]|2[0-3]):[0-5][0-9])?$/';
|
||||
// @codingStandardsIgnoreEnd
|
||||
|
||||
/**
|
||||
* Validation key for not valid
|
||||
@@ -52,7 +54,7 @@ class Lastmod extends AbstractValidator
|
||||
*/
|
||||
public function isValid($value)
|
||||
{
|
||||
if (!is_string($value)) {
|
||||
if (! is_string($value)) {
|
||||
$this->error(self::INVALID);
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user