Passed
Push — master ( 77f2a3...0c35c3 )
by Sebastian
03:02
created
src/Mailcode/Parser/Safeguard.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -260,8 +260,7 @@
 block discarded – undo
260 260
         if($highlighted)
261 261
         {
262 262
             $formatting->replaceWithHTMLHighlighting();
263
-        }
264
-        else 
263
+        } else 
265 264
         {
266 265
             $formatting->replaceWithNormalized();
267 266
         }
Please login to merge, or discard this patch.
src/Mailcode/Parser.php 1 patch
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -146,8 +146,7 @@  discard block
 block discarded – undo
146 146
         if($cmd instanceof Mailcode_Commands_Command_Type_Opening)
147 147
         {
148 148
             $this->stack[] = $cmd;
149
-        }
150
-        else if($cmd instanceof Mailcode_Commands_Command_Type_Closing)
149
+        } else if($cmd instanceof Mailcode_Commands_Command_Type_Closing)
151 150
         {
152 151
             array_pop($this->stack);
153 152
         }
@@ -177,13 +176,11 @@  discard block
 block discarded – undo
177 176
         if(!empty($matches[1][$index]))
178 177
         {
179 178
             $name = $matches[1][$index];
180
-        }
181
-        else if(!empty($matches[2][$index]))
179
+        } else if(!empty($matches[2][$index]))
182 180
         {
183 181
             $name = $matches[2][$index];
184 182
             $params = $matches[3][$index];
185
-        }
186
-        else if(!empty($matches[4][$index]))
183
+        } else if(!empty($matches[4][$index]))
187 184
         {
188 185
             $name = $matches[4][$index];
189 186
             $type = $matches[5][$index];
Please login to merge, or discard this patch.
src/Mailcode/Traits/Commands/Validation/Value.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -36,8 +36,7 @@
 block discarded – undo
36 36
         if($var->isValid())
37 37
         {
38 38
             $this->valueToken = $var->getToken();
39
-        }
40
-        else
39
+        } else
41 40
         {
42 41
             $this->validationResult->makeError(
43 42
                 t('No value has been specified.'),
Please login to merge, or discard this patch.
src/Mailcode/Commands/Normalizer.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -75,8 +75,7 @@
 block discarded – undo
75 75
         if($command->hasFreeformParameters())
76 76
         {
77 77
             $params = $command->getParams()->getStatementString();
78
-        }
79
-        else
78
+        } else
80 79
         {
81 80
             $params = $command->getParams()->getNormalized();
82 81
         }
Please login to merge, or discard this patch.
src/Mailcode/Factory.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -178,10 +178,12 @@
 block discarded – undo
178 178
 
179 179
     // endregion
180 180
     
181
-    public static function else() : Mailcode_Commands_Command_Else
181
+    public static function else {
182
+        () : Mailcode_Commands_Command_Else
182 183
     {
183 184
         return self::$commandSets->if()->else();
184 185
     }
186
+    }
185 187
     
186 188
     public static function if(string $condition, string $type='') : Mailcode_Commands_Command_If
187 189
     {
Please login to merge, or discard this patch.