Passed
Push — master ( d06d8f...13736a )
by Sebastian
02:30
created
src/Mailcode/Translator/Syntax/ApacheVelocity.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
     {
25 25
         $params = $command->getParams();
26 26
         
27
-        if($params)
27
+        if ($params)
28 28
         {
29 29
             return sprintf(
30 30
                 '#elseif(%s)',
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
     {
45 45
         $params = $command->getParams();
46 46
     
47
-        if($params)
47
+        if ($params)
48 48
         {
49 49
             return sprintf(
50 50
                 '#if(%s)',
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
     {
65 65
         $params = $command->getParams();
66 66
         
67
-        if($params)
67
+        if ($params)
68 68
         {
69 69
             return sprintf(
70 70
                 '#for(%s)',
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
     {
80 80
         $params = $command->getParams();
81 81
         
82
-        if($params)
82
+        if ($params)
83 83
         {
84 84
             return sprintf(
85 85
                 '#set(%s)',
Please login to merge, or discard this patch.
src/Mailcode/Translator/Syntax.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
         
48 48
         $method = '_translate'.$id;
49 49
         
50
-        if(!method_exists($this, $method))
50
+        if (!method_exists($this, $method))
51 51
         {
52 52
             throw new Mailcode_Translator_Exception(
53 53
                 'Unknown command type in translator',
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
     {
75 75
         $subject = $safeguard->makeSafe();
76 76
         
77
-        if(!$safeguard->hasPlaceholders())
77
+        if (!$safeguard->hasPlaceholders())
78 78
         {
79 79
             return $subject;
80 80
         }
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
         
84 84
         $replaces = array();
85 85
         
86
-        foreach($placeholders as $placeholder)
86
+        foreach ($placeholders as $placeholder)
87 87
         {
88 88
             $replaces[$placeholder->getReplacementText()] = $this->translateCommand($placeholder->getCommand());
89 89
         }
Please login to merge, or discard this patch.
src/Mailcode.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
     */
74 74
     public function getParser() : Mailcode_Parser
75 75
     {
76
-        if(!isset($this->parser)) 
76
+        if (!isset($this->parser)) 
77 77
         {
78 78
             $this->parser = new Mailcode_Parser($this);
79 79
         }
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
     */
90 90
     public function getCommands() : Mailcode_Commands
91 91
     {
92
-        if(!isset($this->commands)) 
92
+        if (!isset($this->commands)) 
93 93
         {
94 94
             $this->commands = new Mailcode_Commands();
95 95
         }
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
     
116 116
     public function createVariables() : Mailcode_Variables
117 117
     {
118
-        if(!isset($this->variables))
118
+        if (!isset($this->variables))
119 119
         {
120 120
             $this->variables = new Mailcode_Variables();
121 121
         }
@@ -131,7 +131,7 @@  discard block
 block discarded – undo
131 131
     */
132 132
     public function createTranslator() : Mailcode_Translator
133 133
     {
134
-        if(!isset($this->translator))
134
+        if (!isset($this->translator))
135 135
         {
136 136
             $this->translator = new Mailcode_Translator(); 
137 137
         }
Please login to merge, or discard this patch.