Passed
Push — master ( 707ba4...19aa6f )
by Sebastian
02:43
created
src/Mailcode/Commands/Command.php 2 patches
Spacing   +21 added lines, -21 removed lines patch added patch discarded remove patch
@@ -130,7 +130,7 @@  discard block
 block discarded – undo
130 130
      */
131 131
     private $nestingValidated = false;
132 132
 
133
-    public function __construct(string $type='', string $paramsString='', string $matchedText='')
133
+    public function __construct(string $type = '', string $paramsString = '', string $matchedText = '')
134 134
     {
135 135
         $this->type = $type;
136 136
         $this->paramsString = html_entity_decode($paramsString);
@@ -226,7 +226,7 @@  discard block
 block discarded – undo
226 226
     {
227 227
         $this->requireNonDummy();
228 228
         
229
-        if($this->hash === '') {
229
+        if ($this->hash === '') {
230 230
             $this->hash = md5($this->matchedText);
231 231
         }
232 232
         
@@ -235,7 +235,7 @@  discard block
 block discarded – undo
235 235
     
236 236
     protected function requireNonDummy() : void
237 237
     {
238
-        if(!$this->isDummy())
238
+        if (!$this->isDummy())
239 239
         {
240 240
             return;
241 241
         }
@@ -254,7 +254,7 @@  discard block
 block discarded – undo
254 254
     
255 255
     protected function validate() : OperationResult
256 256
     {
257
-        if(!$this->validated)
257
+        if (!$this->validated)
258 258
         {
259 259
             $this->requireNonDummy();
260 260
             $this->validateSyntax();
@@ -267,7 +267,7 @@  discard block
 block discarded – undo
267 267
     
268 268
     public function getValidationResult() :  OperationResult
269 269
     {
270
-        if(isset($this->validationResult)) 
270
+        if (isset($this->validationResult)) 
271 271
         {
272 272
             return $this->validationResult;
273 273
         }
@@ -283,10 +283,10 @@  discard block
 block discarded – undo
283 283
     {
284 284
         $validations = $this->resolveValidations();
285 285
 
286
-        foreach($validations as $validation)
286
+        foreach ($validations as $validation)
287 287
         {
288 288
             // break off at the first validation issue
289
-            if(!$this->validateSyntaxMethod($validation))
289
+            if (!$this->validateSyntaxMethod($validation))
290 290
             {
291 291
                 return;
292 292
             }
@@ -305,7 +305,7 @@  discard block
 block discarded – undo
305 305
     {
306 306
         $method = 'validateSyntax_'.$validation;
307 307
         
308
-        if(!method_exists($this, $method))
308
+        if (!method_exists($this, $method))
309 309
         {
310 310
             throw new Mailcode_Exception(
311 311
                 'Missing validation method ['.$validation.']',
@@ -335,7 +335,7 @@  discard block
 block discarded – undo
335 335
 
336 336
     public function validateNesting() : OperationResult
337 337
     {
338
-        if($this->nestingValidated)
338
+        if ($this->nestingValidated)
339 339
         {
340 340
             return $this->validationResult;
341 341
         }
@@ -359,7 +359,7 @@  discard block
 block discarded – undo
359 359
     
360 360
     public function getType() : string
361 361
     {
362
-        if($this->supportsType())
362
+        if ($this->supportsType())
363 363
         {
364 364
             return $this->type;
365 365
         }
@@ -379,7 +379,7 @@  discard block
 block discarded – undo
379 379
     
380 380
     public function getHighlighted() : string
381 381
     {
382
-        if(!$this->isValid())
382
+        if (!$this->isValid())
383 383
         {
384 384
             return '';
385 385
         }
@@ -390,7 +390,7 @@  discard block
 block discarded – undo
390 390
     
391 391
     public function getParamsString() : string
392 392
     {
393
-        if($this->requiresParameters())
393
+        if ($this->requiresParameters())
394 394
         {
395 395
             return $this->paramsString;
396 396
         }
@@ -427,22 +427,22 @@  discard block
 block discarded – undo
427 427
     
428 428
     public final function getCommandType() : string
429 429
     {
430
-        if($this instanceof Mailcode_Commands_Command_Type_Closing)
430
+        if ($this instanceof Mailcode_Commands_Command_Type_Closing)
431 431
         {
432 432
             return 'Closing';
433 433
         }
434 434
         
435
-        if($this instanceof Mailcode_Commands_Command_Type_Opening)
435
+        if ($this instanceof Mailcode_Commands_Command_Type_Opening)
436 436
         {
437 437
             return 'Opening';
438 438
         }
439 439
         
440
-        if($this instanceof Mailcode_Commands_Command_Type_Sibling)
440
+        if ($this instanceof Mailcode_Commands_Command_Type_Sibling)
441 441
         {
442 442
             return 'Sibling';
443 443
         }
444 444
         
445
-        if($this instanceof Mailcode_Commands_Command_Type_Standalone)
445
+        if ($this instanceof Mailcode_Commands_Command_Type_Standalone)
446 446
         {
447 447
             return 'Standalone';
448 448
         }
@@ -492,7 +492,7 @@  discard block
 block discarded – undo
492 492
     
493 493
     public function getLogicKeywords() : Mailcode_Commands_LogicKeywords
494 494
     {
495
-        if($this->supportsLogicKeywords() && isset($this->logicKeywords))
495
+        if ($this->supportsLogicKeywords() && isset($this->logicKeywords))
496 496
         {
497 497
             return $this->logicKeywords;
498 498
         }
@@ -526,7 +526,7 @@  discard block
 block discarded – undo
526 526
     */
527 527
     public function getTranslationParam(string $name)
528 528
     {
529
-        if(isset($this->translationParams[$name]))
529
+        if (isset($this->translationParams[$name]))
530 530
         {
531 531
             return $this->translationParams[$name];
532 532
         }
@@ -538,7 +538,7 @@  discard block
 block discarded – undo
538 538
      * @param bool $encoding
539 539
      * @return $this
540 540
      */
541
-    public function setURLEncoding(bool $encoding=true)
541
+    public function setURLEncoding(bool $encoding = true)
542 542
     {
543 543
         $this->requireURLEncoding();
544 544
 
@@ -554,7 +554,7 @@  discard block
 block discarded – undo
554 554
      * @return $this
555 555
      * @throws Mailcode_Exception
556 556
      */
557
-    public function setURLDecoding(bool $decode=true)
557
+    public function setURLDecoding(bool $decode = true)
558 558
     {
559 559
         $this->requireURLEncoding();
560 560
 
@@ -565,7 +565,7 @@  discard block
 block discarded – undo
565 565
 
566 566
     protected function requireURLEncoding() : void
567 567
     {
568
-        if($this->supportsURLEncoding()) {
568
+        if ($this->supportsURLEncoding()) {
569 569
             return;
570 570
         }
571 571
 
Please login to merge, or discard this patch.
Indentation   +100 added lines, -100 removed lines patch added patch discarded remove patch
@@ -43,44 +43,44 @@  discard block
 block discarded – undo
43 43
 
44 44
     const META_URL_ENCODING = 'url_encoding';
45 45
 
46
-   /**
47
-    * @var string
48
-    */
46
+    /**
47
+     * @var string
48
+     */
49 49
     protected $type = '';
50 50
 
51
-   /**
52
-    * @var string
53
-    */
51
+    /**
52
+     * @var string
53
+     */
54 54
     protected $paramsString = '';
55 55
     
56
-   /**
57
-    * @var string
58
-    */
56
+    /**
57
+     * @var string
58
+     */
59 59
     protected $matchedText = '';
60 60
 
61
-   /**
62
-    * @var string
63
-    */
61
+    /**
62
+     * @var string
63
+     */
64 64
     protected $hash = '';
65 65
     
66
-   /**
67
-    * @var OperationResult
68
-    */
66
+    /**
67
+     * @var OperationResult
68
+     */
69 69
     protected $validationResult = null;
70 70
     
71
-   /**
72
-    * @var \Mailcode\Mailcode
73
-    */
71
+    /**
72
+     * @var \Mailcode\Mailcode
73
+     */
74 74
     protected $mailcode;
75 75
     
76
-   /**
77
-    * @var \Mailcode\Mailcode_Parser_Statement
78
-    */
76
+    /**
77
+     * @var \Mailcode\Mailcode_Parser_Statement
78
+     */
79 79
     protected $params;
80 80
 
81
-   /**
82
-    * @var string[] 
83
-    */
81
+    /**
82
+     * @var string[] 
83
+     */
84 84
     protected $validations = array(
85 85
         'params_empty',
86 86
         'params_keywords',
@@ -89,24 +89,24 @@  discard block
 block discarded – undo
89 89
         'type_unsupported'
90 90
     );
91 91
     
92
-   /**
93
-    * @var string
94
-    */
92
+    /**
93
+     * @var string
94
+     */
95 95
     protected $comment = '';
96 96
     
97
-   /**
98
-    * @var Mailcode_Commands_LogicKeywords|NULL
99
-    */
97
+    /**
98
+     * @var Mailcode_Commands_LogicKeywords|NULL
99
+     */
100 100
     protected $logicKeywords;
101 101
     
102
-   /**
103
-    * @var Mailcode_Parser_Statement_Validator
104
-    */
102
+    /**
103
+     * @var Mailcode_Parser_Statement_Validator
104
+     */
105 105
     protected $validator;
106 106
     
107
-   /**
108
-    * @var boolean
109
-    */
107
+    /**
108
+     * @var boolean
109
+     */
110 110
     private $validated = false;
111 111
 
112 112
     /**
@@ -141,13 +141,13 @@  discard block
 block discarded – undo
141 141
         
142 142
     }
143 143
 
144
-   /**
145
-    * Sets the command's parent opening command, if any.
146
-    * NOTE: This is set automatically by the parser, and
147
-    * should not be called manually.
148
-    *
149
-    * @param Mailcode_Commands_Command $command
150
-    */
144
+    /**
145
+     * Sets the command's parent opening command, if any.
146
+     * NOTE: This is set automatically by the parser, and
147
+     * should not be called manually.
148
+     *
149
+     * @param Mailcode_Commands_Command $command
150
+     */
151 151
     public function setParent(Mailcode_Commands_Command $command) : void
152 152
     {
153 153
         $this->parent = $command;
@@ -163,9 +163,9 @@  discard block
 block discarded – undo
163 163
         return $this->parent;
164 164
     }
165 165
     
166
-   /**
167
-    * @return string The ID of the command = the name of the command class file.
168
-    */
166
+    /**
167
+     * @return string The ID of the command = the name of the command class file.
168
+     */
169 169
     public function getID() : string
170 170
     {
171 171
         // account for commands with types: If_Variable should still return If.
@@ -174,14 +174,14 @@  discard block
 block discarded – undo
174 174
         return array_shift($tokens);
175 175
     }
176 176
     
177
-   /**
178
-    * Sets an optional comment that is not used anywhere, but
179
-    * can be used by the application to track why a command is
180
-    * used somewhere. 
181
-    * 
182
-    * @param string $comment
183
-    * @return Mailcode_Commands_Command
184
-    */
177
+    /**
178
+     * Sets an optional comment that is not used anywhere, but
179
+     * can be used by the application to track why a command is
180
+     * used somewhere. 
181
+     * 
182
+     * @param string $comment
183
+     * @return Mailcode_Commands_Command
184
+     */
185 185
     public function setComment(string $comment) : Mailcode_Commands_Command
186 186
     {
187 187
         $this->comment = $comment;
@@ -189,23 +189,23 @@  discard block
 block discarded – undo
189 189
         return $this;
190 190
     }
191 191
     
192
-   /**
193
-    * Retrieves the previously set comment, if any.
194
-    * 
195
-    * @return string
196
-    */
192
+    /**
193
+     * Retrieves the previously set comment, if any.
194
+     * 
195
+     * @return string
196
+     */
197 197
     public function getComment() : string
198 198
     {
199 199
         return $this->comment;
200 200
     }
201 201
     
202
-   /**
203
-    * Checks whether this is a dummy command, which is only
204
-    * used to access information on the command type. It cannot
205
-    * be used as an actual live command.
206
-    * 
207
-    * @return bool
208
-    */
202
+    /**
203
+     * Checks whether this is a dummy command, which is only
204
+     * used to access information on the command type. It cannot
205
+     * be used as an actual live command.
206
+     * 
207
+     * @return bool
208
+     */
209 209
     public function isDummy() : bool
210 210
     {
211 211
         return $this->type === '__dummy';
@@ -319,9 +319,9 @@  discard block
 block discarded – undo
319 319
         return $this->validationResult->isValid();
320 320
     }
321 321
     
322
-   /**
323
-    * @return string[]
324
-    */
322
+    /**
323
+     * @return string[]
324
+     */
325 325
     abstract protected function getValidations() : array;
326 326
 
327 327
     protected function _validateNesting() : void
@@ -409,12 +409,12 @@  discard block
 block discarded – undo
409 409
 
410 410
     abstract public function supportsURLEncoding() : bool;
411 411
     
412
-   /**
413
-    * Whether the command allows using logic keywords like "and:" or "or:"
414
-    * in the command parameters.
415
-    * 
416
-    * @return bool
417
-    */
412
+    /**
413
+     * Whether the command allows using logic keywords like "and:" or "or:"
414
+     * in the command parameters.
415
+     * 
416
+     * @return bool
417
+     */
418 418
     abstract public function supportsLogicKeywords() : bool;
419 419
     
420 420
     abstract public function generatesContent() : bool;
@@ -460,22 +460,22 @@  discard block
 block discarded – undo
460 460
         return $normalizer->normalize();
461 461
     }
462 462
     
463
-   /**
464
-    * Retrieves the names of all the command's supported types: the part
465
-    * between the command name and the colon. Example: {command type: params}.
466
-    * 
467
-    * @return string[]
468
-    */
463
+    /**
464
+     * Retrieves the names of all the command's supported types: the part
465
+     * between the command name and the colon. Example: {command type: params}.
466
+     * 
467
+     * @return string[]
468
+     */
469 469
     public function getSupportedTypes() : array
470 470
     {
471 471
         return array();
472 472
     }
473 473
     
474
-   /**
475
-    * Retrieves all variable names used in the command.
476
-    * 
477
-    * @return Mailcode_Variables_Collection_Regular
478
-    */
474
+    /**
475
+     * Retrieves all variable names used in the command.
476
+     * 
477
+     * @return Mailcode_Variables_Collection_Regular
478
+     */
479 479
     public function getVariables() : Mailcode_Variables_Collection_Regular
480 480
     {
481 481
         return Mailcode::create()->findVariables($this->paramsString, $this);
@@ -500,26 +500,26 @@  discard block
 block discarded – undo
500 500
         );
501 501
     }
502 502
 
503
-   /**
504
-    * Sets a parameter for the translation backend. The backend can use
505
-    * these to allow command-specific configurations.
506
-    *
507
-    * @param string $name
508
-    * @param mixed $value
509
-    * @return $this
510
-    */
503
+    /**
504
+     * Sets a parameter for the translation backend. The backend can use
505
+     * these to allow command-specific configurations.
506
+     *
507
+     * @param string $name
508
+     * @param mixed $value
509
+     * @return $this
510
+     */
511 511
     public function setTranslationParam(string $name, $value)
512 512
     {
513 513
         $this->translationParams[$name] = $value;
514 514
         return $this;
515 515
     }
516 516
 
517
-   /**
518
-    * Retrieves a previously set translation parameter.
519
-    *
520
-    * @param string $name
521
-    * @return mixed
522
-    */
517
+    /**
518
+     * Retrieves a previously set translation parameter.
519
+     *
520
+     * @param string $name
521
+     * @return mixed
522
+     */
523 523
     public function getTranslationParam(string $name)
524 524
     {
525 525
         if(isset($this->translationParams[$name]))
Please login to merge, or discard this patch.
src/Mailcode/Commands/Command/Break.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
 
70 70
     protected function _validateNesting() : void
71 71
     {
72
-        if($this->findParentFor($this))
72
+        if ($this->findParentFor($this))
73 73
         {
74 74
             return;
75 75
         }
@@ -84,12 +84,12 @@  discard block
 block discarded – undo
84 84
     {
85 85
         $parent = $command->getParent();
86 86
 
87
-        if($parent === null)
87
+        if ($parent === null)
88 88
         {
89 89
             return false;
90 90
         }
91 91
 
92
-        if($parent instanceof Mailcode_Commands_Command_For)
92
+        if ($parent instanceof Mailcode_Commands_Command_For)
93 93
         {
94 94
             return true;
95 95
         }
Please login to merge, or discard this patch.
src/Mailcode/Factory/CommandSets/Set/Misc.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
     
35 35
         $this->instantiator->checkCommand($cmd);
36 36
         
37
-        if($cmd instanceof Mailcode_Commands_Command_Comment)
37
+        if ($cmd instanceof Mailcode_Commands_Command_Comment)
38 38
         {
39 39
             return $cmd;
40 40
         }
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
         throw $this->instantiator->exceptionUnexpectedType('Comment', $cmd);
43 43
     }
44 44
     
45
-    public function for(string $sourceVariable, string $loopVariable) : Mailcode_Commands_Command_For
45
+    public function for (string $sourceVariable, string $loopVariable) : Mailcode_Commands_Command_For
46 46
     {
47 47
         $sourceVariable = '$'.ltrim($sourceVariable, '$');
48 48
         $loopVariable = '$'.ltrim($loopVariable, '$');
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
         
65 65
         $this->instantiator->checkCommand($cmd);
66 66
         
67
-        if($cmd instanceof Mailcode_Commands_Command_For)
67
+        if ($cmd instanceof Mailcode_Commands_Command_For)
68 68
         {
69 69
             return $cmd;
70 70
         }
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
 
84 84
         $this->instantiator->checkCommand($cmd);
85 85
 
86
-        if($cmd instanceof Mailcode_Commands_Command_Break)
86
+        if ($cmd instanceof Mailcode_Commands_Command_Break)
87 87
         {
88 88
             return $cmd;
89 89
         }
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
 
109 109
         $this->instantiator->checkCommand($cmd);
110 110
 
111
-        if($cmd instanceof Mailcode_Commands_Command_Code)
111
+        if ($cmd instanceof Mailcode_Commands_Command_Code)
112 112
         {
113 113
             return $cmd;
114 114
         }
Please login to merge, or discard this patch.
src/Mailcode/Traits/Commands/Validation/EmptyParams.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -29,12 +29,12 @@
 block discarded – undo
29 29
 
30 30
     protected function validateSyntax_params_empty() : void
31 31
     {
32
-        if(!$this->requiresParameters())
32
+        if (!$this->requiresParameters())
33 33
         {
34 34
             return;
35 35
         }
36 36
 
37
-        if(empty($this->paramsString))
37
+        if (empty($this->paramsString))
38 38
         {
39 39
             $this->validationResult->makeError(
40 40
                 t('Parameters have to be specified.'),
Please login to merge, or discard this patch.
src/Mailcode/Traits/Commands/Validation/TypeSupported.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -35,14 +35,14 @@
 block discarded – undo
35 35
 
36 36
     protected function validateSyntax_type_supported() : void
37 37
     {
38
-        if(!$this->supportsType() || empty($this->type))
38
+        if (!$this->supportsType() || empty($this->type))
39 39
         {
40 40
             return;
41 41
         }
42 42
 
43 43
         $types = $this->getSupportedTypes();
44 44
 
45
-        if(!in_array($this->type, $types))
45
+        if (!in_array($this->type, $types))
46 46
         {
47 47
             $this->validationResult->makeError(
48 48
                 t('The command addon %1$s is not supported.', $this->type).' '.
Please login to merge, or discard this patch.
src/Mailcode/Traits/Commands/Validation/ParamKeywords.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -31,14 +31,14 @@
 block discarded – undo
31 31
 
32 32
     protected function validateSyntax_params_keywords() : void
33 33
     {
34
-        if(!$this->supportsLogicKeywords())
34
+        if (!$this->supportsLogicKeywords())
35 35
         {
36 36
             return;
37 37
         }
38 38
 
39 39
         $this->logicKeywords = new Mailcode_Commands_LogicKeywords($this, $this->paramsString);
40 40
 
41
-        if(!$this->logicKeywords->isValid())
41
+        if (!$this->logicKeywords->isValid())
42 42
         {
43 43
             $this->validationResult->makeError(
44 44
                 t('Invalid parameters:').' '.$this->logicKeywords->getErrorMessage(),
Please login to merge, or discard this patch.
src/Mailcode/Traits/Commands/Validation/TypeUnsupported.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
30 30
 
31 31
     protected function validateSyntax_type_unsupported() : void
32 32
     {
33
-        if($this->supportsType() || empty($this->type))
33
+        if ($this->supportsType() || empty($this->type))
34 34
         {
35 35
             return;
36 36
         }
Please login to merge, or discard this patch.
src/Mailcode/Factory/CommandSets/Set/Show.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
         
34 34
         $this->instantiator->checkCommand($cmd);
35 35
         
36
-        if($cmd instanceof Mailcode_Commands_Command_ShowVariable)
36
+        if ($cmd instanceof Mailcode_Commands_Command_ShowVariable)
37 37
         {
38 38
             return $cmd;
39 39
         }
@@ -41,12 +41,12 @@  discard block
 block discarded – undo
41 41
         throw $this->instantiator->exceptionUnexpectedType('ShowVariable', $cmd);
42 42
     }
43 43
     
44
-    public function date(string $variableName, string $formatString="") : Mailcode_Commands_Command_ShowDate
44
+    public function date(string $variableName, string $formatString = "") : Mailcode_Commands_Command_ShowDate
45 45
     {
46 46
         $variableName = $this->instantiator->filterVariableName($variableName);
47 47
         
48 48
         $format = '';
49
-        if(!empty($formatString))
49
+        if (!empty($formatString))
50 50
         {
51 51
             $format = sprintf(
52 52
                 ' "%s"',
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
         
68 68
         $this->instantiator->checkCommand($cmd);
69 69
         
70
-        if($cmd instanceof Mailcode_Commands_Command_ShowDate)
70
+        if ($cmd instanceof Mailcode_Commands_Command_ShowDate)
71 71
         {
72 72
             return $cmd;
73 73
         }
@@ -75,12 +75,12 @@  discard block
 block discarded – undo
75 75
         throw $this->instantiator->exceptionUnexpectedType('ShowDate', $cmd);
76 76
     }
77 77
 
78
-    public function number(string $variableName, string $formatString="") : Mailcode_Commands_Command_ShowNumber
78
+    public function number(string $variableName, string $formatString = "") : Mailcode_Commands_Command_ShowNumber
79 79
     {
80 80
         $variableName = $this->instantiator->filterVariableName($variableName);
81 81
 
82 82
         $format = '';
83
-        if(!empty($formatString))
83
+        if (!empty($formatString))
84 84
         {
85 85
             $format = sprintf(
86 86
                 ' "%s"',
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
 
102 102
         $this->instantiator->checkCommand($cmd);
103 103
 
104
-        if($cmd instanceof Mailcode_Commands_Command_ShowNumber)
104
+        if ($cmd instanceof Mailcode_Commands_Command_ShowNumber)
105 105
         {
106 106
             return $cmd;
107 107
         }
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
         
123 123
         $this->instantiator->checkCommand($cmd);
124 124
         
125
-        if($cmd instanceof Mailcode_Commands_Command_ShowSnippet)
125
+        if ($cmd instanceof Mailcode_Commands_Command_ShowSnippet)
126 126
         {
127 127
             return $cmd;
128 128
         }
Please login to merge, or discard this patch.
src/Mailcode/Factory/CommandSets/Set/Set.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -20,11 +20,11 @@  discard block
 block discarded – undo
20 20
  */
21 21
 class Mailcode_Factory_CommandSets_Set_Set extends Mailcode_Factory_CommandSets_Set
22 22
 {
23
-    public function var(string $variableName, string $value, bool $quoteValue=true) : Mailcode_Commands_Command_SetVariable
23
+    public function var(string $variableName, string $value, bool $quoteValue = true) : Mailcode_Commands_Command_SetVariable
24 24
     {
25 25
         $variableName = $this->instantiator->filterVariableName($variableName);
26 26
         
27
-        if($quoteValue)
27
+        if ($quoteValue)
28 28
         {
29 29
             $value = $this->instantiator->quoteString($value);
30 30
         }
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
         
41 41
         $this->instantiator->checkCommand($cmd);
42 42
         
43
-        if($cmd instanceof Mailcode_Commands_Command_SetVariable)
43
+        if ($cmd instanceof Mailcode_Commands_Command_SetVariable)
44 44
         {
45 45
             return $cmd;
46 46
         }
Please login to merge, or discard this patch.