Passed
Push — master ( 0fbe6d...181d77 )
by Zaahid
03:31
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.
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/Helper/MultipartHelper.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
30 30
     private $genericHelper;
31 31
 
32 32
     public function __construct(IMimePartFactory $mimePartFactory, IUUEncodedPartFactory $uuEncodedPartFactory, GenericHelper $genericHelper)
33
-	{
33
+    {
34 34
         parent::__construct($mimePartFactory, $uuEncodedPartFactory);
35 35
         $this->genericHelper = $genericHelper;
36 36
     }
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
     public function getUniqueBoundary(string $mimeType) : string
45 45
     {
46 46
         $type = \ltrim(\strtoupper(\preg_replace('/^(multipart\/(.{3}).*|.*)$/i', '$2-', $mimeType)), '-');
47
-        return \uniqid('----=MMP-' . $type . '-', true);
47
+        return \uniqid('----=MMP-'.$type.'-', true);
48 48
     }
49 49
 
50 50
     /**
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
         $part->setRawHeader(
58 58
             HeaderConsts::CONTENT_TYPE,
59 59
             "$mimeType;\r\n\tboundary=\""
60
-                . $this->getUniqueBoundary($mimeType) . '"'
60
+                . $this->getUniqueBoundary($mimeType).'"'
61 61
         );
62 62
         $part->notify();
63 63
     }
@@ -296,7 +296,7 @@  discard block
 block discarded – undo
296 296
     public function createAndAddPartForAttachment(IMessage $message, $resource, string $mimeType, string $disposition, ?string $filename = null, string $encoding = 'base64')
297 297
     {
298 298
         if ($filename === null) {
299
-            $filename = 'file' . \uniqid();
299
+            $filename = 'file'.\uniqid();
300 300
         }
301 301
 
302 302
         $safe = \iconv('UTF-8', 'US-ASCII//translit//ignore', $filename);
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/NonMimeParser.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -82,7 +82,7 @@
 block discarded – undo
82 82
             $line = \trim(MessageParser::readLine($handle));
83 83
             if (\preg_match('/^begin ([0-7]{3}) (.*)$/', $line, $matches)) {
84 84
                 $proxy->setNextPartStart($start);
85
-                $proxy->setNextPartMode((int)$matches[1]);
85
+                $proxy->setNextPartMode((int) $matches[1]);
86 86
                 $proxy->setNextPartFilename($matches[2]);
87 87
                 return;
88 88
             }
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.