Completed
Push — develop ( 856d20...606eb3 )
by Abdelrahman
21:18
created

FormRequest::getValidatorInstance()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 8
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 2
eloc 4
c 1
b 0
f 0
nc 2
nop 0
dl 0
loc 8
rs 9.4285
1
<?php
2
3
/*
4
 * NOTICE OF LICENSE
5
 *
6
 * Part of the Rinvex Support Package.
7
 *
8
 * This source file is subject to The MIT License (MIT)
9
 * that is bundled with this package in the LICENSE file.
10
 *
11
 * Package: Rinvex Support Package
12
 * License: The MIT License (MIT)
13
 * Link:    https://rinvex.com
14
 */
15
16
namespace Rinvex\Support\Http\Requests;
17
18
use Illuminate\Foundation\Http\FormRequest as BaseFormRequest;
19
20
class FormRequest extends BaseFormRequest
21
{
22
    /**
23
     * {@inheritDoc}
24
     */
25
    protected function getValidatorInstance()
0 ignored issues
show
Documentation introduced by
The return type could not be reliably inferred; please add a @return annotation.

Our type inference engine in quite powerful, but sometimes the code does not provide enough clues to go by. In these cases we request you to add a @return annotation as described here.

Loading history...
26
    {
27
        if (method_exists($this, 'process')) {
28
            $this->replace($this->container->call([$this, 'process'], [$this->all()]));
29
        }
30
31
        return parent::getValidatorInstance();
32
    }
33
}
34