Conditions | 3 |
Paths | 3 |
Total Lines | 25 |
Code Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
34 | protected function validateSyntax_params_parse() : void |
||
35 | { |
||
36 | if(!$this->requiresParameters()) |
||
37 | { |
||
38 | return; |
||
39 | } |
||
40 | |||
41 | $this->params = $this->mailcode->getParser()->createStatement( |
||
42 | $this->paramsString, |
||
43 | $this->hasFreeformParameters() |
||
|
|||
44 | ); |
||
45 | |||
46 | if(!$this->params->isValid()) |
||
47 | { |
||
48 | $error = $this->params->getValidationResult(); |
||
49 | |||
50 | $this->validationResult->makeError( |
||
51 | t('Invalid parameters:').' '.$error->getErrorMessage(), |
||
52 | Mailcode_Commands_Command::VALIDATION_INVALID_PARAMS_STATEMENT |
||
53 | ); |
||
54 | |||
55 | return; |
||
56 | } |
||
57 | |||
58 | $this->validator = new Mailcode_Parser_Statement_Validator($this->params); |
||
59 | } |
||
61 |