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