Laravel version update
Laravel version update
This commit is contained in:
@@ -85,7 +85,7 @@ class Explode extends AbstractValidator implements ValidatorPluginManagerAwareIn
|
||||
*/
|
||||
public function getValidatorPluginManager()
|
||||
{
|
||||
if (!$this->pluginManager) {
|
||||
if (! $this->pluginManager) {
|
||||
$this->setValidatorPluginManager(new ValidatorPluginManager(new ServiceManager));
|
||||
}
|
||||
|
||||
@@ -102,7 +102,7 @@ class Explode extends AbstractValidator implements ValidatorPluginManagerAwareIn
|
||||
public function setValidator($validator)
|
||||
{
|
||||
if (is_array($validator)) {
|
||||
if (!isset($validator['name'])) {
|
||||
if (! isset($validator['name'])) {
|
||||
throw new Exception\RuntimeException(
|
||||
'Invalid validator specification provided; does not include "name" key'
|
||||
);
|
||||
@@ -112,7 +112,7 @@ class Explode extends AbstractValidator implements ValidatorPluginManagerAwareIn
|
||||
$validator = $this->getValidatorPluginManager()->get($name, $options);
|
||||
}
|
||||
|
||||
if (!$validator instanceof ValidatorInterface) {
|
||||
if (! $validator instanceof ValidatorInterface) {
|
||||
throw new Exception\RuntimeException(
|
||||
'Invalid validator given'
|
||||
);
|
||||
@@ -189,7 +189,7 @@ class Explode extends AbstractValidator implements ValidatorPluginManagerAwareIn
|
||||
|
||||
$validator = $this->getValidator();
|
||||
|
||||
if (!$validator) {
|
||||
if (! $validator) {
|
||||
throw new Exception\RuntimeException(sprintf(
|
||||
'%s expects a validator to be set; none given',
|
||||
__METHOD__
|
||||
@@ -197,7 +197,7 @@ class Explode extends AbstractValidator implements ValidatorPluginManagerAwareIn
|
||||
}
|
||||
|
||||
foreach ($values as $value) {
|
||||
if (!$validator->isValid($value, $context)) {
|
||||
if (! $validator->isValid($value, $context)) {
|
||||
$this->abstractOptions['messages'][] = $validator->getMessages();
|
||||
|
||||
if ($this->isBreakOnFirstFailure()) {
|
||||
|
Reference in New Issue
Block a user