Laravel version update

Laravel version update
This commit is contained in:
Manish Verma
2018-08-06 18:48:58 +05:30
parent d143048413
commit 126fbb0255
13678 changed files with 1031482 additions and 778530 deletions

View File

@@ -65,7 +65,7 @@ class Date extends AbstractValidator
{
if ($options instanceof Traversable) {
$options = iterator_to_array($options);
} elseif (!is_array($options)) {
} elseif (! is_array($options)) {
$options = func_get_args();
$temp['format'] = array_shift($options);
$options = $temp;
@@ -110,7 +110,7 @@ class Date extends AbstractValidator
{
$this->setValue($value);
if (!$this->convertToDateTime($value)) {
if (! $this->convertToDateTime($value)) {
$this->error(self::INVALID_DATE);
return false;
}
@@ -132,7 +132,7 @@ class Date extends AbstractValidator
}
$type = gettype($param);
if (!in_array($type, ['string', 'integer', 'double', 'array'])) {
if (! in_array($type, ['string', 'integer', 'double', 'array'])) {
if ($addErrors) {
$this->error(self::INVALID);
}