Test Failed
Push — master ( e258e4...a626ba )
by Zaahid
15:25
created
src/Header/Consumer/ParameterConsumerService.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -68,18 +68,18 @@
 block discarded – undo
68 68
     {
69 69
         $factory = $this->partFactory;
70 70
         return \array_values(\array_map(
71
-            function ($partsArray) use ($factory) {
71
+            function($partsArray) use ($factory) {
72 72
                 if (count($partsArray) > 1) {
73 73
                     return $factory->newSplitParameterPart($partsArray);
74 74
                 }
75 75
                 return $partsArray[0];
76 76
             },
77 77
             \array_merge_recursive(...\array_map(
78
-                function ($p) {
78
+                function($p) {
79 79
                     if ($p instanceOf ParameterPart && $p->getIndex() !== null) {
80 80
                         return [strtolower($p->getName()) => [$p]];
81 81
                     } else {
82
-                        return [';' . spl_object_id($p) . ';' => [$p]];
82
+                        return [';'.spl_object_id($p).';' => [$p]];
83 83
                     }
84 84
                 },
85 85
                 $parts
Please login to merge, or discard this patch.
src/Header/Consumer/SubjectConsumerService.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
      */
40 40
     protected function getPartForToken(string $token, bool $isLiteral) : ?IHeaderPart
41 41
     {
42
-        if (\preg_match('/' . MimeToken::MIME_PART_PATTERN . '/', $token)) {
42
+        if (\preg_match('/'.MimeToken::MIME_PART_PATTERN.'/', $token)) {
43 43
             return $this->partFactory->newMimeToken($token);
44 44
         }
45 45
         return $this->partFactory->newSubjectToken($token);
Please login to merge, or discard this patch.
src/Header/Consumer/AbstractConsumerService.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -150,7 +150,7 @@
 block discarded – undo
150 150
     {
151 151
         $sChars = \implode('|', $this->getAllTokenSeparators());
152 152
         $mimePartPattern = MimeToken::MIME_PART_PATTERN;
153
-        return '~(' . $mimePartPattern . '|\\\\\r\n|\\\\.|' . $sChars . ')~ms';
153
+        return '~('.$mimePartPattern.'|\\\\\r\n|\\\\.|'.$sChars.')~ms';
154 154
     }
155 155
 
156 156
     /**
Please login to merge, or discard this patch.
src/Header/Part/NameValuePart.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
45 45
      */
46 46
     protected function getNameFromParts(array $parts) : string
47 47
     {
48
-        return \array_reduce($this->filterIgnoredSpaces($parts), fn ($c, $p) => $c . $p->getValue(), '');
48
+        return \array_reduce($this->filterIgnoredSpaces($parts), fn ($c, $p) => $c.$p->getValue(), '');
49 49
     }
50 50
 
51 51
     /**
Please login to merge, or discard this patch.
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.