Passed
Branch master (4f662e)
by Zaahid
03:21
created
src/Message/Helper/PrivacyHelper.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -108,8 +108,7 @@
 block discarded – undo
108 108
             $part->setRawHeader(
109 109
                 HeaderConsts::CONTENT_TRANSFER_ENCODING,
110 110
                 ($contentType === 'text/plain' || $contentType === 'text/html') ?
111
-                'quoted-printable' :
112
-                'base64'
111
+                'quoted-printable' : 'base64'
113 112
             );
114 113
         }
115 114
     }
Please login to merge, or discard this patch.
src/Parser/PartBuilder.php 1 patch
Spacing   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -123,8 +123,7 @@  discard block
 block discarded – undo
123 123
     public function getStream()
124 124
     {
125 125
         return ($this->parent !== null) ?
126
-            $this->parent->getStream() :
127
-            $this->messageStream;
126
+            $this->parent->getStream() : $this->messageStream;
128 127
     }
129 128
 
130 129
     /**
@@ -136,8 +135,7 @@  discard block
 block discarded – undo
136 135
     public function getMessageResourceHandle()
137 136
     {
138 137
         return ($this->parent !== null) ?
139
-            $this->parent->getMessageResourceHandle() :
140
-            $this->messageHandle;
138
+            $this->parent->getMessageResourceHandle() : $this->messageHandle;
141 139
     }
142 140
 
143 141
     /**
Please login to merge, or discard this patch.
PHPStanConstants.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-define ('TEST_DATA_DIR', __DIR__ . '/tests/_data');
4
-define ('TEST_OUTPUT_DIR', __DIR__ . '/tests/_output');
3
+define('TEST_DATA_DIR', __DIR__.'/tests/_data');
4
+define('TEST_OUTPUT_DIR', __DIR__.'/tests/_output');
Please login to merge, or discard this patch.
src/Message/PartChildrenContainer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -138,7 +138,7 @@
 block discarded – undo
138 138
     {
139 139
         if (!$value instanceof IMessagePart) {
140 140
             throw new InvalidArgumentException(
141
-                \get_class($value) . ' is not a ZBateson\MailMimeParser\Message\IMessagePart'
141
+                \get_class($value).' is not a ZBateson\MailMimeParser\Message\IMessagePart'
142 142
             );
143 143
         }
144 144
         $index = $offset ?? \count($this->children);
Please login to merge, or discard this patch.
src/Parser/ParserManager.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -77,8 +77,7 @@
 block discarded – undo
77 77
         foreach ($this->parsers as $parser) {
78 78
             if ($parser->canParse($partBuilder)) {
79 79
                 $factory = ($partBuilder->getParent() === null) ?
80
-                    $parser->getParserMessageProxyFactory() :
81
-                    $parser->getParserPartProxyFactory();
80
+                    $parser->getParserMessageProxyFactory() : $parser->getParserPartProxyFactory();
82 81
                 return $factory->newInstance($partBuilder, $parser);
83 82
             }
84 83
         }
Please login to merge, or discard this patch.
src/Parser/HeaderParser.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@
 block discarded – undo
47 47
                 $this->addRawHeaderToPart($header, $container);
48 48
                 $header = '';
49 49
             } else {
50
-                $line = "\r\n" . $line;
50
+                $line = "\r\n".$line;
51 51
             }
52 52
             $header .= \rtrim($line, "\r\n");
53 53
         } while ($header !== '');
Please login to merge, or discard this patch.
src/Header/Consumer/CommentConsumer.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -100,9 +100,9 @@
 block discarded – undo
100 100
         foreach ($parts as $part) {
101 101
             // order is important here - CommentPart extends LiteralPart
102 102
             if ($part instanceof CommentPart) {
103
-                $comment .= '(' . $part->getComment() . ')';
103
+                $comment .= '('.$part->getComment().')';
104 104
             } elseif ($part instanceof LiteralPart) {
105
-                $comment .= '"' . \str_replace('(["\\])', '\$1', $part->getValue()) . '"';
105
+                $comment .= '"'.\str_replace('(["\\])', '\$1', $part->getValue()).'"';
106 106
             } else {
107 107
                 $comment .= $part->getValue();
108 108
             }
Please login to merge, or discard this patch.
src/Header/Consumer/SubjectConsumer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -89,6 +89,6 @@
 block discarded – undo
89 89
     protected function getTokenSplitPattern() : string
90 90
     {
91 91
         $sChars = \implode('|', $this->getAllTokenSeparators());
92
-        return '~(' . $sChars . ')~';
92
+        return '~('.$sChars.')~';
93 93
     }
94 94
 }
Please login to merge, or discard this patch.
src/Header/Consumer/AddressEmailConsumer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -78,7 +78,7 @@
 block discarded – undo
78 78
         foreach ($parts as $p) {
79 79
             $val = $p->getValue();
80 80
             if ((($p instanceof LiteralPart) && !($p instanceof CommentPart)) && $val !== '') {
81
-                $val = '"' . \preg_replace('/(["\\\])/', '\\\$1', $val) . '"';
81
+                $val = '"'.\preg_replace('/(["\\\])/', '\\\$1', $val).'"';
82 82
             } else {
83 83
                 $val = \preg_replace('/\s+/', '', $val);
84 84
             }
Please login to merge, or discard this patch.