@@ -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 | |
@@ -51,7 +51,7 @@ discard block |
||
| 51 | 51 | * @param bool $encoding |
| 52 | 52 | * @return $this |
| 53 | 53 | */ |
| 54 | - abstract public function setURLEncoding(bool $encoding=true); |
|
| 54 | + abstract public function setURLEncoding(bool $encoding = true); |
|
| 55 | 55 | |
| 56 | 56 | public function getURLEncodeToken() : ?Mailcode_Parser_Statement_Tokenizer_Token_Keyword |
| 57 | 57 | { |
@@ -24,9 +24,9 @@ discard block |
||
| 24 | 24 | */ |
| 25 | 25 | trait Mailcode_Traits_Commands_Validation_Variable |
| 26 | 26 | { |
| 27 | - /** |
|
| 28 | - * @var Mailcode_Parser_Statement_Tokenizer_Token_Variable|NULL |
|
| 29 | - */ |
|
| 27 | + /** |
|
| 28 | + * @var Mailcode_Parser_Statement_Tokenizer_Token_Variable|NULL |
|
| 29 | + */ |
|
| 30 | 30 | protected $variableToken; |
| 31 | 31 | |
| 32 | 32 | protected function validateSyntax_variable() : void |
@@ -60,11 +60,11 @@ discard block |
||
| 60 | 60 | ); |
| 61 | 61 | } |
| 62 | 62 | |
| 63 | - /** |
|
| 64 | - * Retrieves the variable being compared. |
|
| 65 | - * |
|
| 66 | - * @return Mailcode_Variables_Variable |
|
| 67 | - */ |
|
| 63 | + /** |
|
| 64 | + * Retrieves the variable being compared. |
|
| 65 | + * |
|
| 66 | + * @return Mailcode_Variables_Variable |
|
| 67 | + */ |
|
| 68 | 68 | public function getVariable() : Mailcode_Variables_Variable |
| 69 | 69 | { |
| 70 | 70 | if(isset($this->variableToken)) |
@@ -33,7 +33,7 @@ discard block |
||
| 33 | 33 | { |
| 34 | 34 | $var = $this->validator->createVariable(); |
| 35 | 35 | |
| 36 | - if($var->isValid()) |
|
| 36 | + if ($var->isValid()) |
|
| 37 | 37 | { |
| 38 | 38 | $this->variableToken = $var->getToken(); |
| 39 | 39 | } |
@@ -48,7 +48,7 @@ discard block |
||
| 48 | 48 | |
| 49 | 49 | public function getVariableToken() : Mailcode_Parser_Statement_Tokenizer_Token_Variable |
| 50 | 50 | { |
| 51 | - if(isset($this->variableToken)) |
|
| 51 | + if (isset($this->variableToken)) |
|
| 52 | 52 | { |
| 53 | 53 | return $this->variableToken; |
| 54 | 54 | } |
@@ -67,7 +67,7 @@ discard block |
||
| 67 | 67 | */ |
| 68 | 68 | public function getVariable() : Mailcode_Variables_Variable |
| 69 | 69 | { |
| 70 | - if(isset($this->variableToken)) |
|
| 70 | + if (isset($this->variableToken)) |
|
| 71 | 71 | { |
| 72 | 72 | return $this->variableToken->getVariable(); |
| 73 | 73 | } |
@@ -115,12 +115,12 @@ discard block |
||
| 115 | 115 | { |
| 116 | 116 | $parent = $subject->getParent(); |
| 117 | 117 | |
| 118 | - if($parent === null) |
|
| 118 | + if ($parent === null) |
|
| 119 | 119 | { |
| 120 | 120 | return null; |
| 121 | 121 | } |
| 122 | 122 | |
| 123 | - if($parent instanceof Mailcode_Commands_Command_For) |
|
| 123 | + if ($parent instanceof Mailcode_Commands_Command_For) |
|
| 124 | 124 | { |
| 125 | 125 | return $parent; |
| 126 | 126 | } |
@@ -33,9 +33,9 @@ discard block |
||
| 33 | 33 | { |
| 34 | 34 | $keywords = $this->params->getInfo()->getKeywords(); |
| 35 | 35 | |
| 36 | - foreach($keywords as $keyword) |
|
| 36 | + foreach ($keywords as $keyword) |
|
| 37 | 37 | { |
| 38 | - if($keyword->isURLDecode()) |
|
| 38 | + if ($keyword->isURLDecode()) |
|
| 39 | 39 | { |
| 40 | 40 | $this->urldecodeToken = $keyword; |
| 41 | 41 | break; |
@@ -43,7 +43,7 @@ discard block |
||
| 43 | 43 | } |
| 44 | 44 | } |
| 45 | 45 | |
| 46 | - abstract public function setURLDecoding(bool $decode=true); |
|
| 46 | + abstract public function setURLDecoding(bool $decode = true); |
|
| 47 | 47 | |
| 48 | 48 | public function getURLDecodeToken() : ?Mailcode_Parser_Statement_Tokenizer_Token_Keyword |
| 49 | 49 | { |