Passed
Push — 3.0 ( 999ef2 )
by Zaahid
09:22
created
Category
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/Header/Part/SplitParameterToken.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -154,7 +154,7 @@
 block discarded – undo
154 154
         return \array_reduce(
155 155
             $parts,
156 156
             function($carry, $item) {
157
-                return $carry . $item;
157
+                return $carry.$item;
158 158
             },
159 159
             ''
160 160
         );
Please login to merge, or discard this patch.
src/Header/Part/DatePart.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
             $dateToken = \preg_replace('# ([0-9]{4})$#', ' +$1', $dateToken);
42 42
         // @see https://bugs.php.net/bug.php?id=42486
43 43
         } elseif (\preg_match('#UT$#', $dateToken)) {
44
-            $dateToken = $dateToken . 'C';
44
+            $dateToken = $dateToken.'C';
45 45
         }
46 46
 
47 47
         try {
Please login to merge, or discard this patch.
src/Message/Helper/MultipartHelper.php 1 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
     /**
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
         $part->setRawHeader(
57 57
             HeaderConsts::CONTENT_TYPE,
58 58
             "$mimeType;\r\n\tboundary=\""
59
-                . $this->getUniqueBoundary($mimeType) . '"'
59
+                . $this->getUniqueBoundary($mimeType).'"'
60 60
         );
61 61
         $part->notify();
62 62
         return $this;
@@ -297,7 +297,7 @@  discard block
 block discarded – undo
297 297
     public function createAndAddPartForAttachment(IMessage $message, $resource, string $mimeType, string $disposition, ?string $filename = null, string $encoding = 'base64')
298 298
     {
299 299
         if ($filename === null) {
300
-            $filename = 'file' . \uniqid();
300
+            $filename = 'file'.\uniqid();
301 301
         }
302 302
 
303 303
         $safe = \iconv('UTF-8', 'US-ASCII//translit//ignore', $filename);
Please login to merge, or discard this patch.
src/ServiceLocator.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
 
39 39
     protected function __construct(?LoggerInterface $logger = null, ?array $serviceProviders = null)
40 40
     {
41
-        parent::__construct([ LoggerInterface::class => $logger ?? new NullLogger() ]);
41
+        parent::__construct([LoggerInterface::class => $logger ?? new NullLogger()]);
42 42
         $this->registerAll($serviceProviders);
43 43
     }
44 44
 
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
      */
109 109
     private function registerAll(?array $exts)
110 110
     {
111
-        $a = array_merge($exts ?? [], [ new LoggerServiceProvider() ]);
111
+        $a = array_merge($exts ?? [], [new LoggerServiceProvider()]);
112 112
         foreach ($a as $e) {
113 113
             $this->register($e);
114 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
@@ -124,8 +124,7 @@  discard block
 block discarded – undo
124 124
     public function getStream()
125 125
     {
126 126
         return ($this->messageStream === null && $this->parent !== null) ?
127
-            $this->parent->getStream() :
128
-            $this->messageStream;
127
+            $this->parent->getStream() : $this->messageStream;
129 128
     }
130 129
 
131 130
     /**
@@ -137,8 +136,7 @@  discard block
 block discarded – undo
137 136
     public function getMessageResourceHandle()
138 137
     {
139 138
         return ($this->messageHandle === null && $this->parent !== null) ?
140
-            $this->parent->getMessageResourceHandle() :
141
-            $this->messageHandle;
139
+            $this->parent->getMessageResourceHandle() : $this->messageHandle;
142 140
     }
143 141
 
144 142
     /**
Please login to merge, or discard this patch.