Passed
Push — 2.0 ( df1b1e...20b3e4 )
by Zaahid
08:44 queued 05:27
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.
PhpCsFixer.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
         // Function defined by PHP should be called using the correct casing.
111 111
         'native_function_casing' => true,
112 112
         // Add leading `\` before function invocation to speed up resolving.
113
-        'native_function_invocation' => ['include'=>['@all','trans']],
113
+        'native_function_invocation' => ['include'=>['@all', 'trans']],
114 114
         // Native type hints for functions should use the correct case.
115 115
         'native_function_type_declaration_casing' => true,
116 116
         // All instances created with new keyword must be followed by braces.
@@ -192,7 +192,7 @@  discard block
 block discarded – undo
192 192
         // There should not be space before or after object operators `->` and `?->`.
193 193
         'object_operator_without_whitespace' => true,
194 194
         // Orders the elements of classes/interfaces/traits.
195
-        'ordered_class_elements' => ['order'=>['use_trait','constant_public','constant_protected','constant_private','property_public','property_protected','property_private']],
195
+        'ordered_class_elements' => ['order'=>['use_trait', 'constant_public', 'constant_protected', 'constant_private', 'property_public', 'property_protected', 'property_private']],
196 196
         // Ordering `use` statements.
197 197
         'ordered_imports' => true,
198 198
         // Orders the interfaces in an `implements` or `interface extends` clause.
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.