@@ -34,9 +34,9 @@ discard block |
||
| 34 | 34 | { |
| 35 | 35 | $keywords = $this->params->getInfo()->getKeywords(); |
| 36 | 36 | |
| 37 | - foreach($keywords as $keyword) |
|
| 37 | + foreach ($keywords as $keyword) |
|
| 38 | 38 | { |
| 39 | - if($keyword->isURLEncoded()) |
|
| 39 | + if ($keyword->isURLEncoded()) |
|
| 40 | 40 | { |
| 41 | 41 | $this->urlencodeToken = $keyword; |
| 42 | 42 | |
@@ -47,7 +47,7 @@ discard block |
||
| 47 | 47 | } |
| 48 | 48 | } |
| 49 | 49 | |
| 50 | - abstract public function setURLEncoding(bool $encoding=true); |
|
| 50 | + abstract public function setURLEncoding(bool $encoding = true); |
|
| 51 | 51 | |
| 52 | 52 | public function getURLEncodeToken() : ?Mailcode_Parser_Statement_Tokenizer_Token_Keyword |
| 53 | 53 | { |
@@ -31,10 +31,10 @@ discard block |
||
| 31 | 31 | const VALIDATION_INVALID_DECIMAL_SEPARATOR = 72209; |
| 32 | 32 | const VALIDATION_SEPARATORS_SAME_CHARACTER = 72210; |
| 33 | 33 | |
| 34 | - /** |
|
| 35 | - * The default number format string. |
|
| 36 | - * @var string |
|
| 37 | - */ |
|
| 34 | + /** |
|
| 35 | + * The default number format string. |
|
| 36 | + * @var string |
|
| 37 | + */ |
|
| 38 | 38 | private $formatString = Mailcode_Number_Info::DEFAULT_FORMAT; |
| 39 | 39 | |
| 40 | 40 | public function getName() : string |
@@ -58,16 +58,16 @@ discard block |
||
| 58 | 58 | |
| 59 | 59 | protected function validateSyntax_check_format() : void |
| 60 | 60 | { |
| 61 | - $tokens = $this->params->getInfo()->getStringLiterals(); |
|
| 61 | + $tokens = $this->params->getInfo()->getStringLiterals(); |
|
| 62 | 62 | |
| 63 | - // no format specified? Use the default one. |
|
| 64 | - if(empty($tokens)) |
|
| 65 | - { |
|
| 66 | - return; |
|
| 67 | - } |
|
| 63 | + // no format specified? Use the default one. |
|
| 64 | + if(empty($tokens)) |
|
| 65 | + { |
|
| 66 | + return; |
|
| 67 | + } |
|
| 68 | 68 | |
| 69 | - $token = array_pop($tokens); |
|
| 70 | - $this->parseFormatString($token->getText()); |
|
| 69 | + $token = array_pop($tokens); |
|
| 70 | + $this->parseFormatString($token->getText()); |
|
| 71 | 71 | } |
| 72 | 72 | |
| 73 | 73 | private function parseFormatString(string $format) : void |
@@ -86,11 +86,11 @@ discard block |
||
| 86 | 86 | ); |
| 87 | 87 | } |
| 88 | 88 | |
| 89 | - /** |
|
| 90 | - * Retrieves the format string used to format the number. |
|
| 91 | - * |
|
| 92 | - * @return string |
|
| 93 | - */ |
|
| 89 | + /** |
|
| 90 | + * Retrieves the format string used to format the number. |
|
| 91 | + * |
|
| 92 | + * @return string |
|
| 93 | + */ |
|
| 94 | 94 | public function getFormatString() : string |
| 95 | 95 | { |
| 96 | 96 | return $this->formatString; |