@@ -20,19 +20,19 @@ discard block |
||
20 | 20 | */ |
21 | 21 | abstract class Mailcode_Parser_Statement_Tokenizer_Token implements Mailcode_Parser_Statement_Tokenizer_TypeInterface |
22 | 22 | { |
23 | - /** |
|
24 | - * @var string |
|
25 | - */ |
|
23 | + /** |
|
24 | + * @var string |
|
25 | + */ |
|
26 | 26 | protected $tokenID; |
27 | 27 | |
28 | - /** |
|
29 | - * @var string |
|
30 | - */ |
|
28 | + /** |
|
29 | + * @var string |
|
30 | + */ |
|
31 | 31 | protected $matchedText; |
32 | 32 | |
33 | - /** |
|
34 | - * @var mixed |
|
35 | - */ |
|
33 | + /** |
|
34 | + * @var mixed |
|
35 | + */ |
|
36 | 36 | protected $subject; |
37 | 37 | |
38 | 38 | /** |
@@ -62,20 +62,20 @@ discard block |
||
62 | 62 | return $this->sourceCommand; |
63 | 63 | } |
64 | 64 | |
65 | - /** |
|
66 | - * The ID of the type. i.e. the class name ("Keyword", "StringLiteral"). |
|
67 | - * @return string |
|
68 | - */ |
|
65 | + /** |
|
66 | + * The ID of the type. i.e. the class name ("Keyword", "StringLiteral"). |
|
67 | + * @return string |
|
68 | + */ |
|
69 | 69 | public function getTypeID() : string |
70 | 70 | { |
71 | 71 | $parts = explode('_', get_class($this)); |
72 | 72 | return array_pop($parts); |
73 | 73 | } |
74 | 74 | |
75 | - /** |
|
76 | - * Retrieves a unique ID of the token. |
|
77 | - * @return string |
|
78 | - */ |
|
75 | + /** |
|
76 | + * Retrieves a unique ID of the token. |
|
77 | + * @return string |
|
78 | + */ |
|
79 | 79 | public function getID() : string |
80 | 80 | { |
81 | 81 | return $this->tokenID; |
@@ -46,7 +46,7 @@ |
||
46 | 46 | * @param mixed $subject |
47 | 47 | * @param Mailcode_Commands_Command|null $sourceCommand |
48 | 48 | */ |
49 | - public function __construct(string $tokenID, string $matchedText, $subject=null, ?Mailcode_Commands_Command $sourceCommand=null) |
|
49 | + public function __construct(string $tokenID, string $matchedText, $subject = null, ?Mailcode_Commands_Command $sourceCommand = null) |
|
50 | 50 | { |
51 | 51 | $this->tokenID = $tokenID; |
52 | 52 | $this->matchedText = $matchedText; |
@@ -10,7 +10,7 @@ |
||
10 | 10 | { |
11 | 11 | $vars = Mailcode::create()->findVariables($this->tokenized, $this->tokenizer->getSourceCommand())->getGroupedByHash(); |
12 | 12 | |
13 | - foreach($vars as $var) |
|
13 | + foreach ($vars as $var) |
|
14 | 14 | { |
15 | 15 | $this->registerToken('Variable', $var->getMatchedText(), $var); |
16 | 16 | } |