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

@@ -157,8 +157,8 @@ class Identical extends AbstractValidator
$token = $this->getToken();
if (!$this->getLiteral() && $context !== null) {
if (!is_array($context) && !($context instanceof ArrayAccess)) {
if (! $this->getLiteral() && $context !== null) {
if (! is_array($context) && ! ($context instanceof ArrayAccess)) {
throw new Exception\InvalidArgumentException(sprintf(
'Context passed to %s must be array, ArrayObject or null; received "%s"',
__METHOD__,
@@ -169,7 +169,7 @@ class Identical extends AbstractValidator
if (is_array($token)) {
while (is_array($token)) {
$key = key($token);
if (!isset($context[$key])) {
if (! isset($context[$key])) {
break;
}
$context = $context[$key];
@@ -179,7 +179,7 @@ class Identical extends AbstractValidator
// if $token is an array it means the above loop didn't went all the way down to the leaf,
// so the $token structure doesn't match the $context structure
if (is_array($token) || !isset($context[$token])) {
if (is_array($token) || ! isset($context[$token])) {
$token = $this->getToken();
} else {
$token = $context[$token];
@@ -192,7 +192,7 @@ class Identical extends AbstractValidator
}
$strict = $this->getStrict();
if (($strict && ($value !== $token)) || (!$strict && ($value != $token))) {
if (($strict && ($value !== $token)) || (! $strict && ($value != $token))) {
$this->error(self::NOT_SAME);
return false;
}