@@ -43,44 +43,44 @@ discard block |
||
| 43 | 43 | |
| 44 | 44 | const META_URL_ENCODING = 'url_encoding'; |
| 45 | 45 | |
| 46 | - /** |
|
| 47 | - * @var string |
|
| 48 | - */ |
|
| 46 | + /** |
|
| 47 | + * @var string |
|
| 48 | + */ |
|
| 49 | 49 | protected $type = ''; |
| 50 | 50 | |
| 51 | - /** |
|
| 52 | - * @var string |
|
| 53 | - */ |
|
| 51 | + /** |
|
| 52 | + * @var string |
|
| 53 | + */ |
|
| 54 | 54 | protected $paramsString = ''; |
| 55 | 55 | |
| 56 | - /** |
|
| 57 | - * @var string |
|
| 58 | - */ |
|
| 56 | + /** |
|
| 57 | + * @var string |
|
| 58 | + */ |
|
| 59 | 59 | protected $matchedText = ''; |
| 60 | 60 | |
| 61 | - /** |
|
| 62 | - * @var string |
|
| 63 | - */ |
|
| 61 | + /** |
|
| 62 | + * @var string |
|
| 63 | + */ |
|
| 64 | 64 | protected $hash = ''; |
| 65 | 65 | |
| 66 | - /** |
|
| 67 | - * @var OperationResult |
|
| 68 | - */ |
|
| 66 | + /** |
|
| 67 | + * @var OperationResult |
|
| 68 | + */ |
|
| 69 | 69 | protected $validationResult = null; |
| 70 | 70 | |
| 71 | - /** |
|
| 72 | - * @var Mailcode |
|
| 73 | - */ |
|
| 71 | + /** |
|
| 72 | + * @var Mailcode |
|
| 73 | + */ |
|
| 74 | 74 | protected $mailcode; |
| 75 | 75 | |
| 76 | - /** |
|
| 77 | - * @var Mailcode_Parser_Statement |
|
| 78 | - */ |
|
| 76 | + /** |
|
| 77 | + * @var Mailcode_Parser_Statement |
|
| 78 | + */ |
|
| 79 | 79 | protected $params; |
| 80 | 80 | |
| 81 | - /** |
|
| 82 | - * @var string[] |
|
| 83 | - */ |
|
| 81 | + /** |
|
| 82 | + * @var string[] |
|
| 83 | + */ |
|
| 84 | 84 | protected $validations = array( |
| 85 | 85 | Mailcode_Interfaces_Commands_Validation_EmptyParams::VALIDATION_NAME_EMPTY_PARAMS, |
| 86 | 86 | Mailcode_Interfaces_Commands_Validation_ParamKeywords::VALIDATION_NAME_KEYWORDS, |
@@ -89,24 +89,24 @@ discard block |
||
| 89 | 89 | Mailcode_Interfaces_Commands_Validation_TypeUnsupported::VALIDATION_NAME_TYPE_UNSUPPORTED |
| 90 | 90 | ); |
| 91 | 91 | |
| 92 | - /** |
|
| 93 | - * @var string |
|
| 94 | - */ |
|
| 92 | + /** |
|
| 93 | + * @var string |
|
| 94 | + */ |
|
| 95 | 95 | protected $comment = ''; |
| 96 | 96 | |
| 97 | - /** |
|
| 98 | - * @var Mailcode_Commands_LogicKeywords|NULL |
|
| 99 | - */ |
|
| 97 | + /** |
|
| 98 | + * @var Mailcode_Commands_LogicKeywords|NULL |
|
| 99 | + */ |
|
| 100 | 100 | protected $logicKeywords; |
| 101 | 101 | |
| 102 | - /** |
|
| 103 | - * @var Mailcode_Parser_Statement_Validator |
|
| 104 | - */ |
|
| 102 | + /** |
|
| 103 | + * @var Mailcode_Parser_Statement_Validator |
|
| 104 | + */ |
|
| 105 | 105 | protected $validator; |
| 106 | 106 | |
| 107 | - /** |
|
| 108 | - * @var boolean |
|
| 109 | - */ |
|
| 107 | + /** |
|
| 108 | + * @var boolean |
|
| 109 | + */ |
|
| 110 | 110 | private $validated = false; |
| 111 | 111 | |
| 112 | 112 | /** |
@@ -141,13 +141,13 @@ discard block |
||
| 141 | 141 | |
| 142 | 142 | } |
| 143 | 143 | |
| 144 | - /** |
|
| 145 | - * Sets the command's parent opening command, if any. |
|
| 146 | - * NOTE: This is set automatically by the parser, and |
|
| 147 | - * should not be called manually. |
|
| 148 | - * |
|
| 149 | - * @param Mailcode_Commands_Command $command |
|
| 150 | - */ |
|
| 144 | + /** |
|
| 145 | + * Sets the command's parent opening command, if any. |
|
| 146 | + * NOTE: This is set automatically by the parser, and |
|
| 147 | + * should not be called manually. |
|
| 148 | + * |
|
| 149 | + * @param Mailcode_Commands_Command $command |
|
| 150 | + */ |
|
| 151 | 151 | public function setParent(Mailcode_Commands_Command $command) : void |
| 152 | 152 | { |
| 153 | 153 | $this->parent = $command; |
@@ -289,9 +289,9 @@ discard block |
||
| 289 | 289 | return $this->validationResult->isValid(); |
| 290 | 290 | } |
| 291 | 291 | |
| 292 | - /** |
|
| 293 | - * @return string[] |
|
| 294 | - */ |
|
| 292 | + /** |
|
| 293 | + * @return string[] |
|
| 294 | + */ |
|
| 295 | 295 | abstract protected function getValidations() : array; |
| 296 | 296 | |
| 297 | 297 | protected function _validateNesting() : void |
@@ -21,8 +21,8 @@ discard block |
||
| 21 | 21 | abstract class Mailcode_Translator_Syntax_ApacheVelocity extends Mailcode_Translator_Command |
| 22 | 22 | { |
| 23 | 23 | /** |
| 24 | - * @var string[] |
|
| 25 | - */ |
|
| 24 | + * @var string[] |
|
| 25 | + */ |
|
| 26 | 26 | private $regexSpecialChars = array( |
| 27 | 27 | '?', |
| 28 | 28 | '.', |
@@ -47,15 +47,15 @@ discard block |
||
| 47 | 47 | } |
| 48 | 48 | |
| 49 | 49 | /** |
| 50 | - * Filters the string for use in an Apache Velocity (Java) |
|
| 51 | - * regex string: escapes all special characters. |
|
| 52 | - * |
|
| 53 | - * Velocity does its own escaping, so no need to escape special |
|
| 54 | - * characters as if they were a javascript string. |
|
| 55 | - * |
|
| 56 | - * @param string $string |
|
| 57 | - * @return string |
|
| 58 | - */ |
|
| 50 | + * Filters the string for use in an Apache Velocity (Java) |
|
| 51 | + * regex string: escapes all special characters. |
|
| 52 | + * |
|
| 53 | + * Velocity does its own escaping, so no need to escape special |
|
| 54 | + * characters as if they were a javascript string. |
|
| 55 | + * |
|
| 56 | + * @param string $string |
|
| 57 | + * @return string |
|
| 58 | + */ |
|
| 59 | 59 | public function filterRegexString(string $string) : string |
| 60 | 60 | { |
| 61 | 61 | // Special case: previously escaped quotes. |