Test Failed
Push — master ( 9ff364...742ef2 )
by Sebastian
03:58
created
src/Mailcode/Translator/Syntax/ApacheVelocity/ShowDate.php 2 patches
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -24,15 +24,15 @@
 block discarded – undo
24 24
 {
25 25
     public const ERROR_UNKNOWN_DATE_FORMAT_CHARACTER = 55501;
26 26
 
27
-   /**
28
-    * The date format used in the date variable. This is used to convert
29
-    * the native date to the format specified in the variable command.
30
-    */
27
+    /**
28
+     * The date format used in the date variable. This is used to convert
29
+     * the native date to the format specified in the variable command.
30
+     */
31 31
     public const DEFAULT_INTERNAL_FORMAT = "yyyy-MM-dd'T'HH:mm:ss.SSSXXX";
32 32
 
33
-   /**
34
-    * @var string[]string
35
-    */
33
+    /**
34
+     * @var string[]string
35
+     */
36 36
     private $charTable = array(
37 37
         'd' => 'dd',
38 38
         'j' => 'd',
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
     {
55 55
         $internalFormat = $command->getTranslationParam('internal_format');
56 56
 
57
-        if(is_string($internalFormat) && !empty($internalFormat))
57
+        if (is_string($internalFormat) && !empty($internalFormat))
58 58
         {
59 59
             return $internalFormat;
60 60
         }
@@ -83,9 +83,9 @@  discard block
 block discarded – undo
83 83
         $chars = ConvertHelper::string2array($formatString);
84 84
         $result = array();
85 85
         
86
-        foreach($chars as $char)
86
+        foreach ($chars as $char)
87 87
         {
88
-            if(!isset($this->charTable[$char]))
88
+            if (!isset($this->charTable[$char]))
89 89
             {
90 90
                 throw new Mailcode_Translator_Exception(
91 91
                     'Unknown date format string character',
Please login to merge, or discard this patch.
src/Mailcode.php 2 patches
Indentation   +45 added lines, -45 removed lines patch added patch discarded remove patch
@@ -26,41 +26,41 @@  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()
@@ -68,11 +68,11 @@  discard block
 block discarded – undo
68 68
             ->getCollection();
69 69
     }
70 70
     
71
-   /**
72
-    * Retrieves the string parser instance used to detect commands.
73
-    * 
74
-    * @return Mailcode_Parser
75
-    */
71
+    /**
72
+     * Retrieves the string parser instance used to detect commands.
73
+     * 
74
+     * @return Mailcode_Parser
75
+     */
76 76
     public function getParser() : Mailcode_Parser
77 77
     {
78 78
         if(!isset($this->parser)) 
@@ -83,12 +83,12 @@  discard block
 block discarded – undo
83 83
         return $this->parser;
84 84
     }
85 85
     
86
-   /**
87
-    * Retrieves the commands collection, which is used to
88
-    * access information on the available commands.
89
-    * 
90
-    * @return Mailcode_Commands
91
-    */
86
+    /**
87
+     * Retrieves the commands collection, which is used to
88
+     * access information on the available commands.
89
+     * 
90
+     * @return Mailcode_Commands
91
+     */
92 92
     public function getCommands() : Mailcode_Commands
93 93
     {
94 94
         if(!isset($this->commands)) 
@@ -131,12 +131,12 @@  discard block
 block discarded – undo
131 131
         return $this->variables;
132 132
     }
133 133
     
134
-   /**
135
-    * Creates the translator, which can be used to convert commands
136
-    * to another supported syntax.
137
-    * 
138
-    * @return Mailcode_Translator
139
-    */
134
+    /**
135
+     * Creates the translator, which can be used to convert commands
136
+     * to another supported syntax.
137
+     * 
138
+     * @return Mailcode_Translator
139
+     */
140 140
     public function createTranslator() : Mailcode_Translator
141 141
     {
142 142
         if(!isset($this->translator))
@@ -147,12 +147,12 @@  discard block
 block discarded – undo
147 147
         return $this->translator;
148 148
     }
149 149
     
150
-   /**
151
-    * Creates the styler, which can be used to retrieve the 
152
-    * CSS required to style the highlighted commands in HTML.
153
-    * 
154
-    * @return Mailcode_Styler
155
-    */
150
+    /**
151
+     * Creates the styler, which can be used to retrieve the 
152
+     * CSS required to style the highlighted commands in HTML.
153
+     * 
154
+     * @return Mailcode_Styler
155
+     */
156 156
     public function createStyler() : Mailcode_Styler
157 157
     {
158 158
         return new Mailcode_Styler();
Please login to merge, or discard this patch.
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
     */
78 78
     public function getParser() : Mailcode_Parser
79 79
     {
80
-        if(!isset($this->parser)) 
80
+        if (!isset($this->parser)) 
81 81
         {
82 82
             $this->parser = new Mailcode_Parser($this);
83 83
         }
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
     */
94 94
     public function getCommands() : Mailcode_Commands
95 95
     {
96
-        if(!isset($this->commands)) 
96
+        if (!isset($this->commands)) 
97 97
         {
98 98
             $this->commands = new Mailcode_Commands();
99 99
         }
@@ -118,14 +118,14 @@  discard block
 block discarded – undo
118 118
      * @param Mailcode_Commands_Command|null $sourceCommand
119 119
      * @return Mailcode_Variables_Collection_Regular
120 120
      */
121
-    public function findVariables(string $subject, ?Mailcode_Commands_Command $sourceCommand=null) : Mailcode_Variables_Collection_Regular
121
+    public function findVariables(string $subject, ?Mailcode_Commands_Command $sourceCommand = null) : Mailcode_Variables_Collection_Regular
122 122
     {
123 123
         return $this->createVariables()->parseString($subject, $sourceCommand);
124 124
     }
125 125
     
126 126
     public function createVariables() : Mailcode_Variables
127 127
     {
128
-        if(!isset($this->variables))
128
+        if (!isset($this->variables))
129 129
         {
130 130
             $this->variables = new Mailcode_Variables();
131 131
         }
@@ -141,7 +141,7 @@  discard block
 block discarded – undo
141 141
     */
142 142
     public function createTranslator() : Mailcode_Translator
143 143
     {
144
-        if(!isset($this->translator))
144
+        if (!isset($this->translator))
145 145
         {
146 146
             $this->translator = new Mailcode_Translator(); 
147 147
         }
@@ -189,7 +189,7 @@  discard block
 block discarded – undo
189 189
         return self::$logger;
190 190
     }
191 191
 
192
-    public static function setDebugging(bool $enabled=true) : void
192
+    public static function setDebugging(bool $enabled = true) : void
193 193
     {
194 194
         self::$debug = $enabled;
195 195
     }
@@ -204,9 +204,9 @@  discard block
 block discarded – undo
204 204
      * @param array<string|int,mixed> $context
205 205
      * @return void
206 206
      */
207
-    public static function debug(string $message, array $context=array()) : void
207
+    public static function debug(string $message, array $context = array()) : void
208 208
     {
209
-        if(self::$debug && isset(self::$logger))
209
+        if (self::$debug && isset(self::$logger))
210 210
         {
211 211
             self::$logger->debug($message, $context);
212 212
         }
Please login to merge, or discard this patch.
src/Mailcode/Variables/Collection/Invalid.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
 
27 27
     public function add(Mailcode_Variables_Variable $variable) : Mailcode_Variables_Collection
28 28
     {
29
-        if($variable->isValid())
29
+        if ($variable->isValid())
30 30
         {
31 31
             return $this;
32 32
         }
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
     {
39 39
         $first = $this->getFirst();
40 40
 
41
-        if($first)
41
+        if ($first)
42 42
         {
43 43
             return $first->getValidationResult();
44 44
         }
Please login to merge, or discard this patch.
src/Mailcode/Variables/Variable.php 2 patches
Indentation   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -32,34 +32,34 @@
 block discarded – undo
32 32
     public const VALIDATION_ERROR_PATH_UNDERSCORE = 48203;
33 33
     public const VALIDATION_ERROR_NAME_UNDERSCORE = 48204;
34 34
     
35
-   /**
36
-    * @var string
37
-    */
35
+    /**
36
+     * @var string
37
+     */
38 38
     protected string $path;
39 39
     
40
-   /**
41
-    * @var string
42
-    */
40
+    /**
41
+     * @var string
42
+     */
43 43
     protected string $name;
44 44
     
45
-   /**
46
-    * @var string
47
-    */
45
+    /**
46
+     * @var string
47
+     */
48 48
     protected string $matchedText;
49 49
     
50
-   /**
51
-    * @var string
52
-    */
50
+    /**
51
+     * @var string
52
+     */
53 53
     protected string $hash = '';
54 54
     
55
-   /**
56
-    * @var OperationResult|NULL
57
-    */
55
+    /**
56
+     * @var OperationResult|NULL
57
+     */
58 58
     protected ?OperationResult $validationResult = null;
59 59
     
60
-   /**
61
-    * @var array<string>
62
-    */
60
+    /**
61
+     * @var array<string>
62
+     */
63 63
     protected $validations = array(
64 64
         'number_path',
65 65
         'number_name',
Please login to merge, or discard this patch.
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
      */
73 73
     private ?Mailcode_Commands_Command $command;
74 74
 
75
-    public function __construct(string $path, string $name, string $matchedText, ?Mailcode_Commands_Command $sourceCommand=null)
75
+    public function __construct(string $path, string $name, string $matchedText, ?Mailcode_Commands_Command $sourceCommand = null)
76 76
     {
77 77
         $this->path = $path;
78 78
         $this->name = $name;
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
     
96 96
     public function getFullName() : string
97 97
     {
98
-        if(empty($this->path))
98
+        if (empty($this->path))
99 99
         {
100 100
             return '$'.$this->name;
101 101
         }
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
      */
114 114
     public function getUniqueName() : string
115 115
     {
116
-        if(isset($this->command))
116
+        if (isset($this->command))
117 117
         {
118 118
             return $this->getFullName().'/'.$this->command->getHash();
119 119
         }
@@ -138,7 +138,7 @@  discard block
 block discarded – undo
138 138
     
139 139
     public function getHash() : string
140 140
     {
141
-        if(empty($this->hash))
141
+        if (empty($this->hash))
142 142
         {
143 143
             $this->hash = md5($this->matchedText);
144 144
         }
@@ -157,7 +157,7 @@  discard block
 block discarded – undo
157 157
      */
158 158
     public function getValidationResult() : OperationResult
159 159
     {
160
-        if(isset($this->validationResult))
160
+        if (isset($this->validationResult))
161 161
         {
162 162
             return $this->validationResult;
163 163
         }
@@ -171,11 +171,11 @@  discard block
 block discarded – undo
171 171
 
172 172
     protected function validate(OperationResult $result) : void
173 173
     {
174
-        foreach($this->validations as $validation)
174
+        foreach ($this->validations as $validation)
175 175
         {
176 176
             $method = 'validate_'.$validation;
177 177
             
178
-            if(!method_exists($this, $method))
178
+            if (!method_exists($this, $method))
179 179
             {
180 180
                 throw new Mailcode_Exception(
181 181
                     'Unknown validation method',
@@ -220,7 +220,7 @@  discard block
 block discarded – undo
220 220
     
221 221
     protected function validateNumber(string $value, int $errorCode) : void
222 222
     {
223
-        if(!is_numeric(substr($value, 0, 1)))
223
+        if (!is_numeric(substr($value, 0, 1)))
224 224
         {
225 225
             return;
226 226
         }
@@ -238,7 +238,7 @@  discard block
 block discarded – undo
238 238
     protected function validateUnderscore(string $value, int $errorCode) : void
239 239
     {
240 240
         // allow empty paths
241
-        if(empty($value))
241
+        if (empty($value))
242 242
         {
243 243
             return;
244 244
         }
@@ -246,7 +246,7 @@  discard block
 block discarded – undo
246 246
         $length = strlen($value);
247 247
         
248 248
         // trimming underscores does not change the length: no underscores at start or end of string.
249
-        if(strlen(trim($value, '_')) === $length)
249
+        if (strlen(trim($value, '_')) === $length)
250 250
         {
251 251
             return;
252 252
         }
Please login to merge, or discard this patch.
src/Mailcode/Parser/Statement.php 2 patches
Indentation   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -26,24 +26,24 @@  discard block
 block discarded – undo
26 26
     public const VALIDATION_EMPTY = 48801;
27 27
     public const VALIDATION_UNQUOTED_STRING_LITERALS = 48802;
28 28
     
29
-   /**
30
-    * @var string
31
-    */
29
+    /**
30
+     * @var string
31
+     */
32 32
     protected string $statement;
33 33
     
34
-   /**
35
-    * @var OperationResult
36
-    */
34
+    /**
35
+     * @var OperationResult
36
+     */
37 37
     protected OperationResult $result;
38 38
     
39
-   /**
40
-    * @var Mailcode_Parser_Statement_Tokenizer
41
-    */
39
+    /**
40
+     * @var Mailcode_Parser_Statement_Tokenizer
41
+     */
42 42
     protected Mailcode_Parser_Statement_Tokenizer $tokenizer;
43 43
     
44
-   /**
45
-    * @var Mailcode_Parser_Statement_Info|NULL
46
-    */
44
+    /**
45
+     * @var Mailcode_Parser_Statement_Info|NULL
46
+     */
47 47
     protected ?Mailcode_Parser_Statement_Info $info = null;
48 48
 
49 49
     /**
@@ -138,7 +138,7 @@  discard block
 block discarded – undo
138 138
         if($unknown)
139 139
         {
140 140
             $this->result->makeError(
141
-               t('Unquoted string literal found:').' ('.htmlspecialchars($unknown->getMatchedText()).')',
141
+                t('Unquoted string literal found:').' ('.htmlspecialchars($unknown->getMatchedText()).')',
142 142
                 self::VALIDATION_UNQUOTED_STRING_LITERALS
143 143
             );
144 144
         }
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
      */
57 57
     private ?Mailcode_Commands_Command $sourceCommand = null;
58 58
 
59
-    public function __construct(string $statement, bool $freeform=false, ?Mailcode_Commands_Command $sourceCommand=null)
59
+    public function __construct(string $statement, bool $freeform = false, ?Mailcode_Commands_Command $sourceCommand = null)
60 60
     {
61 61
         $this->sourceCommand = $sourceCommand;
62 62
         $this->statement = $this->prepareStatement($statement);
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
     
107 107
     public function getInfo() : Mailcode_Parser_Statement_Info
108 108
     {
109
-        if($this->info instanceof Mailcode_Parser_Statement_Info)
109
+        if ($this->info instanceof Mailcode_Parser_Statement_Info)
110 110
         {
111 111
             return $this->info; 
112 112
         }
@@ -118,12 +118,12 @@  discard block
 block discarded – undo
118 118
     
119 119
     protected function validate() : void
120 120
     {
121
-        if($this->freeform)
121
+        if ($this->freeform)
122 122
         {
123 123
             return;
124 124
         }
125 125
 
126
-        if(!$this->tokenizer->hasTokens())
126
+        if (!$this->tokenizer->hasTokens())
127 127
         {
128 128
             $this->result->makeError(
129 129
                 t('Empty statement'),
@@ -135,7 +135,7 @@  discard block
 block discarded – undo
135 135
         
136 136
         $unknown = $this->tokenizer->getFirstUnknown();
137 137
         
138
-        if($unknown)
138
+        if ($unknown)
139 139
         {
140 140
             $this->result->makeError(
141 141
                t('Unquoted string literal found:').' ('.htmlspecialchars($unknown->getMatchedText()).')',
Please login to merge, or discard this patch.
src/Mailcode/Parser/PreParser/CommandDef.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -139,11 +139,11 @@
 block discarded – undo
139 139
         $commands = $parser->getCommands();
140 140
         $content = $this->getContent();
141 141
 
142
-        foreach($commands as $command)
142
+        foreach ($commands as $command)
143 143
         {
144 144
             $string = $command->getOpeningText();
145 145
 
146
-            if(strpos($content, $string) !== false)
146
+            if (strpos($content, $string) !== false)
147 147
             {
148 148
                 $this->addEscapeError($command, $collection);
149 149
                 return false;
Please login to merge, or discard this patch.
src/Mailcode/Parser/Safeguard/PlaceholderCollection.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
      */
40 40
     public function getByIndex(int $index) : Mailcode_Parser_Safeguard_Placeholder
41 41
     {
42
-        if(isset($this->placeholders[$index]))
42
+        if (isset($this->placeholders[$index]))
43 43
         {
44 44
             return $this->placeholders[$index];
45 45
         }
@@ -53,9 +53,9 @@  discard block
 block discarded – undo
53 53
 
54 54
     public function getByCommand(Mailcode_Commands_Command $command) : Mailcode_Parser_Safeguard_Placeholder
55 55
     {
56
-        foreach($this->placeholders as $placeholder)
56
+        foreach ($this->placeholders as $placeholder)
57 57
         {
58
-            if($placeholder->getCommand() === $command)
58
+            if ($placeholder->getCommand() === $command)
59 59
             {
60 60
                 return $placeholder;
61 61
             }
@@ -77,9 +77,9 @@  discard block
 block discarded – undo
77 77
      */
78 78
     public function getByID(int $id) : Mailcode_Parser_Safeguard_Placeholder
79 79
     {
80
-        foreach($this->placeholders as $placeholder)
80
+        foreach ($this->placeholders as $placeholder)
81 81
         {
82
-            if($placeholder->getID() === $id)
82
+            if ($placeholder->getID() === $id)
83 83
             {
84 84
                 return $placeholder;
85 85
             }
@@ -104,9 +104,9 @@  discard block
 block discarded – undo
104 104
      */
105 105
     public function getByString(string $string) : Mailcode_Parser_Safeguard_Placeholder
106 106
     {
107
-        foreach($this->placeholders as $placeholder)
107
+        foreach ($this->placeholders as $placeholder)
108 108
         {
109
-            if($placeholder->getReplacementText() === $string)
109
+            if ($placeholder->getReplacementText() === $string)
110 110
             {
111 111
                 return $placeholder;
112 112
             }
@@ -129,14 +129,14 @@  discard block
 block discarded – undo
129 129
      */
130 130
     public function getStrings() : array
131 131
     {
132
-        if(is_array($this->placeholderStrings))
132
+        if (is_array($this->placeholderStrings))
133 133
         {
134 134
             return $this->placeholderStrings;
135 135
         }
136 136
 
137 137
         $this->placeholderStrings = array();
138 138
 
139
-        foreach($this->placeholders as $placeholder)
139
+        foreach ($this->placeholders as $placeholder)
140 140
         {
141 141
             $this->placeholderStrings[] = $placeholder->getReplacementText();
142 142
         }
Please login to merge, or discard this patch.
src/Mailcode/Factory/CommandSets.php 2 patches
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -35,14 +35,14 @@
 block discarded – undo
35 35
      */
36 36
     private ?Mailcode_Factory_CommandSets_Set_Misc $misc = null;
37 37
     
38
-   /**
39
-    * @var Mailcode_Factory_CommandSets_Set_Set|NULL
40
-    */
38
+    /**
39
+     * @var Mailcode_Factory_CommandSets_Set_Set|NULL
40
+     */
41 41
     private ?Mailcode_Factory_CommandSets_Set_Set $set = null;
42 42
     
43
-   /**
44
-    * @var Mailcode_Factory_CommandSets_Set_ElseIf|NULL
45
-    */
43
+    /**
44
+     * @var Mailcode_Factory_CommandSets_Set_ElseIf|NULL
45
+     */
46 46
     private ?Mailcode_Factory_CommandSets_Set_ElseIf $elseIf = null;
47 47
     
48 48
     public function if() : Mailcode_Factory_CommandSets_Set_If
Please login to merge, or discard this patch.
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -45,9 +45,9 @@  discard block
 block discarded – undo
45 45
     */
46 46
     private ?Mailcode_Factory_CommandSets_Set_ElseIf $elseIf = null;
47 47
     
48
-    public function if() : Mailcode_Factory_CommandSets_Set_If
48
+    public function if () : Mailcode_Factory_CommandSets_Set_If
49 49
     {
50
-        if(!isset($this->if))
50
+        if (!isset($this->if))
51 51
         {
52 52
             $this->if = new Mailcode_Factory_CommandSets_Set_If();
53 53
         }
@@ -55,9 +55,9 @@  discard block
 block discarded – undo
55 55
         return $this->if;
56 56
     }
57 57
     
58
-    public function elseIf() : Mailcode_Factory_CommandSets_Set_ElseIf
58
+    public function elseIf () : Mailcode_Factory_CommandSets_Set_ElseIf
59 59
     {
60
-        if(!isset($this->elseIf))
60
+        if (!isset($this->elseIf))
61 61
         {
62 62
             $this->elseIf = new Mailcode_Factory_CommandSets_Set_ElseIf();
63 63
         }
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
     
68 68
     public function show() : Mailcode_Factory_CommandSets_Set_Show
69 69
     {
70
-        if(!isset($this->show))
70
+        if (!isset($this->show))
71 71
         {
72 72
             $this->show = new Mailcode_Factory_CommandSets_Set_Show();
73 73
         }
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
     
78 78
     public function misc() : Mailcode_Factory_CommandSets_Set_Misc
79 79
     {
80
-        if(!isset($this->misc))
80
+        if (!isset($this->misc))
81 81
         {
82 82
             $this->misc = new Mailcode_Factory_CommandSets_Set_Misc();
83 83
         }
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
     
88 88
     public function set() : Mailcode_Factory_CommandSets_Set_Set
89 89
     {
90
-        if(!isset($this->set))
90
+        if (!isset($this->set))
91 91
         {
92 92
             $this->set = new Mailcode_Factory_CommandSets_Set_Set();
93 93
         }
Please login to merge, or discard this patch.
src/Mailcode/Traits/Commands/Validation/NoHTML.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -38,9 +38,9 @@  discard block
 block discarded – undo
38 38
 
39 39
         $keywords = $this->params->getInfo()->getKeywords();
40 40
 
41
-        foreach($keywords as $keyword)
41
+        foreach ($keywords as $keyword)
42 42
         {
43
-            if($keyword->isNoHTML())
43
+            if ($keyword->isNoHTML())
44 44
             {
45 45
                 $this->noHTMLToken = $keyword;
46 46
                 break;
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
      * @return $this
56 56
      * @throws Mailcode_Exception
57 57
      */
58
-    public function setHTMLEnabled(bool $enabled=true) : self
58
+    public function setHTMLEnabled(bool $enabled = true) : self
59 59
     {
60 60
         $this->params->getInfo()->setKeywordEnabled(Mailcode_Commands_Keywords::TYPE_NOHTML, !$enabled);
61 61
 
Please login to merge, or discard this patch.