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

@@ -107,22 +107,22 @@ abstract class AbstractDb extends AbstractValidator implements AdapterAwareInter
$temp['field'] = array_shift($options);
if (!empty($options)) {
if (! empty($options)) {
$temp['exclude'] = array_shift($options);
}
if (!empty($options)) {
if (! empty($options)) {
$temp['adapter'] = array_shift($options);
}
$options = $temp;
}
if (!array_key_exists('table', $options) && !array_key_exists('schema', $options)) {
if (! array_key_exists('table', $options) && ! array_key_exists('schema', $options)) {
throw new Exception\InvalidArgumentException('Table or Schema option missing!');
}
if (!array_key_exists('field', $options)) {
if (! array_key_exists('field', $options)) {
throw new Exception\InvalidArgumentException('Field option missing!');
}

View File

@@ -29,7 +29,7 @@ class RecordExists extends AbstractDb
$this->setValue($value);
$result = $this->query($value);
if (!$result) {
if (! $result) {
$valid = false;
$this->error(self::ERROR_NO_RECORD_FOUND);
}