Passed
Push — master ( 295c7f...61bbf4 )
by Zaahid
09:01
created
src/Header/Consumer/CommentConsumer.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
      */
41 41
     protected function getTokenSeparators()
42 42
     {
43
-        return [ '\(', '\)' ];
43
+        return ['\(', '\)'];
44 44
     }
45 45
     
46 46
     /**
@@ -109,13 +109,13 @@  discard block
 block discarded – undo
109 109
         foreach ($parts as $part) {
110 110
             // order is important here - CommentPart extends LiteralPart
111 111
             if ($part instanceof CommentPart) {
112
-                $comment .= '(' . $part->getComment() . ')';
112
+                $comment .= '('.$part->getComment().')';
113 113
             } elseif ($part instanceof LiteralPart) {
114
-                $comment .= '"' . str_replace('(["\\])', '\$1', $part->getValue()) . '"';
114
+                $comment .= '"'.str_replace('(["\\])', '\$1', $part->getValue()).'"';
115 115
             } else {
116 116
                 $comment .= $part->getValue();
117 117
             }
118 118
         }
119
-        return [ $this->partFactory->newCommentPart($comment) ];
119
+        return [$this->partFactory->newCommentPart($comment)];
120 120
     }
121 121
 }
Please login to merge, or discard this patch.
src/Header/Consumer/AddressEmailConsumer.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
      */
44 44
     public function getTokenSeparators()
45 45
     {
46
-        return [ '<', '>' ];
46
+        return ['<', '>'];
47 47
     }
48 48
     
49 49
     /**
@@ -82,12 +82,12 @@  discard block
 block discarded – undo
82 82
         foreach ($parts as $p) {
83 83
             $val = $p->getValue();
84 84
             if ((($p instanceof LiteralPart) && !($p instanceof CommentPart)) && $val !== '') {
85
-                $val = '"' . preg_replace('/(["\\\])/', "\\\\$1", $val) . '"';
85
+                $val = '"'.preg_replace('/(["\\\])/', "\\\\$1", $val).'"';
86 86
             } else {
87 87
                 $val = preg_replace('/\s+/', '', $val);
88 88
             }
89 89
             $strEmail .= $val;
90 90
         }
91
-        return [ $this->partFactory->newAddressPart('', $strEmail) ];
91
+        return [$this->partFactory->newAddressPart('', $strEmail)];
92 92
     }
93 93
 }
Please login to merge, or discard this patch.
src/Header/Consumer/AddressConsumer.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
      */
61 61
     public function getTokenSeparators()
62 62
     {
63
-        return [ ',', ';', '\s+' ];
63
+        return [',', ';', '\s+'];
64 64
     }
65 65
     
66 66
     /**
@@ -116,14 +116,14 @@  discard block
 block discarded – undo
116 116
                     )
117 117
                 ];
118 118
             } elseif ($part instanceof AddressPart) {
119
-                return [ $this->partFactory->newAddressPart($strName, $part->getEmail()) ];
119
+                return [$this->partFactory->newAddressPart($strName, $part->getEmail())];
120 120
             } elseif ((($part instanceof LiteralPart) && !($part instanceof CommentPart)) && $part->getValue() !== '') {
121
-                $strEmail .= '"' . preg_replace('/(["\\\])/', "\\\\$1", $part->getValue()) . '"';
121
+                $strEmail .= '"'.preg_replace('/(["\\\])/', "\\\\$1", $part->getValue()).'"';
122 122
             } else {
123 123
                 $strEmail .= preg_replace('/\s+/', '', $part->getValue());
124 124
             }
125 125
             $strName .= $part->getValue();
126 126
         }
127
-        return [ $this->partFactory->newAddressPart('', $strEmail) ];
127
+        return [$this->partFactory->newAddressPart('', $strEmail)];
128 128
     }
129 129
 }
Please login to merge, or discard this patch.