Passed
Push — master ( a60ac2...b0c01a )
by
unknown
09:12
created
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/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.
src/Mailcode/Factory.php 2 patches
Indentation   +19 added lines, -19 removed lines patch added patch discarded remove patch
@@ -28,8 +28,8 @@  discard block
 block discarded – undo
28 28
     public const URL_ENCODING_DECODE = 'decode';
29 29
 
30 30
     /**
31
-    * @var Mailcode_Factory_CommandSets|NULL
32
-    */
31
+     * @var Mailcode_Factory_CommandSets|NULL
32
+     */
33 33
     private static ?Mailcode_Factory_CommandSets $commandSets = null;
34 34
 
35 35
     /**
@@ -83,33 +83,33 @@  discard block
 block discarded – undo
83 83
     }
84 84
 
85 85
     /**
86
-    * Creates a renderer instance, which can be used to easily
87
-    * create and convert commands to strings.
88
-    * 
89
-    * @return Mailcode_Renderer
90
-    */
86
+     * Creates a renderer instance, which can be used to easily
87
+     * create and convert commands to strings.
88
+     * 
89
+     * @return Mailcode_Renderer
90
+     */
91 91
     public static function createRenderer() : Mailcode_Renderer
92 92
     {
93 93
         return new Mailcode_Renderer();
94 94
     }
95 95
     
96
-   /**
97
-    * Creates a printer instance, which works like the renderer,
98
-    * but outputs the generated strings to standard output.
99
-    * 
100
-    * @return Mailcode_Printer
101
-    */
96
+    /**
97
+     * Creates a printer instance, which works like the renderer,
98
+     * but outputs the generated strings to standard output.
99
+     * 
100
+     * @return Mailcode_Printer
101
+     */
102 102
     public static function createPrinter() : Mailcode_Printer
103 103
     {
104 104
         return new Mailcode_Printer();
105 105
     }
106 106
     
107
-   /**
108
-    * Gets/creates the global instance of the date format info
109
-    * class, used to handle date formatting aspects.
110
-    * 
111
-    * @return Mailcode_Date_FormatInfo
112
-    */
107
+    /**
108
+     * Gets/creates the global instance of the date format info
109
+     * class, used to handle date formatting aspects.
110
+     * 
111
+     * @return Mailcode_Date_FormatInfo
112
+     */
113 113
     public static function createDateInfo() : Mailcode_Date_FormatInfo
