Conditions | 2 |
Paths | 2 |
Total Lines | 15 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
38 | protected function validateSyntax_variable() : void |
||
39 | { |
||
40 | $info = $this->params->getInfo(); |
||
41 | |||
42 | $variable = $info->getVariableByIndex(0); |
||
43 | |||
44 | if($variable !== null) |
||
45 | { |
||
46 | $this->variableToken = $variable; |
||
47 | return; |
||
48 | } |
||
49 | |||
50 | $this->validationResult->makeError( |
||
51 | t('No variable specified in the command.'), |
||
52 | Mailcode_Commands_IfBase::VALIDATION_VARIABLE_MISSING |
||
53 | ); |
||
75 |