@@ -36,9 +36,9 @@ |
||
36 | 36 | ); |
37 | 37 | } |
38 | 38 | |
39 | - /** |
|
40 | - * @return array<string> |
|
41 | - */ |
|
39 | + /** |
|
40 | + * @return array<string> |
|
41 | + */ |
|
42 | 42 | protected function getAllowedOperands() : array |
43 | 43 | { |
44 | 44 | return Mailcode_Parser_Statement_Tokenizer_Token_Operand::getComparisonSigns(); |
@@ -24,9 +24,9 @@ discard block |
||
24 | 24 | */ |
25 | 25 | trait Mailcode_Traits_Commands_Validation_Value |
26 | 26 | { |
27 | - /** |
|
28 | - * @var Mailcode_Parser_Statement_Tokenizer_ValueInterface|NULL |
|
29 | - */ |
|
27 | + /** |
|
28 | + * @var Mailcode_Parser_Statement_Tokenizer_ValueInterface|NULL |
|
29 | + */ |
|
30 | 30 | protected $valueToken; |
31 | 31 | |
32 | 32 | protected function validateSyntax_value() : void |
@@ -46,11 +46,11 @@ discard block |
||
46 | 46 | } |
47 | 47 | } |
48 | 48 | |
49 | - /** |
|
50 | - * Retrieves the variable being compared. |
|
51 | - * |
|
52 | - * @return string |
|
53 | - */ |
|
49 | + /** |
|
50 | + * Retrieves the variable being compared. |
|
51 | + * |
|
52 | + * @return string |
|
53 | + */ |
|
54 | 54 | public function getValue() : string |
55 | 55 | { |
56 | 56 | if($this->valueToken instanceof Mailcode_Parser_Statement_Tokenizer_ValueInterface) |
@@ -25,14 +25,14 @@ discard block |
||
25 | 25 | */ |
26 | 26 | trait Mailcode_Traits_Commands_Validation_Operand |
27 | 27 | { |
28 | - /** |
|
29 | - * @var Mailcode_Parser_Statement_Tokenizer_Token_Operand|NULL |
|
30 | - */ |
|
28 | + /** |
|
29 | + * @var Mailcode_Parser_Statement_Tokenizer_Token_Operand|NULL |
|
30 | + */ |
|
31 | 31 | protected $operandToken; |
32 | 32 | |
33 | - /** |
|
34 | - * @return string[] |
|
35 | - */ |
|
33 | + /** |
|
34 | + * @return string[] |
|
35 | + */ |
|
36 | 36 | abstract protected function getAllowedOperands() : array; |
37 | 37 | |
38 | 38 | protected function validateSyntax_operand() : void |
@@ -78,11 +78,11 @@ discard block |
||
78 | 78 | ); |
79 | 79 | } |
80 | 80 | |
81 | - /** |
|
82 | - * Retrieves the operand sign. |
|
83 | - * |
|
84 | - * @return string |
|
85 | - */ |
|
81 | + /** |
|
82 | + * Retrieves the operand sign. |
|
83 | + * |
|
84 | + * @return string |
|
85 | + */ |
|
86 | 86 | public function getSign() : string |
87 | 87 | { |
88 | 88 | return $this->getOperand()->getSign(); |
@@ -22,19 +22,19 @@ discard block |
||
22 | 22 | */ |
23 | 23 | class Mailcode_Parser_Statement_Info_Pruner |
24 | 24 | { |
25 | - /** |
|
26 | - * @var Mailcode_Parser_Statement_Info |
|
27 | - */ |
|
25 | + /** |
|
26 | + * @var Mailcode_Parser_Statement_Info |
|
27 | + */ |
|
28 | 28 | private $info; |
29 | 29 | |
30 | - /** |
|
31 | - * @var string[] |
|
32 | - */ |
|
30 | + /** |
|
31 | + * @var string[] |
|
32 | + */ |
|
33 | 33 | private $exclude = array(); |
34 | 34 | |
35 | - /** |
|
36 | - * @var string[] |
|
37 | - */ |
|
35 | + /** |
|
36 | + * @var string[] |
|
37 | + */ |
|
38 | 38 | private $classNames = array(); |
39 | 39 | |
40 | 40 | public function __construct(Mailcode_Parser_Statement_Info $info) |
@@ -74,12 +74,12 @@ discard block |
||
74 | 74 | return $this; |
75 | 75 | } |
76 | 76 | |
77 | - /** |
|
78 | - * Retrieves all tokens in the statement matching the |
|
79 | - * current criteria. |
|
80 | - * |
|
81 | - * @return Mailcode_Parser_Statement_Tokenizer_Token[] |
|
82 | - */ |
|
77 | + /** |
|
78 | + * Retrieves all tokens in the statement matching the |
|
79 | + * current criteria. |
|
80 | + * |
|
81 | + * @return Mailcode_Parser_Statement_Tokenizer_Token[] |
|
82 | + */ |
|
83 | 83 | public function getTokens() : array |
84 | 84 | { |
85 | 85 | $tokens = $this->info->getTokens(); |
@@ -28,9 +28,9 @@ discard block |
||
28 | 28 | use Mailcode_Traits_Commands_Validation_Variable; |
29 | 29 | use Mailcode_Traits_Commands_Validation_CaseSensitive; |
30 | 30 | |
31 | - /** |
|
32 | - * @var Mailcode_Parser_Statement_Tokenizer_Token_StringLiteral[] |
|
33 | - */ |
|
31 | + /** |
|
32 | + * @var Mailcode_Parser_Statement_Tokenizer_Token_StringLiteral[] |
|
33 | + */ |
|
34 | 34 | protected $searchTerms = array(); |
35 | 35 | |
36 | 36 | protected function getValidations() : array |
@@ -66,10 +66,10 @@ discard block |
||
66 | 66 | } |
67 | 67 | } |
68 | 68 | |
69 | - /** |
|
70 | - * Retrieves all search terms. |
|
71 | - * @return Mailcode_Parser_Statement_Tokenizer_Token_StringLiteral[] |
|
72 | - */ |
|
69 | + /** |
|
70 | + * Retrieves all search terms. |
|
71 | + * @return Mailcode_Parser_Statement_Tokenizer_Token_StringLiteral[] |
|
72 | + */ |
|
73 | 73 | public function getSearchTerms() : array |
74 | 74 | { |
75 | 75 | return $this->searchTerms; |
@@ -20,9 +20,9 @@ |
||
20 | 20 | */ |
21 | 21 | class Mailcode_Commands_Command_Comment extends Mailcode_Commands_Command implements Mailcode_Commands_Command_Type_Standalone |
22 | 22 | { |
23 | - /** |
|
24 | - * @var string |
|
25 | - */ |
|
23 | + /** |
|
24 | + * @var string |
|
25 | + */ |
|
26 | 26 | private $commentString = ''; |
27 | 27 | |
28 | 28 | protected function init() : void |
@@ -30,10 +30,10 @@ discard block |
||
30 | 30 | return $this->getSign(); |
31 | 31 | } |
32 | 32 | |
33 | - /** |
|
34 | - * Retrieves all known comparison operator signs. |
|
35 | - * @return string[] |
|
36 | - */ |
|
33 | + /** |
|
34 | + * Retrieves all known comparison operator signs. |
|
35 | + * @return string[] |
|
36 | + */ |
|
37 | 37 | public static function getComparisonSigns() : array |
38 | 38 | { |
39 | 39 | return array( |
@@ -46,10 +46,10 @@ discard block |
||
46 | 46 | ); |
47 | 47 | } |
48 | 48 | |
49 | - /** |
|
50 | - * Retrieves all known arithmetic operator signs. |
|
51 | - * @return string[] |
|
52 | - */ |
|
49 | + /** |
|
50 | + * Retrieves all known arithmetic operator signs. |
|
51 | + * @return string[] |
|
52 | + */ |
|
53 | 53 | public static function getArithmeticSigns() : array |
54 | 54 | { |
55 | 55 | return array( |
@@ -60,11 +60,11 @@ discard block |
||
60 | 60 | ); |
61 | 61 | } |
62 | 62 | |
63 | - /** |
|
64 | - * Whether the operator is comparison related (equals, not equals, smaller, greater...). |
|
65 | - * |
|
66 | - * @return bool |
|
67 | - */ |
|
63 | + /** |
|
64 | + * Whether the operator is comparison related (equals, not equals, smaller, greater...). |
|
65 | + * |
|
66 | + * @return bool |
|
67 | + */ |
|
68 | 68 | public function isComparator() : bool |
69 | 69 | { |
70 | 70 | return |
@@ -76,11 +76,11 @@ discard block |
||
76 | 76 | $this->isSmallerOrEquals(); |
77 | 77 | } |
78 | 78 | |
79 | - /** |
|
80 | - * Whether the operator is calculation related (minus, plus, divide, multiply). |
|
81 | - * |
|
82 | - * @return bool |
|
83 | - */ |
|
79 | + /** |
|
80 | + * Whether the operator is calculation related (minus, plus, divide, multiply). |
|
81 | + * |
|
82 | + * @return bool |
|
83 | + */ |
|
84 | 84 | public function isCalculator() : bool |
85 | 85 | { |
86 | 86 | return |
@@ -35,13 +35,13 @@ |
||
35 | 35 | } |
36 | 36 | } |
37 | 37 | |
38 | - /** |
|
39 | - * Resolves the string with which this location needs to be |
|
40 | - * replaced. |
|
41 | - * |
|
42 | - * @param Mailcode_Parser_Safeguard_Formatter_Location $location |
|
43 | - * @return string |
|
44 | - */ |
|
38 | + /** |
|
39 | + * Resolves the string with which this location needs to be |
|
40 | + * replaced. |
|
41 | + * |
|
42 | + * @param Mailcode_Parser_Safeguard_Formatter_Location $location |
|
43 | + * @return string |
|
44 | + */ |
|
45 | 45 | private function resolveReplacement(Mailcode_Parser_Safeguard_Formatter_Location $location) : string |
46 | 46 | { |
47 | 47 | if($location->requiresAdjustment()) |
@@ -23,14 +23,14 @@ |
||
23 | 23 | */ |
24 | 24 | class Mailcode_Parser_Safeguard_Formatter_Type_SingleLines extends Mailcode_Parser_Safeguard_Formatter_FormatType |
25 | 25 | { |
26 | - /** |
|
27 | - * @var string |
|
28 | - */ |
|
26 | + /** |
|
27 | + * @var string |
|
28 | + */ |
|
29 | 29 | private $eol; |
30 | 30 | |
31 | - /** |
|
32 | - * @var int |
|
33 | - */ |
|
31 | + /** |
|
32 | + * @var int |
|
33 | + */ |
|
34 | 34 | private $eolLength; |
35 | 35 | |
36 | 36 | protected function initFormatting() : void |