Test Failed
Push — master ( 956a64...151bf3 )
by Sebastian
02:46
created
src/Mailcode/Parser/Statement/Tokenizer/Token.php 1 patch
Indentation   +22 added lines, -22 removed lines patch added patch discarded remove patch
@@ -20,26 +20,26 @@  discard block
 block discarded – undo
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
-   /**
39
-    * @param string $tokenID
40
-    * @param string $matchedText
41
-    * @param mixed $subject
42
-    */
38
+    /**
39
+     * @param string $tokenID
40
+     * @param string $matchedText
41
+     * @param mixed $subject
42
+     */
43 43
     public function __construct(string $tokenID, string $matchedText, $subject=null)
44 44
     {
45 45
         $this->tokenID = $tokenID;
@@ -47,20 +47,20 @@  discard block
 block discarded – undo
47 47
         $this->subject = $subject;
48 48
     }
49 49
     
50
-   /**
51
-    * The ID of the type. i.e. the class name ("Keyword", "StringLiteral").
52
-    * @return string
53
-    */
50
+    /**
51
+     * The ID of the type. i.e. the class name ("Keyword", "StringLiteral").
52
+     * @return string
53
+     */
54 54
     public function getTypeID() : string
55 55
     {
56 56
         $parts = explode('_', get_class($this));
57 57
         return array_pop($parts);
58 58
     }
59 59
     
60
-   /**
61
-    * Retrieves a unique ID of the token.
62
-    * @return string  
63
-    */
60
+    /**
61
+     * Retrieves a unique ID of the token.
62
+     * @return string  
63
+     */
64 64
     public function getID() : string
65 65
     {
66 66
         return $this->tokenID;
Please login to merge, or discard this patch.
src/Mailcode/Traits/Commands/IfContains.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -28,9 +28,9 @@  discard block
 block discarded – undo
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
 block discarded – undo
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;
Please login to merge, or discard this patch.
src/Mailcode/Traits/Commands/Validation/CaseSensitive.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -24,14 +24,14 @@
 block discarded – undo
24 24
  */
25 25
 trait Mailcode_Traits_Commands_Validation_CaseSensitive
26 26
 {
27
-   /**
28
-    * @var boolean
29
-    */
27
+    /**
28
+     * @var boolean
29
+     */
30 30
     protected $caseInsensitive = false;
31 31
 
32
-   /**
33
-    * @var Mailcode_Parser_Statement_Tokenizer_Token_Keyword|NULL
34
-    */
32
+    /**
33
+     * @var Mailcode_Parser_Statement_Tokenizer_Token_Keyword|NULL
34
+     */
35 35
     protected $caseToken;
36 36
     
37 37
     protected function validateSyntax_case_sensitive() : void
Please login to merge, or discard this patch.
src/Mailcode/Commands/Command/Comment.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -20,9 +20,9 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
src/Mailcode/Factory/Instantiator.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -78,13 +78,13 @@
 block discarded – undo
78 78
         return $this->buildIf($ifType, $this->filterVariableName($variable), 'not-empty');
79 79
     }
80 80
     
81
-   /**
82
-    * @param string $ifType
83
-    * @param string $variable
84
-    * @param string[] $searchTerms
85
-    * @param bool $caseInsensitive
86
-    * @return Mailcode_Commands_IfBase
87
-    */
81
+    /**
82
+     * @param string $ifType
83
+     * @param string $variable
84
+     * @param string[] $searchTerms
85
+     * @param bool $caseInsensitive
86
+     * @return Mailcode_Commands_IfBase
87
+     */
88 88
     public function buildIfContains(string $ifType, string $variable, array $searchTerms, bool $caseInsensitive=false) : Mailcode_Commands_IfBase
89 89
     {
90 90
         $keyword = ' ';
Please login to merge, or discard this patch.
src/Mailcode/Factory/CommandSets/Set/ElseIf.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -104,12 +104,12 @@
 block discarded – undo
104 104
         throw $this->instantiator->exceptionUnexpectedType('ElseIfVarNotEqualsString', $command);
105 105
     }
106 106
     
107
-   /**
108
-    * @param string $variable
109
-    * @param string[] $searchTerms
110
-    * @param bool $caseInsensitive
111
-    * @return Mailcode_Commands_Command_ElseIf_Contains
112
-    */
107
+    /**
108
+     * @param string $variable
109
+     * @param string[] $searchTerms
110
+     * @param bool $caseInsensitive
111
+     * @return Mailcode_Commands_Command_ElseIf_Contains
112
+     */
113 113
     public function elseIfContains(string $variable, array $searchTerms, bool $caseInsensitive=false) : Mailcode_Commands_Command_ElseIf_Contains
114 114
     {
115 115
         $command = $this->instantiator->buildIfContains('ElseIf', $variable, $searchTerms, $caseInsensitive);
Please login to merge, or discard this patch.
src/Mailcode/Factory/CommandSets/Set/If.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -128,12 +128,12 @@
 block discarded – undo
128 128
         throw $this->instantiator->exceptionUnexpectedType('IfNotEmpty', $command);
129 129
     }
130 130
     
131
-   /**
132
-    * @param string $variable
133
-    * @param string[] $searchTerms
134
-    * @param bool $caseInsensitive
135
-    * @return Mailcode_Commands_Command_If_Contains
136
-    */
131
+    /**
132
+     * @param string $variable
133
+     * @param string[] $searchTerms
134
+     * @param bool $caseInsensitive
135
+     * @return Mailcode_Commands_Command_If_Contains
136
+     */
137 137
     public function ifContains(string $variable, array $searchTerms, bool $caseInsensitive=false) : Mailcode_Commands_Command_If_Contains
138 138
     {
139 139
         $command = $this->instantiator->buildIfContains('If', $variable, $searchTerms, $caseInsensitive);
Please login to merge, or discard this patch.
src/Mailcode/Translator/Syntax/ApacheVelocity/Base/AbstractIf.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -117,13 +117,13 @@
 block discarded – undo
117 117
         );
118 118
     }
