Passed
Pull Request — master (#2)
by Kris
01:41
created
lib/Core/ColumnLeftContainer.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -69,24 +69,24 @@
 block discarded – undo
69 69
      */
70 70
     public function getHtml(string $indent)
71 71
     {
72
-       $html  = $indent . '<td align="left" valign="top" class="flexibleContainerBox">'. PHP_EOL;
73
-       $html .= $indent . '  <table border="0" cellpadding="'. $this->cellPadding .'" cellspacing="0"' . 
72
+       $html  = $indent . '<td align="left" valign="top" class="flexibleContainerBox">' . PHP_EOL;
73
+       $html .= $indent . '  <table border="0" cellpadding="' . $this->cellPadding . '" cellspacing="0"' . 
74 74
                                     ($this->columnWidth == 0 ? '' : ' width="' . $this->columnWidth . '"') .
75
-                                   ' bgcolor="'. $this->getEffectiveStyle('background-color') .'"'.  
76
-                                   ' style="max-width:100%;">'.PHP_EOL;
77
-       $html .= $indent . '    <tr>'.PHP_EOL;
78
-       $html .= $indent . '      <td align="'. $this->horizontalAlign .'" valign="'. $this->verticalAlign .'" class="textContent">'.PHP_EOL;
75
+                                   ' bgcolor="' . $this->getEffectiveStyle('background-color') . '"' .  
76
+                                   ' style="max-width:100%;">' . PHP_EOL;
77
+       $html .= $indent . '    <tr>' . PHP_EOL;
78
+       $html .= $indent . '      <td align="' . $this->horizontalAlign . '" valign="' . $this->verticalAlign . '" class="textContent">' . PHP_EOL;
79 79
 
80 80
        // render child elements collection
81
-       foreach ($this->elements() as $element){
81
+       foreach ($this->elements() as $element) {
82 82
             $html .= $element->getHtml($indent . '        ');
83
-            $html .= PHP_EOL ;
83
+            $html .= PHP_EOL;
84 84
        }
85 85
 
86
-       $html .= $indent . '      </td>'.PHP_EOL;
87
-       $html .= $indent . '    </tr>'.PHP_EOL;
88
-       $html .= $indent . '  </table>'.PHP_EOL;
89
-       $html .= $indent . '</td>'.PHP_EOL;
86
+       $html .= $indent . '      </td>' . PHP_EOL;
87
+       $html .= $indent . '    </tr>' . PHP_EOL;
88
+       $html .= $indent . '  </table>' . PHP_EOL;
89
+       $html .= $indent . '</td>' . PHP_EOL;
90 90
 
91 91
        return $html;
92 92
     }
Please login to merge, or discard this patch.
lib/Core/HtmlBuilderContainer.php 1 patch
Spacing   +28 added lines, -28 removed lines patch added patch discarded remove patch
@@ -63,58 +63,58 @@
 block discarded – undo
63 63
         $html  = $this->getBuilder()->getHtmlComment($partName . ' //', $indent);
64 64
      
65 65
         // create a table container
66
-        $html .= $indent . '<table bgcolor="'. $backgroundColor . '"' 
67
-                               . ' width="'. $this->getBuilder()->emailBodyWidth() . '"'  
68
-                               . ' border="0" cellpadding="0" cellspacing="0" id="'. $id .'">' .PHP_EOL;
66
+        $html .= $indent . '<table bgcolor="' . $backgroundColor . '"' 
67
+                               . ' width="' . $this->getBuilder()->emailBodyWidth() . '"'  
68
+                               . ' border="0" cellpadding="0" cellspacing="0" id="' . $id . '">' . PHP_EOL;
69 69
 
70
-        $html .= $indent . '  <tr>'.PHP_EOL;
71
-        $html .= $indent . '    <td align="center" valign="top">'.PHP_EOL;
70
+        $html .= $indent . '  <tr>' . PHP_EOL;
71
+        $html .= $indent . '    <td align="center" valign="top">' . PHP_EOL;
72 72
 
73 73
         $html .= $this->getBuilder()->getHtmlComment('CENTERING TABLE //', $indent . '      ');
74 74
 
75
-        $html .= $indent . '      <table border="0" cellpadding="0" cellspacing="0" width="100%">'.PHP_EOL;
76
-        $html .= $indent . '        <tr>'.PHP_EOL;
77
-        $html .= $indent . '          <td align="center" valign="top">'.PHP_EOL;
75
+        $html .= $indent . '      <table border="0" cellpadding="0" cellspacing="0" width="100%">' . PHP_EOL;
76
+        $html .= $indent . '        <tr>' . PHP_EOL;
77
+        $html .= $indent . '          <td align="center" valign="top">' . PHP_EOL;
78 78
 
79 79
         $html .= $this->getBuilder()->getHtmlComment('FLEXIBLE CONTAINER //', $indent . '            ');
80 80
 
81
-        $html .= $indent . '            <table border="0" cellpadding="' . $this->cellPadding . '" cellspacing="0" width="'. $this->getBuilder()->emailBodyWidth() . '" class="flexibleContainer">'.PHP_EOL;
82
-        $html .= $indent . '              <tr>'.PHP_EOL;
83
-        $html .= $indent . '                <td align="center" valign="top" width="'. $this->getBuilder()->emailBodyWidth() . '" class="flexibleContainerCell">'.PHP_EOL;
81
+        $html .= $indent . '            <table border="0" cellpadding="' . $this->cellPadding . '" cellspacing="0" width="' . $this->getBuilder()->emailBodyWidth() . '" class="flexibleContainer">' . PHP_EOL;
82
+        $html .= $indent . '              <tr>' . PHP_EOL;
83
+        $html .= $indent . '                <td align="center" valign="top" width="' . $this->getBuilder()->emailBodyWidth() . '" class="flexibleContainerCell">' . PHP_EOL;
84 84
 
85 85
         $html .= $this->getBuilder()->getHtmlComment('CONTENT TABLE //', $indent . '                 ');
86 86
         
87
-        $html .= $indent . '                  <table border="0" cellpadding="0" cellspacing="0" width="100%">'.PHP_EOL;
88
-        $html .= $indent . '                    <tr>'.PHP_EOL;
89
-        $html .= $indent . '                      <td valign="'. $this->verticalAlign .'" align="'. $this->horizontalAlign .'" bgcolor="'. $backgroundColor . '">'.PHP_EOL;
87
+        $html .= $indent . '                  <table border="0" cellpadding="0" cellspacing="0" width="100%">' . PHP_EOL;
88
+        $html .= $indent . '                    <tr>' . PHP_EOL;
89
+        $html .= $indent . '                      <td valign="' . $this->verticalAlign . '" align="' . $this->horizontalAlign . '" bgcolor="' . $backgroundColor . '">' . PHP_EOL;
90 90
 
91 91
         // render child elements collection
92
-        foreach ($this->childElements as $element){
92
+        foreach ($this->childElements as $element) {
93 93
             $html .= $element->getHtml($indent . '                        ');
94
-            $html .= PHP_EOL ;
94
+            $html .= PHP_EOL;
95 95
         }
96 96
 
97
-        $html .= $indent . '                      </td>'.PHP_EOL;
98
-        $html .= $indent . '                    </tr>'.PHP_EOL;
99
-        $html .= $indent . '                  </table>'.PHP_EOL;
97
+        $html .= $indent . '                      </td>' . PHP_EOL;
98
+        $html .= $indent . '                    </tr>' . PHP_EOL;
99
+        $html .= $indent . '                  </table>' . PHP_EOL;
100 100
         
101 101
         $html .= $this->getBuilder()->getHtmlComment('// CONTENT TABLE', $indent . '                 ');
102 102
 
103
-        $html .= $indent . '                </td>'.PHP_EOL;
104
-        $html .= $indent . '              </tr>'.PHP_EOL;
105
-        $html .= $indent . '            </table>'.PHP_EOL;
103
+        $html .= $indent . '                </td>' . PHP_EOL;
104
+        $html .= $indent . '              </tr>' . PHP_EOL;
105
+        $html .= $indent . '            </table>' . PHP_EOL;
106 106
 
107 107
         $html .= $this->getBuilder()->getHtmlComment('// FLEXIBLE CONTAINER', $indent . '            ');
108 108
 
109
-        $html .= $indent . '          </td>'.PHP_EOL;
110
-        $html .= $indent . '        </tr>'.PHP_EOL;
111
-        $html .= $indent . '      </table>'.PHP_EOL;
109
+        $html .= $indent . '          </td>' . PHP_EOL;
110
+        $html .= $indent . '        </tr>' . PHP_EOL;
111
+        $html .= $indent . '      </table>' . PHP_EOL;
112 112
 
113 113
         $html .= $this->getBuilder()->getHtmlComment('// CENTERING TABLE', $indent . '      ');
114 114
 
115
-        $html .= $indent . '    </td>'.PHP_EOL;
116
-        $html .= $indent . '  </tr>'.PHP_EOL;
117
-        $html .= $indent . '</table>'.PHP_EOL;
115
+        $html .= $indent . '    </td>' . PHP_EOL;
116
+        $html .= $indent . '  </tr>' . PHP_EOL;
117
+        $html .= $indent . '</table>' . PHP_EOL;
118 118
        
119 119
         $html .= $this->getBuilder()->getHtmlComment('// ' . $partName, $indent);
120 120
         $html .= PHP_EOL;
Please login to merge, or discard this patch.
lib/Core/HtmlBuilder.php 2 patches
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -120,20 +120,20 @@
 block discarded – undo
120 120
     protected $emailBodyColor = self::COLOR_GRAY_600;
121 121
     
122 122
      /** 
123
-     * Defines the main text color for the email body
124
-     * 
125
-     * @access protected
126
-     * @var string  $emailBodyColor
127
-     */
123
+      * Defines the main text color for the email body
124
+      * 
125
+      * @access protected
126
+      * @var string  $emailBodyColor
127
+      */
128 128
     protected $emailheaddingColor = self::COLOR_GRAY_900;
129 129
 
130 130
      /** 
131
-     * Defines the email body background color
132
-     * Default is #FFFFFF white
133
-     * 
134
-     * @access protected
135
-     * @var string  $emailBodyBackgroundColor
136
-     */
131
+      * Defines the email body background color
132
+      * Default is #FFFFFF white
133
+      * 
134
+      * @access protected
135
+      * @var string  $emailBodyBackgroundColor
136
+      */
137 137
     protected $emailBodyBackgroundColor = self::COLOR_WHITE;
138 138
   
139 139
     /** 
Please login to merge, or discard this patch.
Spacing   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -42,14 +42,14 @@  discard block
 block discarded – undo
42 42
      *
43 43
      * @access public
44 44
      */
45
-    public const COLOR_WHITE            = '#FFFFFF' ; 
46
-    public const COLOR_BLACK            = '#000000' ; 
47
-    public const COLOR_BLUE             = '#2E7BA2' ; 
48
-    public const COLOR_GREEN            = '#26A85C' ; 
49
-    public const COLOR_ORANGE           = '#f26522' ; 
50
-    public const COLOR_RED              = '#c21a1a' ; 
51
-    public const COLOR_YELLOW           = '#e4c515' ; 
52
-    public const COLOR_MAGENTA          = '#b64aa9' ; 
45
+    public const COLOR_WHITE            = '#FFFFFF'; 
46
+    public const COLOR_BLACK            = '#000000'; 
47
+    public const COLOR_BLUE             = '#2E7BA2'; 
48
+    public const COLOR_GREEN            = '#26A85C'; 
49
+    public const COLOR_ORANGE           = '#f26522'; 
50
+    public const COLOR_RED              = '#c21a1a'; 
51
+    public const COLOR_YELLOW           = '#e4c515'; 
52
+    public const COLOR_MAGENTA          = '#b64aa9'; 
53 53
  
54 54
     public const COLOR_LIGHTGRAY        = '#cccccc'; 
55 55
     public const COLOR_DARKGRAY         = '#1E1F22';
@@ -64,9 +64,9 @@  discard block
 block discarded – undo
64 64
     public const COLOR_GRAY_800         = '#1e1f22';
65 65
     public const COLOR_GRAY_900         = '#141416';
66 66
 
67
-    public const COLOR_STATUS_ERROR     = '#c41818' ; 
68
-    public const COLOR_STATUS_SUCCESS   = '#118a39' ; 
69
-    public const COLOR_STATUS_WARNING   = '#e79c11' ; 
67
+    public const COLOR_STATUS_ERROR     = '#c41818'; 
68
+    public const COLOR_STATUS_SUCCESS   = '#118a39'; 
69
+    public const COLOR_STATUS_WARNING   = '#e79c11'; 
70 70
    
71 71
     /** 
72 72
      * Gets whether html comments are rendered when calling the calling the HtmlEmailBuilder::getHtml() method. 
@@ -184,13 +184,13 @@  discard block
 block discarded – undo
184 184
         // Must be a valid hex value.
185 185
         $length = mb_strlen($color);
186 186
 
187
-        if ( ($length === 3 || $length === 6 ) && ctype_xdigit($color) ) {
187
+        if (($length === 3 || $length === 6) && ctype_xdigit($color)) {
188 188
             // return prefixed uppercase hex color string
189
-            return '#'. strtoupper($color);
189
+            return '#' . strtoupper($color);
190 190
         };
191 191
 
192 192
         // something was wrong
193
-        throw new \InvalidArgumentException('Value passed was not a valid hex color. Value was [' . $color .']');
193
+        throw new \InvalidArgumentException('Value passed was not a valid hex color. Value was [' . $color . ']');
194 194
     }
195 195
 
196 196
     /**
@@ -215,7 +215,7 @@  discard block
 block discarded – undo
215 215
      */
216 216
     public function renderHtmlComments(bool $value)
217 217
     {
218
-        $this->renderHtmlComments= $value;
218
+        $this->renderHtmlComments = $value;
219 219
     }
220 220
 
221 221
     /** 
@@ -387,7 +387,7 @@  discard block
 block discarded – undo
387 387
      */
388 388
     public function emailBodyFontSize()
389 389
     {
390
-        return $this->emailBodyFontSize .'px';
390
+        return $this->emailBodyFontSize . 'px';
391 391
     }
392 392
 
393 393
     /** 
Please login to merge, or discard this patch.
lib/Core/HtmlContainerElement.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -80,15 +80,15 @@
 block discarded – undo
80 80
     public function getHtml(string $indent)
81 81
     {
82 82
         // html result. start with an empty string or a html comment
83
-        $html  = $this->getBuilder()->getHtmlComment('BLOCK', $indent);
83
+        $html = $this->getBuilder()->getHtmlComment('BLOCK', $indent);
84 84
      
85 85
         // render child elements collection
86
-        foreach ($this->elements() as $element){
86
+        foreach ($this->elements() as $element) {
87 87
             $html .= PHP_EOL . $element->getHtml($indent);
88 88
         }
89 89
         
90 90
         // ending comment
91
-        $html  .= $this->getBuilder()->getHtmlComment('END BLOCK', $indent);
91
+        $html .= $this->getBuilder()->getHtmlComment('END BLOCK', $indent);
92 92
 
93 93
         // return the build html 
94 94
         return $html;
Please login to merge, or discard this patch.
lib/Core/ColumnRightContainer.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -36,24 +36,24 @@
 block discarded – undo
36 36
      */
37 37
     public function getHtml(string $indent)
38 38
     {
39
-       $html  = $indent . '<td align="right" valign="top" class="flexibleContainerBox">'. PHP_EOL;
40
-       $html .= $indent . '  <table class="flexibleContainerBoxNext" bgcolor="'. $this->getEffectiveStyle('background-color') .
41
-                                '" border="0" cellpadding="'. $this->cellPadding .'" cellspacing="0"' . 
39
+       $html  = $indent . '<td align="right" valign="top" class="flexibleContainerBox">' . PHP_EOL;
40
+       $html .= $indent . '  <table class="flexibleContainerBoxNext" bgcolor="' . $this->getEffectiveStyle('background-color') .
41
+                                '" border="0" cellpadding="' . $this->cellPadding . '" cellspacing="0"' . 
42 42
                                 ($this->columnWidth == 0 ? '' : ' width="' . $this->columnWidth . '"') . 
43
-                                ' style="max-width:100%;">'.PHP_EOL;
44
-       $html .= $indent . '    <tr>'.PHP_EOL;
45
-       $html .= $indent . '      <td align="'. $this->horizontalAlign .'" valign="'. $this->verticalAlign .'" class="textContent">'.PHP_EOL;
43
+                                ' style="max-width:100%;">' . PHP_EOL;
44
+       $html .= $indent . '    <tr>' . PHP_EOL;
45
+       $html .= $indent . '      <td align="' . $this->horizontalAlign . '" valign="' . $this->verticalAlign . '" class="textContent">' . PHP_EOL;
46 46
 
47 47
        // render child elements collection
48
-       foreach ($this->elements() as $element){
48
+       foreach ($this->elements() as $element) {
49 49
            $html .= $element->getHtml($indent . '        ');
50
-           $html .= PHP_EOL ;
50
+           $html .= PHP_EOL;
51 51
        }
52 52
 
53
-       $html .= $indent . '      </td>'.PHP_EOL;
54
-       $html .= $indent . '    </tr>'.PHP_EOL;
55
-       $html .= $indent . '  </table>'.PHP_EOL;
56
-       $html .= $indent . '</td>'.PHP_EOL;
53
+       $html .= $indent . '      </td>' . PHP_EOL;
54
+       $html .= $indent . '    </tr>' . PHP_EOL;
55
+       $html .= $indent . '  </table>' . PHP_EOL;
56
+       $html .= $indent . '</td>' . PHP_EOL;
57 57
        return $html;
58 58
     }
59 59
 
Please login to merge, or discard this patch.
lib/Core/HtmlElement.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
     public function getBuilder()
60 60
     {
61 61
         // try with the first level parent
62
-        if ($this->parent instanceof HtmlEmailBuilder){
62
+        if ($this->parent instanceof HtmlEmailBuilder) {
63 63
             return $this->parent;
64 64
         }
65 65
 
@@ -90,21 +90,21 @@  discard block
 block discarded – undo
90 90
     public function getEffectiveStyle(string $key)
91 91
     {
92 92
         // first look if key style is defined in this element
93
-        if (array_key_exists($key, $this->styles)){
93
+        if (array_key_exists($key, $this->styles)) {
94 94
             return $this->styles[$key];
95 95
         }
96 96
 
97 97
         // look into parent
98
-        if (!$this->parent instanceof HtmlEmailBuilder){
98
+        if (!$this->parent instanceof HtmlEmailBuilder) {
99 99
             $style = $this->parent->getEffectiveStyle($key);
100
-            if (!empty($style)){
100
+            if (!empty($style)) {
101 101
                 return $style;
102 102
             }
103 103
         }
104 104
 
105 105
         // get default
106
-        if (in_array($key, $this->knowStyles)){
107
-            switch ($key){
106
+        if (in_array($key, $this->knowStyles)) {
107
+            switch ($key) {
108 108
                 case 'padding-top':         return '0';
109 109
                 case 'padding-bottom':      return '0';
110 110
                 case 'padding-left':        return '0';
@@ -130,18 +130,18 @@  discard block
 block discarded – undo
130 130
     protected function getInlineStyles()
131 131
     {
132 132
         $stylesCollection = [];
133
-        foreach ($this->styles as $key => $value){
134
-           $stylesCollection[] = $key. ':' . $value;
133
+        foreach ($this->styles as $key => $value) {
134
+           $stylesCollection[] = $key . ':' . $value;
135 135
         }
136 136
         
137 137
         // check for mandatory styles
138
-        foreach ($this->mandatoryStyles as $style){
139
-            if (!array_key_exists($style, $this->styles)){
138
+        foreach ($this->mandatoryStyles as $style) {
139
+            if (!array_key_exists($style, $this->styles)) {
140 140
                 $stylesCollection[] = $style . ':' . $this->getEffectiveStyle($style); 
141 141
             }
142 142
         }
143 143
 
144
-        return !empty($stylesCollection) ? ' style="'. implode(';', $stylesCollection) .'"' : '';
144
+        return !empty($stylesCollection) ? ' style="' . implode(';', $stylesCollection) . '"' : '';
145 145
     }
146 146
 
147 147
 }
148 148
\ No newline at end of file
Please login to merge, or discard this patch.
lib/HtmlEmailBuilder.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -157,14 +157,14 @@  discard block
 block discarded – undo
157 157
         $html .= '</head>' . PHP_EOL;
158 158
 
159 159
         // start body (document body, not the email body...), center table
160
-        $html .= '<body bgcolor="'. $this->backsideBackgroundColor  .'" leftmargin="0" marginwidth="0" topmargin="0" marginheight="0" offset="0">'. PHP_EOL;
160
+        $html .= '<body bgcolor="' . $this->backsideBackgroundColor . '" leftmargin="0" marginwidth="0" topmargin="0" marginheight="0" offset="0">' . PHP_EOL;
161 161
         
162 162
         $html .= $this->getHtmlComment('CENTER THE EMAIL //', '  ');
163 163
         
164
-        $html .= '  <center style="background-color:'. $this->backsideBackgroundColor  .';">'. PHP_EOL;
165
-        $html .= '    <table border="0" cellpadding="0" cellspacing="0" height="100%" width="100%" id="bodyTable" style="table-layout: fixed;max-width:100% !important;width: 100% !important;min-width: 100% !important;">'. PHP_EOL;
166
-        $html .= '      <tr>'. PHP_EOL;
167
-        $html .= '        <td align="center" valign="top" id="bodyCell">'. PHP_EOL;
164
+        $html .= '  <center style="background-color:' . $this->backsideBackgroundColor . ';">' . PHP_EOL;
165
+        $html .= '    <table border="0" cellpadding="0" cellspacing="0" height="100%" width="100%" id="bodyTable" style="table-layout: fixed;max-width:100% !important;width: 100% !important;min-width: 100% !important;">' . PHP_EOL;
166
+        $html .= '      <tr>' . PHP_EOL;
167
+        $html .= '        <td align="center" valign="top" id="bodyCell">' . PHP_EOL;
168 168
 
169 169
         // render child elements collection
170 170
         $html .= $this->headerContainer->getHtml('          ');    
@@ -172,11 +172,11 @@  discard block
 block discarded – undo
172 172
         $html .= $this->footerContainer->getHtml('          ');    
173 173
 
174 174
         // close centered table
175
-        $html .= '        </td>'. PHP_EOL;
176
-        $html .= '      </tr>'. PHP_EOL;
177
-        $html .= '    </table>'. PHP_EOL;
175
+        $html .= '        </td>' . PHP_EOL;
176
+        $html .= '      </tr>' . PHP_EOL;
177
+        $html .= '    </table>' . PHP_EOL;
178 178
         $html .= $this->getHtmlComment('// CENTER THE EMAIL', '  ');
179
-        $html .= '  </center>'. PHP_EOL;
179
+        $html .= '  </center>' . PHP_EOL;
180 180
 
181 181
         // close body and html tags and returns html
182 182
         $html .= '</body>' . PHP_EOL;
Please login to merge, or discard this patch.
lib/HtmlElements/Row.php 1 patch
Spacing   +28 added lines, -28 removed lines patch added patch discarded remove patch
@@ -41,57 +41,57 @@
 block discarded – undo
41 41
         // html result. start with an empty string or a html comment
42 42
         $html  = $this->getBuilder()->getHtmlComment('ROW CONTAINER' . ' //', $indent);
43 43
      
44
-        $html .= $indent . '<tr>'.PHP_EOL;
45
-        $html .= $indent . '  <td align="center" valign="top">'.PHP_EOL;
44
+        $html .= $indent . '<tr>' . PHP_EOL;
45
+        $html .= $indent . '  <td align="center" valign="top">' . PHP_EOL;
46 46
 
47 47
         $html .= $this->getBuilder()->getHtmlComment('CENTERING TABLE //', $indent . '    ');
48 48
 
49
-        $html .= $indent . '    <table border="0" cellpadding="0" cellspacing="0" width="100%" bgcolor="'. $this->getEffectiveStyle('background-color').'">'.PHP_EOL;
50
-        $html .= $indent . '      <tr '. $this->getRowStyle() .'>'.PHP_EOL;
51
-        $html .= $indent . '        <td align="center" valign="top">'.PHP_EOL;
49
+        $html .= $indent . '    <table border="0" cellpadding="0" cellspacing="0" width="100%" bgcolor="' . $this->getEffectiveStyle('background-color') . '">' . PHP_EOL;
50
+        $html .= $indent . '      <tr ' . $this->getRowStyle() . '>' . PHP_EOL;
51
+        $html .= $indent . '        <td align="center" valign="top">' . PHP_EOL;
52 52
 
53 53
         $html .= $this->getBuilder()->getHtmlComment('FLEXIBLE CONTAINER //', $indent . '          ');
54 54
 
55 55
         $html .= $indent . '          <table border="0" cellspacing="0" cellpadding="' . $this->cellPadding . 
56
-                                        '" bgcolor="'. $this->getEffectiveStyle('background-color').
57
-                                        '" width="'. $this->getBuilder()->emailBodyWidth() . 
58
-                                        '" class="flexibleContainer">'.PHP_EOL;
59
-        $html .= $indent . '            <tr>'.PHP_EOL;
60
-        $html .= $indent . '              <td '. $this->getRowStyle() .
61
-                                              ' align="center" valign="top" width="'. $this->getBuilder()->emailBodyWidth() . 
62
-                                              '" class="flexibleContainerCell">'.PHP_EOL;
56
+                                        '" bgcolor="' . $this->getEffectiveStyle('background-color') .
57
+                                        '" width="' . $this->getBuilder()->emailBodyWidth() . 
58
+                                        '" class="flexibleContainer">' . PHP_EOL;
59
+        $html .= $indent . '            <tr>' . PHP_EOL;
60
+        $html .= $indent . '              <td ' . $this->getRowStyle() .
61
+                                              ' align="center" valign="top" width="' . $this->getBuilder()->emailBodyWidth() . 
62
+                                              '" class="flexibleContainerCell">' . PHP_EOL;
63 63
 
64 64
         $html .= $this->getBuilder()->getHtmlComment('CONTENT TABLE //', $indent . '               ');
65 65
         
66
-        $html .= $indent . '                <table border="0" cellpadding="0" cellspacing="0" width="100%">'.PHP_EOL;
67
-        $html .= $indent . '                  <tr>'.PHP_EOL;
68
-        $html .= $indent . '                    <td align="'. $this->horizontalAlign .'" valign="'. $this->verticalAlign .'" style="color:'. $this->getEffectiveStyle('color') . ';" bgcolor="'. $this->getEffectiveStyle('background-color') . '">'.PHP_EOL;
66
+        $html .= $indent . '                <table border="0" cellpadding="0" cellspacing="0" width="100%">' . PHP_EOL;
67
+        $html .= $indent . '                  <tr>' . PHP_EOL;
68
+        $html .= $indent . '                    <td align="' . $this->horizontalAlign . '" valign="' . $this->verticalAlign . '" style="color:' . $this->getEffectiveStyle('color') . ';" bgcolor="' . $this->getEffectiveStyle('background-color') . '">' . PHP_EOL;
69 69
 
70 70
         // render child elements collection
71
-        foreach ($this->childElements as $element){
72
-            $html .= $element->getHtml($indent . '                      '). PHP_EOL;
71
+        foreach ($this->childElements as $element) {
72
+            $html .= $element->getHtml($indent . '                      ') . PHP_EOL;
73 73
         }
74 74
 
75
-        $html .= $indent . '                    </td>'.PHP_EOL;
76
-        $html .= $indent . '                  </tr>'.PHP_EOL;
77
-        $html .= $indent . '                </table>'.PHP_EOL;
75
+        $html .= $indent . '                    </td>' . PHP_EOL;
76
+        $html .= $indent . '                  </tr>' . PHP_EOL;
77
+        $html .= $indent . '                </table>' . PHP_EOL;
78 78
         
79 79
         $html .= $this->getBuilder()->getHtmlComment('// CONTENT TABLE', $indent . '               ');
80 80
 
81
-        $html .= $indent . '              </td>'.PHP_EOL;
82
-        $html .= $indent . '            </tr>'.PHP_EOL;
83
-        $html .= $indent . '          </table>'.PHP_EOL;
81
+        $html .= $indent . '              </td>' . PHP_EOL;
82
+        $html .= $indent . '            </tr>' . PHP_EOL;
83
+        $html .= $indent . '          </table>' . PHP_EOL;
84 84
 
85 85
         $html .= $this->getBuilder()->getHtmlComment('// FLEXIBLE CONTAINER', $indent . '          ');
86 86
 
87
-        $html .= $indent . '        </td>'.PHP_EOL;
88
-        $html .= $indent . '      </tr>'.PHP_EOL;
89
-        $html .= $indent . '    </table>'.PHP_EOL;
87
+        $html .= $indent . '        </td>' . PHP_EOL;
88
+        $html .= $indent . '      </tr>' . PHP_EOL;
89
+        $html .= $indent . '    </table>' . PHP_EOL;
90 90
 
91 91
         $html .= $this->getBuilder()->getHtmlComment('// CENTERING TABLE', $indent . '    ');
92 92
 
93
-        $html .= $indent . '  </td>'.PHP_EOL;
94
-        $html .= $indent . '</tr>'.PHP_EOL;
93
+        $html .= $indent . '  </td>' . PHP_EOL;
94
+        $html .= $indent . '</tr>' . PHP_EOL;
95 95
 
96 96
         $html .= $this->getBuilder()->getHtmlComment('// ' . 'ROW CONTAINER', $indent);
97 97
         return $html;
Please login to merge, or discard this patch.
lib/HtmlElements/RowTwoColumns.php 1 patch
Spacing   +27 added lines, -27 removed lines patch added patch discarded remove patch
@@ -99,59 +99,59 @@
 block discarded – undo
99 99
         // html result. start with an empty string or a html comment
100 100
         $html  = $this->getBuilder()->getHtmlComment('ROW TWO COLUMNS CONTAINER' . ' //', $indent);
101 101
      
102
-        $html .= $indent . '<tr>'.PHP_EOL;
103
-        $html .= $indent . '  <td align="center" valign="top">'.PHP_EOL;
102
+        $html .= $indent . '<tr>' . PHP_EOL;
103
+        $html .= $indent . '  <td align="center" valign="top">' . PHP_EOL;
104 104
 
105 105
         $html .= $this->getBuilder()->getHtmlComment('CENTERING TABLE //', $indent . '    ');
106 106
 
107
-        $html .= $indent . '    <table border="0" cellpadding="0" cellspacing="0" width="100%" bgcolor="'. $this->getEffectiveStyle('background-color').'">'.PHP_EOL;
108
-        $html .= $indent . '      <tr'. $this->getRowStyle() .'>'.PHP_EOL;
109
-        $html .= $indent . '        <td align="center" valign="top">'.PHP_EOL;
107
+        $html .= $indent . '    <table border="0" cellpadding="0" cellspacing="0" width="100%" bgcolor="' . $this->getEffectiveStyle('background-color') . '">' . PHP_EOL;
108
+        $html .= $indent . '      <tr' . $this->getRowStyle() . '>' . PHP_EOL;
109
+        $html .= $indent . '        <td align="center" valign="top">' . PHP_EOL;
110 110
 
111 111
         $html .= $this->getBuilder()->getHtmlComment('FLEXIBLE CONTAINER //', $indent . '          ');
112 112
 
113
-        $html .= $indent . '          <table border="0" cellspacing="0" cellpadding="'. $this->cellPadding . 
114
-                                        '" bgcolor="'. $this->getEffectiveStyle('background-color').
115
-                                        '" width="'. $this->getBuilder()->emailBodyWidth() . 
116
-                                        '" class="flexibleContainer">'.PHP_EOL;
117
-        $html .= $indent . '            <tr>'.PHP_EOL;
118
-        $html .= $indent . '              <td'.$this->getRowStyle().
119
-                                              ' align="center" valign="top" width="'. $this->getBuilder()->emailBodyWidth() . 
120
-                                              '" class="flexibleContainerCell">'.PHP_EOL;
113
+        $html .= $indent . '          <table border="0" cellspacing="0" cellpadding="' . $this->cellPadding . 
114
+                                        '" bgcolor="' . $this->getEffectiveStyle('background-color') .
115
+                                        '" width="' . $this->getBuilder()->emailBodyWidth() . 
116
+                                        '" class="flexibleContainer">' . PHP_EOL;
117
+        $html .= $indent . '            <tr>' . PHP_EOL;
118
+        $html .= $indent . '              <td' . $this->getRowStyle() .
119
+                                              ' align="center" valign="top" width="' . $this->getBuilder()->emailBodyWidth() . 
120
+                                              '" class="flexibleContainerCell">' . PHP_EOL;
121 121
 
122 122
         $html .= $this->getBuilder()->getHtmlComment('CONTENT TABLE //', $indent . '               ');
123 123
         
124
-        $html .= $indent . '                <table border="0" cellpadding="0" cellspacing="0" width="100%">'.PHP_EOL;
125
-        $html .= $indent . '                  <tr>'.PHP_EOL;
124
+        $html .= $indent . '                <table border="0" cellpadding="0" cellspacing="0" width="100%">' . PHP_EOL;
125
+        $html .= $indent . '                  <tr>' . PHP_EOL;
126 126
 
127 127
         $html .= $this->getBuilder()->getHtmlComment('COLUMN LEFT //', $indent . '                    ');
128 128
         $html .= $this->leftColumn()->getHtml($indent . '                    ');
129 129
         $html .= $this->getBuilder()->getHtmlComment('// COLUMN LEFT', $indent . '                    ');
130 130
 
131
-        $html .= $this->getBuilder()->getHtmlComment('COLUMN RIGHT //', $indent. '                    ');
131
+        $html .= $this->getBuilder()->getHtmlComment('COLUMN RIGHT //', $indent . '                    ');
132 132
         $html .= $this->rightColumn()->getHtml($indent . '                    ');
133
-        $html .= $this->getBuilder()->getHtmlComment('// COLUMN RIGHT', $indent. '                    ');
133
+        $html .= $this->getBuilder()->getHtmlComment('// COLUMN RIGHT', $indent . '                    ');
134 134
 
135 135
 
136
-        $html .= $indent . '                  </tr>'.PHP_EOL;
137
-        $html .= $indent . '                </table>'.PHP_EOL;
136
+        $html .= $indent . '                  </tr>' . PHP_EOL;
137
+        $html .= $indent . '                </table>' . PHP_EOL;
138 138
         
139 139
         $html .= $this->getBuilder()->getHtmlComment('// CONTENT TABLE', $indent . '               ');
140 140
 
141
-        $html .= $indent . '              </td>'.PHP_EOL;
142
-        $html .= $indent . '            </tr>'.PHP_EOL;
143
-        $html .= $indent . '          </table>'.PHP_EOL;
141
+        $html .= $indent . '              </td>' . PHP_EOL;
142
+        $html .= $indent . '            </tr>' . PHP_EOL;
143
+        $html .= $indent . '          </table>' . PHP_EOL;
144 144
 
145 145
         $html .= $this->getBuilder()->getHtmlComment('// FLEXIBLE CONTAINER', $indent . '          ');
146 146
 
147
-        $html .= $indent . '        </td>'.PHP_EOL;
148
-        $html .= $indent . '      </tr>'.PHP_EOL;
149
-        $html .= $indent . '    </table>'.PHP_EOL;
147
+        $html .= $indent . '        </td>' . PHP_EOL;
148
+        $html .= $indent . '      </tr>' . PHP_EOL;
149
+        $html .= $indent . '    </table>' . PHP_EOL;
150 150
 
151 151
         $html .= $this->getBuilder()->getHtmlComment('// CENTERING TABLE', $indent . '    ');
152 152
 
153
-        $html .= $indent . '  </td>'.PHP_EOL;
154
-        $html .= $indent . '</tr>'.PHP_EOL;
153
+        $html .= $indent . '  </td>' . PHP_EOL;
154
+        $html .= $indent . '</tr>' . PHP_EOL;
155 155
 
156 156
         $html .= $this->getBuilder()->getHtmlComment('// ' . 'ROW TWO COLUMNS CONTAINER', $indent);
157 157
         return $html;
Please login to merge, or discard this patch.