@@ -50,7 +50,7 @@ |
||
50 | 50 | |
51 | 51 | public function getToken() : Mailcode_Parser_Statement_Tokenizer_Token_Keyword |
52 | 52 | { |
53 | - if($this->token instanceof Mailcode_Parser_Statement_Tokenizer_Token_Keyword) |
|
53 | + if ($this->token instanceof Mailcode_Parser_Statement_Tokenizer_Token_Keyword) |
|
54 | 54 | { |
55 | 55 | return $this->token; |
56 | 56 | } |
@@ -34,7 +34,7 @@ |
||
34 | 34 | |
35 | 35 | public function getToken() : Mailcode_Parser_Statement_Tokenizer_ValueInterface |
36 | 36 | { |
37 | - if($this->token instanceof Mailcode_Parser_Statement_Tokenizer_ValueInterface) |
|
37 | + if ($this->token instanceof Mailcode_Parser_Statement_Tokenizer_ValueInterface) |
|
38 | 38 | { |
39 | 39 | return $this->token; |
40 | 40 | } |
@@ -34,7 +34,7 @@ |
||
34 | 34 | |
35 | 35 | public function getToken() : Mailcode_Parser_Statement_Tokenizer_Token_StringLiteral |
36 | 36 | { |
37 | - if($this->token instanceof Mailcode_Parser_Statement_Tokenizer_Token_StringLiteral) |
|
37 | + if ($this->token instanceof Mailcode_Parser_Statement_Tokenizer_Token_StringLiteral) |
|
38 | 38 | { |
39 | 39 | return $this->token; |
40 | 40 | } |
@@ -41,7 +41,7 @@ discard block |
||
41 | 41 | |
42 | 42 | protected function _isMatch(Mailcode_Parser_Statement_Tokenizer_Token $token) : bool |
43 | 43 | { |
44 | - if(!empty($this->sign) && $token instanceof Mailcode_Parser_Statement_Tokenizer_Token_Operand) |
|
44 | + if (!empty($this->sign) && $token instanceof Mailcode_Parser_Statement_Tokenizer_Token_Operand) |
|
45 | 45 | { |
46 | 46 | return $token->getSign() === $this->sign; |
47 | 47 | } |
@@ -51,7 +51,7 @@ discard block |
||
51 | 51 | |
52 | 52 | public function getToken() : Mailcode_Parser_Statement_Tokenizer_Token_Operand |
53 | 53 | { |
54 | - if($this->token instanceof Mailcode_Parser_Statement_Tokenizer_Token_Operand) |
|
54 | + if ($this->token instanceof Mailcode_Parser_Statement_Tokenizer_Token_Operand) |
|
55 | 55 | { |
56 | 56 | return $this->token; |
57 | 57 | } |
@@ -34,7 +34,7 @@ |
||
34 | 34 | |
35 | 35 | public function getToken() : Mailcode_Parser_Statement_Tokenizer_Token_Variable |
36 | 36 | { |
37 | - if($this->token instanceof Mailcode_Parser_Statement_Tokenizer_Token_Variable) |
|
37 | + if ($this->token instanceof Mailcode_Parser_Statement_Tokenizer_Token_Variable) |
|
38 | 38 | { |
39 | 39 | return $this->token; |
40 | 40 | } |
@@ -33,7 +33,7 @@ discard block |
||
33 | 33 | { |
34 | 34 | $val = $this->validator->createStringLiteral(); |
35 | 35 | |
36 | - if($val->isValid()) |
|
36 | + if ($val->isValid()) |
|
37 | 37 | { |
38 | 38 | $this->searchTerm = $val->getToken(); |
39 | 39 | } |
@@ -48,7 +48,7 @@ discard block |
||
48 | 48 | |
49 | 49 | public function getSearchTerm() : string |
50 | 50 | { |
51 | - if($this->searchTerm instanceof Mailcode_Parser_Statement_Tokenizer_Token_StringLiteral) |
|
51 | + if ($this->searchTerm instanceof Mailcode_Parser_Statement_Tokenizer_Token_StringLiteral) |
|
52 | 52 | { |
53 | 53 | return $this->searchTerm->getNormalized(); |
54 | 54 | } |
@@ -33,7 +33,7 @@ discard block |
||
33 | 33 | { |
34 | 34 | $var = $this->validator->createValue(); |
35 | 35 | |
36 | - if($var->isValid()) |
|
36 | + if ($var->isValid()) |
|
37 | 37 | { |
38 | 38 | $this->valueToken = $var->getToken(); |
39 | 39 | } |
@@ -53,7 +53,7 @@ discard block |
||
53 | 53 | */ |
54 | 54 | public function getValue() : string |
55 | 55 | { |
56 | - if($this->valueToken instanceof Mailcode_Parser_Statement_Tokenizer_ValueInterface) |
|
56 | + if ($this->valueToken instanceof Mailcode_Parser_Statement_Tokenizer_ValueInterface) |
|
57 | 57 | { |
58 | 58 | return $this->valueToken->getValue(); |
59 | 59 | } |
@@ -39,9 +39,9 @@ discard block |
||
39 | 39 | { |
40 | 40 | $var = $this->validator->createOperand(); |
41 | 41 | |
42 | - if($var->isValid()) |
|
42 | + if ($var->isValid()) |
|
43 | 43 | { |
44 | - if(in_array($var->getSign(), $this->getAllowedOperands())) |
|
44 | + if (in_array($var->getSign(), $this->getAllowedOperands())) |
|
45 | 45 | { |
46 | 46 | $this->operandToken = $var->getToken(); |
47 | 47 | } |
@@ -66,7 +66,7 @@ discard block |
||
66 | 66 | |
67 | 67 | public function getOperand() : Mailcode_Parser_Statement_Tokenizer_Token_Operand |
68 | 68 | { |
69 | - if($this->operandToken instanceof Mailcode_Parser_Statement_Tokenizer_Token_Operand) |
|
69 | + if ($this->operandToken instanceof Mailcode_Parser_Statement_Tokenizer_Token_Operand) |
|
70 | 70 | { |
71 | 71 | return $this->operandToken; |
72 | 72 | } |
@@ -46,7 +46,7 @@ discard block |
||
46 | 46 | { |
47 | 47 | $id = $token->getID(); |
48 | 48 | |
49 | - if(!in_array($id, $this->exclude)) |
|
49 | + if (!in_array($id, $this->exclude)) |
|
50 | 50 | { |
51 | 51 | $this->exclude[] = $id; |
52 | 52 | } |
@@ -66,7 +66,7 @@ discard block |
||
66 | 66 | |
67 | 67 | public function limitByClassName(string $className) : Mailcode_Parser_Statement_Info_Pruner |
68 | 68 | { |
69 | - if(!in_array($className, $this->classNames)) |
|
69 | + if (!in_array($className, $this->classNames)) |
|
70 | 70 | { |
71 | 71 | $this->classNames[] = $className; |
72 | 72 | } |
@@ -85,9 +85,9 @@ discard block |
||
85 | 85 | $tokens = $this->info->getTokens(); |
86 | 86 | $keep = array(); |
87 | 87 | |
88 | - foreach($tokens as $token) |
|
88 | + foreach ($tokens as $token) |
|
89 | 89 | { |
90 | - if(in_array($token->getID(), $this->exclude)) |
|
90 | + if (in_array($token->getID(), $this->exclude)) |
|
91 | 91 | { |
92 | 92 | continue; |
93 | 93 | } |