114 114
     {
115 115
         return Mailcode_Date_FormatInfo::getInstance();
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
      *
58 58
      * @return Mailcode_Factory_CommandSets_Set_If
59 59
      */
60
-    public static function if() : Mailcode_Factory_CommandSets_Set_If
60
+    public static function if () : Mailcode_Factory_CommandSets_Set_If
61 61
     {
62 62
         return self::getSets()->if();
63 63
     }
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
      *
68 68
      * @return Mailcode_Factory_CommandSets_Set_ElseIf
69 69
      */
70
-    public static function elseIf() : Mailcode_Factory_CommandSets_Set_ElseIf
70
+    public static function elseIf () : Mailcode_Factory_CommandSets_Set_ElseIf
71 71
     {
72 72
         return self::getSets()->elseIf();
73 73
     }
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
 
118 118
     protected static function getSets() : Mailcode_Factory_CommandSets
119 119
     {
120
-        if(!isset(self::$commandSets))
120
+        if (!isset(self::$commandSets))
121 121
         {
122 122
             self::$commandSets = new Mailcode_Factory_CommandSets();
123 123
         }
Please login to merge, or discard this patch.
src/Mailcode/Collection/TypeFilter.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -32,9 +32,9 @@  discard block
 block discarded – undo
32 32
     {
33 33
         $result = array();
34 34
 
35
-        foreach($commands as $command)
35
+        foreach ($commands as $command)
36 36
         {
37
-            if($command instanceof Mailcode_Commands_ShowBase)
37
+            if ($command instanceof Mailcode_Commands_ShowBase)
38 38
             {
39 39
                 $result[] = $command;
40 40
             }
@@ -56,9 +56,9 @@  discard block
 block discarded – undo
56 56
     {
57 57
         $result = array();
58 58
 
59
-        foreach($commands as $command)
59
+        foreach ($commands as $command)
60 60
         {
61
-            if($command instanceof Mailcode_Interfaces_Commands_ListVariables)
61
+            if ($command instanceof Mailcode_Interfaces_Commands_ListVariables)
62 62
             {
63 63
                 $result[] = $command;
64 64
             }
@@ -77,9 +77,9 @@  discard block
 block discarded – undo
77 77
     {
78 78
         $result = array();
79 79
 
80
-        foreach($commands as $command)
80
+        foreach ($commands as $command)
81 81
         {
82
-            if($command instanceof Mailcode_Commands_Command_ShowVariable)
82
+            if ($command instanceof Mailcode_Commands_Command_ShowVariable)
83 83
             {
84 84
                 $result[] = $command;
85 85
             }
@@ -98,9 +98,9 @@  discard block
 block discarded – undo
98 98
     {
99 99
         $result = array();
100 100
 
101
-        foreach($commands as $command)
101
+        foreach ($commands as $command)
102 102
         {
103
-            if($command instanceof Mailcode_Commands_Command_For)
103
+            if ($command instanceof Mailcode_Commands_Command_For)
104 104
             {
105 105
                 $result[] = $command;
106 106
             }
@@ -119,9 +119,9 @@  discard block
 block discarded – undo
119 119
     {
120 120
         $result = array();
121 121
 
122
-        foreach($commands as $command)
122
+        foreach ($commands as $command)
123 123
         {
124
-            if($command instanceof Mailcode_Commands_Command_ShowDate)
124
+            if ($command instanceof Mailcode_Commands_Command_ShowDate)
125 125
             {
126 126
                 $result[] = $command;
127 127
             }
@@ -140,9 +140,9 @@  discard block
 block discarded – undo
140 140
     {
141 141
         $result = array();
142 142
 
143
-        foreach($commands as $command)
143
+        foreach ($commands as $command)
144 144
         {
145
-            if($command instanceof Mailcode_Commands_Command_If)
145
+            if ($command instanceof Mailcode_Commands_Command_If)
146 146
             {
147 147
                 $result[] = $command;
148 148
             }
Please login to merge, or discard this patch.
src/Mailcode/Commands/Normalizer.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
     
38 38
     public function normalize() : string
39 39
     {
40
-        if(!$this->command->isValid())
40
+        if (!$this->command->isValid())
41 41
         {
42 42
             return '';
43 43
         }
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
     
58 58
     private function addType() : void
59 59
     {
60
-        if(!$this->command->supportsType() || !$this->command->hasType())
60
+        if (!$this->command->supportsType() || !$this->command->hasType())
61 61
         {
62 62
             return;
63 63
         }
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
     {
70 70
         $params = $this->getParamsString($command);
71 71
         
72
-        if(empty($params))
72
+        if (empty($params))
73 73
         {
74 74
             return;
75 75
         }
@@ -87,12 +87,12 @@  discard block
 block discarded – undo
87 87
     {
88 88
         $params = $this->getParamsStatement($command);
89 89
 
90
-        if($params === null)
90
+        if ($params === null)
91 91
         {
92 92
             return '';
93 93
         }
94 94
 
95
-        if($command->hasFreeformParameters())
95
+        if ($command->hasFreeformParameters())
96 96
         {
97 97
             return $params->getStatementString();
98 98
         }
@@ -102,14 +102,14 @@  discard block
 block discarded – undo
102 102
 
103 103
     private function addLogicKeywords() : void
104 104
     {
105
-        if(!$this->command->supportsLogicKeywords())
105
+        if (!$this->command->supportsLogicKeywords())
106 106
         {
107 107
             return;
108 108
         }
109 109
         
110 110
         $keywords = $this->command->getLogicKeywords()->getKeywords();
111 111
         
112
-        foreach($keywords as $keyword)
112
+        foreach ($keywords as $keyword)
113 113
         {
114 114
             $this->parts[] = ' ';
115 115
             $this->parts[] = $keyword->getKeywordString(); // e.g. "if variable"
Please login to merge, or discard this patch.
src/Mailcode/Commands/Command.php 2 patches
Indentation   +46 added lines, -46 removed lines patch added patch discarded remove patch
@@ -45,44 +45,44 @@  discard block
 block discarded – undo
45 45
 
46 46
     public const META_URL_ENCODING = 'url_encoding';
47 47
 
48
-   /**
49
-    * @var string
50
-    */
48
+    /**
49
+     * @var string
50
+     */
51 51
     protected string $type = '';
52 52
 
53
-   /**
54
-    * @var string
55
-    */
53
+    /**
54
+     * @var string
55
+     */
56 56
     protected string $paramsString = '';
57 57
     
58
-   /**
59
-    * @var string
60
-    */
58
+    /**
59
+     * @var string
60
+     */
61 61
     protected string $matchedText = '';
62 62
 
63
-   /**
64
-    * @var string
65
-    */
63
+    /**
64
+     * @var string
65
+     */
66 66
     protected string $hash = '';
67 67
     
68
-   /**
69
-    * @var OperationResult
70
-    */
68
+    /**
69
+     * @var OperationResult
70
+     */
71 71
     protected OperationResult $validationResult;
72 72
     
73
-   /**
74
-    * @var Mailcode
75
-    */
73
+    /**
74
+     * @var Mailcode
75
+     */
76 76
     protected Mailcode $mailcode;
77 77
     
78
-   /**
79
-    * @var Mailcode_Parser_Statement|NULL
80
-    */
78
+    /**
79
+     * @var Mailcode_Parser_Statement|NULL
80
+     */
81 81
     protected ?Mailcode_Parser_Statement $params = null;
82 82
 
83
-   /**
84
-    * @var string[] 
85
-    */
83
+    /**
84
+     * @var string[] 
85
+     */
86 86
     protected array $validations = array(
87 87
         Mailcode_Interfaces_Commands_Validation_EmptyParams::VALIDATION_NAME_EMPTY_PARAMS,
88 88
         Mailcode_Interfaces_Commands_Validation_ParamKeywords::VALIDATION_NAME_KEYWORDS,
@@ -91,24 +91,24 @@  discard block
 block discarded – undo
91 91
         Mailcode_Interfaces_Commands_Validation_TypeUnsupported::VALIDATION_NAME_TYPE_UNSUPPORTED
92 92
     );
93 93
     
94
-   /**
95
-    * @var string
96
-    */
94
+    /**
95
+     * @var string
96
+     */
97 97
     protected string $comment = '';
98 98
     
99
-   /**
100
-    * @var Mailcode_Commands_LogicKeywords|NULL
101
-    */
99
+    /**
100
+     * @var Mailcode_Commands_LogicKeywords|NULL
101
+     */
102 102
     protected ?Mailcode_Commands_LogicKeywords $logicKeywords = null;
103 103
     
104
-   /**
105
-    * @var Mailcode_Parser_Statement_Validator|NULL
106
-    */
104
+    /**
105
+     * @var Mailcode_Parser_Statement_Validator|NULL
106
+     */
107 107
     protected ?Mailcode_Parser_Statement_Validator $validator = null;
108 108
     
109
-   /**
110
-    * @var boolean
111
-    */
109
+    /**
110
+     * @var boolean
111
+     */
112 112
     private bool $validated = false;
113 113
 
114 114
     /**
@@ -143,13 +143,13 @@  discard block
 block discarded – undo
143 143
         
144 144
     }
145 145
 
146
-   /**
147
-    * Sets the command's parent opening command, if any.
148
-    * NOTE: This is set automatically by the parser, and
149
-    * should not be called manually.
150
-    *
151
-    * @param Mailcode_Commands_Command $command
152
-    */
146
+    /**
147
+     * Sets the command's parent opening command, if any.
148
+     * NOTE: This is set automatically by the parser, and
149
+     * should not be called manually.
150
+     *
151
+     * @param Mailcode_Commands_Command $command
152
+     */
153 153
     public function setParent(Mailcode_Commands_Command $command) : void
154 154
     {
155 155
         $this->parent = $command;
@@ -295,9 +295,9 @@  discard block
 block discarded – undo
295 295
         return $this->validationResult->isValid();
296 296
     }
297 297
     
298
-   /**
299
-    * @return string[]
300
-    */
298
+    /**
299
+     * @return string[]
300
+     */
301 301
     abstract protected function getValidations() : array;
302 302
 
303 303
     protected function _validateNesting() : void
Please login to merge, or discard this patch.
Spacing   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
132 132
 
133 133
     private int $instanceID;
134 134
 
135
-    public function __construct(string $type='', string $paramsString='', string $matchedText='')
135
+    public function __construct(string $type = '', string $paramsString = '', string $matchedText = '')
136 136
     {
137 137
         self::$instanceCounter++;
138 138
 
@@ -223,7 +223,7 @@  discard block
 block discarded – undo
223 223
     {
224 224
         $this->requireNonDummy();
225 225
         
226
-        if($this->hash === '') {
226
+        if ($this->hash === '') {
227 227
             $this->hash = md5($this->matchedText);
228 228
         }
229 229
         
@@ -236,7 +236,7 @@  discard block
 block discarded – undo
236 236
      */
237 237
     protected function requireNonDummy() : void
238 238
     {
239
-        if(!$this->isDummy())
239
+        if (!$this->isDummy())
240 240
         {
241 241
             return;
242 242
         }
@@ -255,7 +255,7 @@  discard block
 block discarded – undo
255 255
     
256 256
     protected function validate() : OperationResult
257 257
     {
258
-        if(!$this->validated)
258
+        if (!$this->validated)
259 259
         {
260 260
             $this->requireNonDummy();
261 261
             $this->validateSyntax();
@@ -275,10 +275,10 @@  discard block
 block discarded – undo
275 275
     {
276 276
         $validations = $this->resolveValidations();
277 277
 
278
-        foreach($validations as $validation)
278
+        foreach ($validations as $validation)
279 279
         {
280 280
             // break off at the first validation issue
281
-            if(!$this->validateSyntaxMethod($validation))
281
+            if (!$this->validateSyntaxMethod($validation))
282 282
             {
283 283
                 return;
284 284
             }
@@ -302,7 +302,7 @@  discard block
 block discarded – undo
302 302
     {
303 303
         $method = 'validateSyntax_'.$validation;
304 304
         
305
-        if(!method_exists($this, $method))
305
+        if (!method_exists($this, $method))
306 306
         {
307 307
             throw new CommandException(
308 308
                 'Missing validation method ['.$validation.']',
@@ -332,7 +332,7 @@  discard block
 block discarded – undo
332 332
 
333 333
     public function validateNesting() : OperationResult
334 334
     {
335
-        if($this->nestingValidated)
335
+        if ($this->nestingValidated)
336 336
         {
337 337
             return $this->validationResult;
338 338
         }
@@ -356,7 +356,7 @@  discard block
 block discarded – undo
356 356
     
357 357
     public function getType() : string
358 358
     {
359
-        if($this->supportsType())
359
+        if ($this->supportsType())
360 360
         {
361 361
             return $this->type;
362 362
         }
@@ -376,7 +376,7 @@  discard block
 block discarded – undo
376 376
     
377 377
     public function getHighlighted() : string
378 378
     {
379
-        if(!$this->isValid())
379
+        if (!$this->isValid())
380 380
         {
381 381
             return '';
382 382
         }
@@ -386,7 +386,7 @@  discard block
 block discarded – undo
386 386
     
387 387
     public function getParamsString() : string
388 388
     {
389
-        if($this->requiresParameters())
389
+        if ($this->requiresParameters())
390 390
         {
391 391
             return $this->paramsString;
392 392
         }
@@ -405,7 +405,7 @@  discard block
 block discarded – undo
405 405
      */
406 406
     public function requireParams() : Mailcode_Parser_Statement
407 407
     {
408
-        if(isset($this->params))
408
+        if (isset($this->params))
409 409
         {
410 410
             return $this->params;
411 411
         }
@@ -437,22 +437,22 @@  discard block
 block discarded – undo
437 437
      */
438 438
     final public function getCommandType() : string
439 439
     {
440
-        if($this instanceof Mailcode_Commands_Command_Type_Closing)
440
+        if ($this instanceof Mailcode_Commands_Command_Type_Closing)
441 441
         {
442 442
             return 'Closing';
443 443
         }
444 444
         
445
-        if($this instanceof Mailcode_Commands_Command_Type_Opening)
445
+        if ($this instanceof Mailcode_Commands_Command_Type_Opening)
446 446
         {
447 447
             return 'Opening';
448 448
         }
449 449
         
450
-        if($this instanceof Mailcode_Commands_Command_Type_Sibling)
450
+        if ($this instanceof Mailcode_Commands_Command_Type_Sibling)
451 451
         {
452 452
             return 'Sibling';
453 453
         }
454 454
         
455
-        if($this instanceof Mailcode_Commands_Command_Type_Standalone)
455
+        if ($this instanceof Mailcode_Commands_Command_Type_Standalone)
456 456
         {
457 457
             return 'Standalone';
458 458
         }
@@ -493,7 +493,7 @@  discard block
 block discarded – undo
493 493
      */
494 494
     public function getLogicKeywords() : Mailcode_Commands_LogicKeywords
495 495
     {
496
-        if(isset($this->logicKeywords) && $this->supportsLogicKeywords())
496
+        if (isset($this->logicKeywords) && $this->supportsLogicKeywords())
497 497
         {
498 498
             return $this->logicKeywords;
499 499
         }
@@ -523,7 +523,7 @@  discard block
 block discarded – undo
523 523
 
524 524
     protected function getValidator() : Mailcode_Parser_Statement_Validator
525 525
     {
526
-        if(isset($this->validator))
526
+        if (isset($this->validator))
527 527
         {
528 528
             return $this->validator;
529 529
         }
Please login to merge, or discard this patch.
src/Mailcode/Commands/Normalizer/ProtectedContent.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
 
40 40
     public function __construct(Mailcode_Commands_Command $command)
41 41
     {
42
-        if(!$command instanceof Mailcode_Interfaces_Commands_ProtectedContent)
42
+        if (!$command instanceof Mailcode_Interfaces_Commands_ProtectedContent)
43 43
         {
44 44
             throw new Mailcode_Exception(
45 45
                 'Invalid command',
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
     {
67 67
         $params = $command->getParams();
68 68
 
69
-        if($params === null)
69
+        if ($params === null)
70 70
         {
71 71
             return null;
72 72
         }
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
 
91 91
         $contentID = $info->getTokenByIndex(0);
92 92
 
93
-        if($contentID instanceof Mailcode_Parser_Statement_Tokenizer_Token_Number)
93
+        if ($contentID instanceof Mailcode_Parser_Statement_Tokenizer_Token_Number)
94 94
         {
95 95
             $info->removeToken($contentID);
96 96
             return $copy;
Please login to merge, or discard this patch.
src/Mailcode/Commands/Command/Code.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
      */
112 112
     public function getSyntaxName() : string
113 113
     {
114
-        if(isset($this->langToken))
114
+        if (isset($this->langToken))
115 115
         {
116 116
             return $this->langToken->getText();
117 117
         }
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
134 134
             ->getInfo()
135 135
             ->getStringLiteralByIndex(1);
136 136
 
137
-        if($lang)
137
+        if ($lang)
138 138
         {
139 139
             $this->langToken = $lang;
140 140
             return;
@@ -158,7 +158,7 @@  discard block
 block discarded – undo
158 158
     {
159 159
         // To keep PHPStan happy. If no token has been found, this
160 160
         // method will not be called.
161
-        if(!isset($this->langToken))
161
+        if (!isset($this->langToken))
162 162
         {
163 163
             return;
164 164
         }
@@ -166,7 +166,7 @@  discard block
 block discarded – undo
166 166
         $name = $this->langToken->getText();
167 167
         $supported = self::getSupportedSyntaxes();
168 168
 
169
-        if(in_array($name, $supported))
169
+        if (in_array($name, $supported))
170 170
         {
171 171
             return;
172 172
         }
Please login to merge, or discard this patch.