Conditions | 2 |
Paths | 2 |
Total Lines | 12 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
46 | protected function validateSyntax_require_variable() |
||
47 | { |
||
48 | $amount = $this->getVariables()->countVariables(); |
||
49 | |||
50 | if($amount === 1) |
||
51 | { |
||
52 | return; |
||
53 | } |
||
54 | |||
55 | $this->validationResult->makeError( |
||
56 | t('Command has %1$s variables, %2$s expected.', $amount, 1), |
||
57 | self::VALIDATION_VARIABLE_COUNT_MISMATCH |
||
58 | ); |
||
71 |