Test Failed
Push — master ( e258e4...a626ba )
by Zaahid
15:25
created
src/Header/Part/ContainerPart.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
         $spaced = \array_merge($parts, [$ends]);
57 57
         $filtered = \array_slice(\array_reduce(
58 58
             \array_slice(\array_keys($spaced), 0, -1),
59
-            function ($carry, $key) use ($spaced, $ends) {
59
+            function($carry, $key) use ($spaced, $ends) {
60 60
                 $p = $spaced[$key];
61 61
                 $l = \end($carry);
62 62
                 $a = $spaced[$key + 1];
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
      */
85 85
     protected function getValueFromParts(array $parts) : string
86 86
     {
87
-        return \array_reduce($this->filterIgnoredSpaces($parts), fn ($c, $p) => $c . $p->getValue(), '');
87
+        return \array_reduce($this->filterIgnoredSpaces($parts), fn ($c, $p) => $c.$p->getValue(), '');
88 88
     }
89 89
 
90 90
     /**
Please login to merge, or discard this patch.
src/Header/Part/AddressPart.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -26,11 +26,11 @@
 block discarded – undo
26 26
     protected function getValueFromParts(array $parts) : string
27 27
     {
28 28
         return \implode(\array_map(
29
-            function ($p) {
29
+            function($p) {
30 30
                 if ($p instanceof AddressPart) {
31 31
                     return $p->getValue();
32 32
                 } elseif ($p instanceof QuotedLiteralPart && $p->getValue() !== '') {
33
-                    return '"' . \preg_replace('/(["\\\])/', '\\\$1', $p->getValue()) . '"';
33
+                    return '"'.\preg_replace('/(["\\\])/', '\\\$1', $p->getValue()).'"';
34 34
                 } else {
35 35
                     return \preg_replace('/\s+/', '', $p->getValue());
36 36
                 }
Please login to merge, or discard this patch.
src/Header/Part/CommentPart.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -47,11 +47,11 @@
 block discarded – undo
47 47
     {
48 48
         $partFactory = $this->partFactory;
49 49
         return parent::getValueFromParts(\array_map(
50
-            function ($p) use ($partFactory) {
50
+            function($p) use ($partFactory) {
51 51
                 if ($p instanceof CommentPart) {
52
-                    return $partFactory->newQuotedLiteralPart([$partFactory->newToken('(' . $p->getComment() . ')')]);
52
+                    return $partFactory->newQuotedLiteralPart([$partFactory->newToken('('.$p->getComment().')')]);
53 53
                 } elseif ($p instanceof QuotedLiteralPart) {
54
-                    return $partFactory->newQuotedLiteralPart([$partFactory->newToken('"' . \str_replace('(["\\])', '\$1', $p->getValue()) . '"')]);
54
+                    return $partFactory->newQuotedLiteralPart([$partFactory->newToken('"'.\str_replace('(["\\])', '\$1', $p->getValue()).'"')]);
55 55
                 }
56 56
                 return $p;
57 57
             },
Please login to merge, or discard this patch.
src/Header/Part/ReceivedDomainPart.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@
 block discarded – undo
64 64
 
65 65
         $pattern = '~^(\[(IPv[64])?(?P<addr1>[a-f\d\.\:]+)\])?\s*(helo=)?(?P<name>[a-z0-9\-]+[a-z0-9\-\.]+)?\s*(\[(IPv[64])?(?P<addr2>[a-f\d\.\:]+)\])?$~i';
66 66
         if ($commentPart !== null && \preg_match($pattern, $commentPart->getComment(), $matches)) {
67
-            $this->value .= ' (' . $commentPart->getComment() . ')';
67
+            $this->value .= ' ('.$commentPart->getComment().')';
68 68
             $this->hostname = (!empty($matches['name'])) ? $matches['name'] : null;
69 69
             $this->address = (!empty($matches['addr1'])) ? $matches['addr1'] : ((!empty($matches['addr2'])) ? $matches['addr2'] : null);
70 70
         }
Please login to merge, or discard this patch.
src/Header/MimeEncodedHeader.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@
 block discarded – undo
50 50
     {
51 51
         // handled differently from MimeLiteralPart's decoding which ignores
52 52
         // whitespace between parts, etc...
53
-        $matchp = '~(' . MimeToken::MIME_PART_PATTERN . ')~';
53
+        $matchp = '~('.MimeToken::MIME_PART_PATTERN.')~';
54 54
         $aMimeParts = \preg_split($matchp, $value, -1, PREG_SPLIT_DELIM_CAPTURE | PREG_SPLIT_NO_EMPTY);
55 55
         $this->mimeEncodedParsedParts = \array_map([$this->mimeTokenPartFactory, 'newInstance'], $aMimeParts);
56 56
         parent::parseHeaderValue(
Please login to merge, or discard this patch.