Completed
Push — master ( 575344...8f4d2b )
by Kris
15s queued 12s
created
lib/EmailFooterContainer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
37 37
     public function getHtml(string $indent)
38 38
     {
39 39
         // make sure a color is set
40
-        if (empty($this->styles['color'])){
40
+        if (empty($this->styles['color'])) {
41 41
             $this->setColor($this->getBuilder()->backsideColor());
42 42
         }
43 43
         
Please login to merge, or discard this patch.
lib/EmailBodyContainer.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -55,16 +55,16 @@
 block discarded – undo
55 55
         $html  = $this->getBuilder()->getHtmlComment('EMAIL BODY' . ' //', $indent);
56 56
             
57 57
         // create a table container
58
-        $html .= $indent . '<table bgcolor="'.$this->getBuilder()->emailBodyBackground() . '"' 
59
-                                . ' width="'. $this->getBuilder()->emailBodyWidth() . '"'  
60
-                                . ' border="0" cellpadding="0" cellspacing="0" id="emailBody">' .PHP_EOL;
58
+        $html .= $indent . '<table bgcolor="' . $this->getBuilder()->emailBodyBackground() . '"' 
59
+                                . ' width="' . $this->getBuilder()->emailBodyWidth() . '"'  
60
+                                . ' border="0" cellpadding="0" cellspacing="0" id="emailBody">' . PHP_EOL;
61 61
 
62 62
         // render child elements collection
63
-        foreach ($this->childElements as $element){
64
-            $html .= $element->getHtml($indent . '  ') .PHP_EOL ;
63
+        foreach ($this->childElements as $element) {
64
+            $html .= $element->getHtml($indent . '  ') . PHP_EOL;
65 65
         }
66 66
 
67
-        $html .= $indent . '</table>'.PHP_EOL;
67
+        $html .= $indent . '</table>' . PHP_EOL;
68 68
         $html .= $this->getBuilder()->getHtmlComment('// ' . 'EMAIL BODY', $indent);
69 69
         $html .= PHP_EOL;
70 70
 
Please login to merge, or discard this patch.
lib/HtmlElements/Image.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -101,12 +101,12 @@
 block discarded – undo
101 101
     {
102 102
         return $this->getBuilder()->getHtmlComment('IMAGE', $indent) . $indent 
103 103
                              . '<img class="flexibleImage"'
104
-                             . ' src="'. $this->imageSrc . '"' 
105
-                             . ' width="'. strval($this->imageWidth) . '"' 
106
-                             . ' alt="'. $this->imageAlt . '"' 
107
-                             . ' title="'. $this->imageTitle . '"' 
108
-                             . ' style="max-width:'. strval($this->imageWidth) .'px;width:100%;display:block;'
109
-                             . (empty($this->imageMaxHeight) ? '' : 'max-height:'. strval($this->imageMaxHeight) .'px;')
104
+                             . ' src="' . $this->imageSrc . '"' 
105
+                             . ' width="' . strval($this->imageWidth) . '"' 
106
+                             . ' alt="' . $this->imageAlt . '"' 
107
+                             . ' title="' . $this->imageTitle . '"' 
108
+                             . ' style="max-width:' . strval($this->imageWidth) . 'px;width:100%;display:block;'
109
+                             . (empty($this->imageMaxHeight) ? '' : 'max-height:' . strval($this->imageMaxHeight) . 'px;')
110 110
                              . '"/>';
111 111
     }
112 112
 }
113 113
\ No newline at end of file
Please login to merge, or discard this patch.
lib/HtmlElements/Div.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -58,14 +58,14 @@
 block discarded – undo
58 58
      */
59 59
     public function getHtml(string $indent)
60 60
     {
61
-       $html  = $indent . '<div'. $this->getInlineStyles() . '>'. PHP_EOL;
61
+       $html = $indent . '<div' . $this->getInlineStyles() . '>' . PHP_EOL;
62 62
 
63 63
        // render child elements collection
64
-       foreach ($this->elements() as $element){
65
-           $html .= $element->getHtml($indent . '  '). PHP_EOL ;
64
+       foreach ($this->elements() as $element) {
65
+           $html .= $element->getHtml($indent . '  ') . PHP_EOL;
66 66
        }
67 67
 
68
-       $html .= $indent . '</div>'.PHP_EOL;
68
+       $html .= $indent . '</div>' . PHP_EOL;
69 69
        return $html;
70 70
     }
71 71
 
Please login to merge, or discard this patch.
lib/HtmlElements/Link.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -82,11 +82,11 @@
 block discarded – undo
82 82
                     . $indent 
83 83
                     . '<a class="link"'
84 84
                     . ' target="_blank"' 
85
-                    . ' href="'. $this->linkHref . '"' 
86
-                    . ' title="'. $this->linkTitle . '"'
85
+                    . ' href="' . $this->linkHref . '"' 
86
+                    . ' title="' . $this->linkTitle . '"'
87 87
                     . $this->getInlineStyles() 
88
-                    . '>'. PHP_EOL
88
+                    . '>' . PHP_EOL
89 89
                     . $this->content
90
-                    . '</a>'. PHP_EOL;
90
+                    . '</a>' . PHP_EOL;
91 91
     }
92 92
 }
93 93
\ No newline at end of file
Please login to merge, or discard this patch.
lib/Core/StylizedElement.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -49,14 +49,14 @@  discard block
 block discarded – undo
49 49
      * @var array   $knowStyles
50 50
      */
51 51
     protected $knowStyles = array(
52
-        'color' ,   
52
+        'color',   
53 53
         'background-color',
54 54
         'font-family',
55 55
         'font-size',
56 56
         'font-weight',
57 57
         'line-height',
58
-        'padding-top' ,  
59
-        'padding-left' ,  
58
+        'padding-top',  
59
+        'padding-left',  
60 60
         'padding-bottom',  
61 61
         'padding-right',
62 62
         'text-align',  
@@ -80,8 +80,8 @@  discard block
 block discarded – undo
80 80
      */
81 81
     public function setStyles(array $styles = [])
82 82
     {
83
-        foreach ($styles as $key => $value){
84
-            if (in_array($key, $this->knowStyles)){
83
+        foreach ($styles as $key => $value) {
84
+            if (in_array($key, $this->knowStyles)) {
85 85
                 $this->styles[$key] = $value;
86 86
             }
87 87
         }
Please login to merge, or discard this patch.
lib/Core/ContainerPaddingTrait.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -95,10 +95,10 @@
 block discarded – undo
95 95
      */
96 96
      protected function getRowStyle()
97 97
      {
98
-         return ($this->removePaddingTop || $this->removePaddingBottom ) ?
99
-                 'style="'. 
98
+         return ($this->removePaddingTop || $this->removePaddingBottom) ?
99
+                 'style="' . 
100 100
                  ($this->removePaddingTop ? 'padding-top:0;' : '') .
101
-                 ($this->removePaddingBottom ? 'padding-bottom:0;' : '').
101
+                 ($this->removePaddingBottom ? 'padding-bottom:0;' : '') .
102 102
                  '"' : '';
103 103
      }
104 104
 }
105 105
\ No newline at end of file
Please login to merge, or discard this patch.
lib/Core/MixedElement.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -62,6 +62,6 @@
 block discarded – undo
62 62
      */
63 63
     public function getHtml(string $indent = '')
64 64
     {
65
-        return $indent . '<' . $this->tag . $this->getInlineStyles() .'>' . $this->content. '</' . $this->tag  . '>';
65
+        return $indent . '<' . $this->tag . $this->getInlineStyles() . '>' . $this->content . '</' . $this->tag . '>';
66 66
     }
67 67
 }
68 68
\ No newline at end of file
Please login to merge, or discard this patch.
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.