Passed
Push — master ( b98f29...52cf83 )
by Sebastian
04:29
created
src/Mailcode.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -46,12 +46,12 @@  discard block
 block discarded – undo
46 46
 
47 47
     public static function getCacheFolder() : FolderInfo
48 48
     {
49
-        if(isset(self::$cacheFolder)) {
49
+        if (isset(self::$cacheFolder)) {
50 50
             return self::$cacheFolder;
51 51
         }
52 52
 
53 53
         $folder = ClassHelper::getCacheFolder();
54
-        if($folder !== null) {
54
+        if ($folder !== null) {
55 55
             return $folder;
56 56
         }
57 57
 
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
     */
100 100
     public function getParser() : Mailcode_Parser
101 101
     {
102
-        if(!isset($this->parser)) 
102
+        if (!isset($this->parser)) 
103 103
         {
104 104
             $this->parser = new Mailcode_Parser($this);
105 105
         }
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
     */
116 116
     public function getCommands() : Mailcode_Commands
117 117
     {
118
-        if(!isset($this->commands)) 
118
+        if (!isset($this->commands)) 
119 119
         {
120 120
             $this->commands = new Mailcode_Commands();
121 121
         }
@@ -140,14 +140,14 @@  discard block
 block discarded – undo
140 140
      * @param Mailcode_Commands_Command|null $sourceCommand
141 141
      * @return Mailcode_Variables_Collection_Regular
142 142
      */
143
-    public function findVariables(string $subject, ?Mailcode_Commands_Command $sourceCommand=null) : Mailcode_Variables_Collection_Regular
143
+    public function findVariables(string $subject, ?Mailcode_Commands_Command $sourceCommand = null) : Mailcode_Variables_Collection_Regular
144 144
     {
145 145
         return $this->createVariables()->parseString($subject, $sourceCommand);
146 146
     }
147 147
     
148 148
     public function createVariables() : Mailcode_Variables
149 149
     {
150
-        if(!isset($this->variables))
150
+        if (!isset($this->variables))
151 151
         {
152 152
             $this->variables = new Mailcode_Variables();
153 153
         }
@@ -206,7 +206,7 @@  discard block
 block discarded – undo
206 206
         return self::$logger;
207 207
     }
208 208
 
209
-    public static function setDebugging(bool $enabled=true) : void
209
+    public static function setDebugging(bool $enabled = true) : void
210 210
     {
211 211
         self::$debug = $enabled;
212 212
     }
@@ -221,9 +221,9 @@  discard block
 block discarded – undo
221 221
      * @param array<string|int,mixed> $context
222 222
      * @return void
223 223
      */
224
-    public static function debug(string $message, array $context=array()) : void
224
+    public static function debug(string $message, array $context = array()) : void
225 225
     {
226
-        if(self::$debug && isset(self::$logger))
226
+        if (self::$debug && isset(self::$logger))
227 227
         {
228 228
             self::$logger->debug($message, $context);
229 229
         }
Please login to merge, or discard this patch.