119 119
     
120
-   /**
121
-    * 
122
-    * @param Mailcode_Variables_Variable $variable
123
-    * @param bool $caseSensitive
124
-    * @param Mailcode_Parser_Statement_Tokenizer_Token_StringLiteral[] $searchTerms
125
-    * @return string
126
-    */
120
+    /**
121
+     * 
122
+     * @param Mailcode_Variables_Variable $variable
123
+     * @param bool $caseSensitive
124
+     * @param Mailcode_Parser_Statement_Tokenizer_Token_StringLiteral[] $searchTerms
125
+     * @return string
126
+     */
127 127
     protected function _translateContains(Mailcode_Variables_Variable $variable, bool $caseSensitive, array $searchTerms) : string
128 128
     {
129 129
         $parts = array();
Please login to merge, or discard this patch.
src/Mailcode/Translator/Syntax/ApacheVelocity.php 1 patch
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -20,9 +20,9 @@  discard block
 block discarded – undo
20 20
  */
21 21
 abstract class Mailcode_Translator_Syntax_ApacheVelocity extends Mailcode_Translator_Command
22 22
 {
23
-   /**
24
-    * @var string[]
25
-    */
23
+    /**
24
+     * @var string[]
25
+     */
26 26
     private $regexSpecialChars = array(
27 27
         '?',
28 28
         '.',
@@ -41,13 +41,13 @@  discard block
 block discarded – undo
41 41
         ')'
42 42
     );
43 43
     
44
-   /**
45
-    * Filters the string for use in an Apache Velocity (Java)
46
-    * regex string: escapes all special characters.
47
-    * 
48
-    * @param string $string
49
-    * @return string
50
-    */
44
+    /**
45
+     * Filters the string for use in an Apache Velocity (Java)
46
+     * regex string: escapes all special characters.
47
+     * 
48
+     * @param string $string
49
+     * @return string
50
+     */
51 51
     protected function filterRegexString(string $string) : string
52 52
     {
53 53
         // Special case: previously escaped quotes. 
Please login to merge, or discard this patch.