| Conditions | 3 |
| Paths | 3 |
| Total Lines | 9 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 45 | private function isParametersValid(array $input, array $args): bool |
||
| 46 | { |
||
| 47 | if (empty($args[0])) { |
||
| 48 | throw new RuleException("You must provide valid input field name."); |
||
| 49 | } |
||
| 50 | if (!isset($input[$args[0]])) { |
||
| 51 | throw new RuleException("Input data don't contain field `{$args[0]}`."); |
||
| 52 | } |
||
| 53 | return true; |
||
| 54 | } |
||
| 55 | } |