Conditions | 5 |
Paths | 5 |
Total Lines | 14 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
50 | private function validatorPasses($filters, $name) |
||
51 | { |
||
52 | foreach ($filters as $func => $arg) { |
||
53 | if (method_exists($this->validator, $func) == 1) { |
||
54 | if (gettype($arg) === 'boolean') { |
||
55 | if ($arg) { |
||
56 | $this->validator->input($name)->$func(); |
||
57 | } |
||
58 | } else { |
||
59 | $this->validator->input($name)->$func($arg); |
||
60 | } |
||
61 | } |
||
62 | } |
||
63 | return $this->validator->passes(); |
||
64 | } |
||
66 |