Passed
Push — master ( 75ee28...758f58 )
by Sebastian
04:00
created
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.
src/Mailcode/Parser/Statement/Tokenizer/Token/Operand.php 1 patch
Indentation   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -30,10 +30,10 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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 
Please login to merge, or discard this patch.
src/Mailcode/Commands/Command/For.php 1 patch
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -27,19 +27,19 @@
 block discarded – undo
27 27
     const VALIDATION_WRONG_KEYWORD = 49702;
28 28
     const VALIDATION_VARIABLE_NAME_IS_THE_SAME = 49703;
29 29
     
30
-   /**
31
-    * @var Mailcode_Parser_Statement_Tokenizer_Token_Variable|NULL
32
-    */
30
+    /**
31
+     * @var Mailcode_Parser_Statement_Tokenizer_Token_Variable|NULL
32
+     */
33 33
     private $loopVar;
34 34
     
35
-   /**
36
-    * @var Mailcode_Parser_Statement_Tokenizer_Token_Variable|NULL
37
-    */
35
+    /**
36
+     * @var Mailcode_Parser_Statement_Tokenizer_Token_Variable|NULL
37
+     */
38 38
     private $sourceVar;
39 39
     
40
-   /**
41
-    * @var Mailcode_Parser_Statement_Tokenizer_Token_Keyword|NULL
42
-    */
40
+    /**
41
+     * @var Mailcode_Parser_Statement_Tokenizer_Token_Keyword|NULL
42
+     */
43 43
     private $keyword;
44 44
     
45 45
     public function getName() : string
Please login to merge, or discard this patch.
src/Mailcode.php 1 patch
Indentation   +51 added lines, -51 removed lines patch added patch discarded remove patch
@@ -26,51 +26,51 @@  discard block
 block discarded – undo
26 26
  */
27 27
 class Mailcode
28 28
 {
29
-   /**
30
-    * @var Mailcode_Parser|NULL
31
-    */
29
+    /**
30
+     * @var Mailcode_Parser|NULL
31
+     */
32 32
     protected $parser = null;
33 33
     
34
-   /**
35
-    * @var Mailcode_Commands|NULL
36
-    */
34
+    /**
35
+     * @var Mailcode_Commands|NULL
36
+     */
37 37
     protected $commands = null;
38 38
     
39
-   /**
40
-    * @var Mailcode_Variables|NULL
41
-    */
39
+    /**
40
+     * @var Mailcode_Variables|NULL
41
+     */
42 42
     protected $variables = null;
43 43
     
44
-   /**
45
-    * @var Mailcode_Translator|NULL
46
-    */
44
+    /**
45
+     * @var Mailcode_Translator|NULL
46
+     */
47 47
     protected $translator = null;
48 48
     
49
-   /**
50
-    * Creates a new mailcode instance.
51
-    * @return Mailcode
52
-    */
49
+    /**
50
+     * Creates a new mailcode instance.
51
+     * @return Mailcode
52
+     */
53 53
     public static function create() : Mailcode
54 54
     {
55 55
         return new Mailcode();
56 56
     }
57 57
     
58
-   /**
59
-    * Parses the string to detect all commands contained within.
60
-    * 
61
-    * @param string $string
62
-    * @return Mailcode_Collection
63
-    */
58
+    /**
59
+     * Parses the string to detect all commands contained within.
60
+     * 
61
+     * @param string $string
62
+     * @return Mailcode_Collection
63
+     */
64 64
     public function parseString(string $string) : Mailcode_Collection
65 65
     {
66 66
         return $this->getParser()->parseString($string);
67 67
     }
68 68
     
69
-   /**
70
-    * Retrieves the string parser instance used to detect commands.
71
-    * 
72
-    * @return Mailcode_Parser
73
-    */
69
+    /**
70
+     * Retrieves the string parser instance used to detect commands.
71
+     * 
72
+     * @return Mailcode_Parser
73
+     */
74 74
     public function getParser() : Mailcode_Parser
75 75
     {
76 76
         if(!isset($this->parser)) 
@@ -81,12 +81,12 @@  discard block
 block discarded – undo
81 81
         return $this->parser;
82 82
     }
83 83
     
84
-   /**
85
-    * Retrieves the commands collection, which is used to
86
-    * access information on the available commands.
87
-    * 
88
-    * @return Mailcode_Commands
89
-    */
84
+    /**
85
+     * Retrieves the commands collection, which is used to
86
+     * access information on the available commands.
87
+     * 
88
+     * @return Mailcode_Commands
89
+     */
90 90
     public function getCommands() : Mailcode_Commands
91 91
     {
92 92
         if(!isset($this->commands)) 
@@ -107,12 +107,12 @@  discard block
 block discarded – undo
107 107
         return new Mailcode_StringContainer($subject);
108 108
     }
109 109
     
110
-   /**
111
-    * Attempts to find all variables in the target string.
112
-    * 
113
-    * @param string $subject
114
-    * @return Mailcode_Variables_Collection_Regular
115
-    */
110
+    /**
111
+     * Attempts to find all variables in the target string.
112
+     * 
113
+     * @param string $subject
114
+     * @return Mailcode_Variables_Collection_Regular
115
+     */
116 116
     public function findVariables(string $subject) : Mailcode_Variables_Collection_Regular
117 117
     {
118 118
         return $this->createVariables()->parseString($subject);
@@ -128,12 +128,12 @@  discard block
 block discarded – undo
128 128
         return $this->variables;
129 129
     }
130 130
     
131
-   /**
132
-    * Creates the translator, which can be used to convert commands
133
-    * to another supported syntax.
134
-    * 
135
-    * @return Mailcode_Translator
136
-    */
131
+    /**
132
+     * Creates the translator, which can be used to convert commands
133
+     * to another supported syntax.
134
+     * 
135
+     * @return Mailcode_Translator
136
+     */
137 137
     public function createTranslator() : Mailcode_Translator
138 138
     {
139 139
         if(!isset($this->translator))
@@ -144,12 +144,12 @@  discard block
 block discarded – undo
144 144
         return $this->translator;
145 145
     }
146 146
     
147
-   /**
148
-    * Creates the styler, which can be used to retrieve the 
149
-    * CSS required to style the highlighted commands in HTML.
150
-    * 
151
-    * @return Mailcode_Styler
152
-    */
147
+    /**
148
+     * Creates the styler, which can be used to retrieve the 
149
+     * CSS required to style the highlighted commands in HTML.
150
+     * 
151
+     * @return Mailcode_Styler
152
+     */
153 153
     public function createStyler() : Mailcode_Styler
154 154
     {
155 155
         return new Mailcode_Styler();
Please login to merge, or discard this patch.
src/Mailcode/Parser/Safeguard/Formatter/ReplacerType.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -35,13 +35,13 @@
 block discarded – undo
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())
Please login to merge, or discard this patch.
src/Mailcode/Parser/Safeguard/Formatter/Type/SingleLines.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -23,14 +23,14 @@
 block discarded – undo
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
Please login to merge, or discard this patch.