Laravel version update
Laravel version update
This commit is contained in:
@@ -66,7 +66,7 @@ class ValidatorChain implements
|
||||
*/
|
||||
public function getPluginManager()
|
||||
{
|
||||
if (!$this->plugins) {
|
||||
if (! $this->plugins) {
|
||||
$this->setPluginManager(new ValidatorPluginManager(new ServiceManager));
|
||||
}
|
||||
return $this->plugins;
|
||||
@@ -137,8 +137,11 @@ class ValidatorChain implements
|
||||
* @param int $priority
|
||||
* @return ValidatorChain Provides a fluent interface
|
||||
*/
|
||||
public function addValidator(ValidatorInterface $validator, $breakChainOnFailure = false, $priority = self::DEFAULT_PRIORITY)
|
||||
{
|
||||
public function addValidator(
|
||||
ValidatorInterface $validator,
|
||||
$breakChainOnFailure = false,
|
||||
$priority = self::DEFAULT_PRIORITY
|
||||
) {
|
||||
return $this->attach($validator, $breakChainOnFailure, $priority);
|
||||
}
|
||||
|
||||
@@ -156,7 +159,7 @@ class ValidatorChain implements
|
||||
{
|
||||
$priority = self::DEFAULT_PRIORITY;
|
||||
|
||||
if (!$this->validators->isEmpty()) {
|
||||
if (! $this->validators->isEmpty()) {
|
||||
$extractedNodes = $this->validators->toArray(PriorityQueue::EXTR_PRIORITY);
|
||||
rsort($extractedNodes, SORT_NUMERIC);
|
||||
$priority = $extractedNodes[0] + 1;
|
||||
|
Reference in New Issue
Block a user