Passed
Push — 3.0 ( 999ef2 )
by Zaahid
09:22
created
Category
src/Parser/ParserManagerService.php 1 patch
Spacing   +2 added lines, -3 removed lines patch added patch discarded remove patch
@@ -82,11 +82,10 @@
 block discarded – undo
82 82
         foreach ($this->parsers as $parser) {
83 83
             if ($parser->canParse($partBuilder)) {
84 84
                 $factory = ($partBuilder->getParent() === null) ?
85
-                    $parser->getParserMessageProxyFactory() :
86
-                    $parser->getParserPartProxyFactory();
85
+                    $parser->getParserMessageProxyFactory() : $parser->getParserPartProxyFactory();
87 86
                 return $factory->newInstance($partBuilder, $parser);
88 87
             }
89 88
         }
90
-        throw new CompatibleParserNotFoundException('Compatible parser for a part cannot be found with content-type: ' . $partBuilder->getHeaderContainer()->get('Content-Type'));
89
+        throw new CompatibleParserNotFoundException('Compatible parser for a part cannot be found with content-type: '.$partBuilder->getHeaderContainer()->get('Content-Type'));
91 90
     }
92 91
 }
Please login to merge, or discard this patch.
src/Message.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -341,11 +341,11 @@
 block discarded – undo
341 341
     {
342 342
         $params = '';
343 343
         if (!empty($this->getMessageId())) {
344
-            $params .= ', message-id=' . $this->getContentId();
344
+            $params .= ', message-id='.$this->getContentId();
345 345
         }
346
-        $params .= ', content-type=' . $this->getContentType();
346
+        $params .= ', content-type='.$this->getContentType();
347 347
         $nsClass = get_class($this);
348 348
         $class = substr($nsClass, (strrpos($nsClass, '\\') ?? -1) + 1);
349
-        return $class . '(' . spl_object_id($this) . $params . ')';
349
+        return $class.'('.spl_object_id($this).$params.')';
350 350
     }
351 351
 }
Please login to merge, or discard this patch.
src/Message/MessagePart.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -251,12 +251,12 @@
 block discarded – undo
251 251
     {
252 252
         $params = '';
253 253
         if (!empty($this->getContentId())) {
254
-            $params .= ', content-id=' . $this->getContentId();
254
+            $params .= ', content-id='.$this->getContentId();
255 255
         }
256
-        $params .= ', content-type=' . $this->getContentType();
256
+        $params .= ', content-type='.$this->getContentType();
257 257
         $nsClass = get_class($this);
258 258
         $class = substr($nsClass, (strrpos($nsClass, '\\') ?? -1) + 1);
259
-        return $class . '(' . spl_object_id($this) . $params . ')';
259
+        return $class.'('.spl_object_id($this).$params.')';
260 260
     }
261 261
 
262 262
     protected function getErrorBagChildren() : array
Please login to merge, or discard this patch.
src/Message/MimePart.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -308,6 +308,6 @@
 block discarded – undo
308 308
 
309 309
     public function getErrorBagChildren(): array
310 310
     {
311
-        return \array_merge([ $this->headerContainer ], parent::getErrorBagChildren());
311
+        return \array_merge([$this->headerContainer], parent::getErrorBagChildren());
312 312
     }
313 313
 }
Please login to merge, or discard this patch.
src/Error.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@
 block discarded – undo
58 58
     public function __construct(string $message, string $psrLogLevelAsErrorLevel, ErrorBag $object, ?Exception $exception = null)
59 59
     {
60 60
         if (!isset($this->levelMap[$psrLogLevelAsErrorLevel])) {
61
-            throw new InvalidArgumentException($psrLogLevelAsErrorLevel . ' is not a known PSR Log Level');
61
+            throw new InvalidArgumentException($psrLogLevelAsErrorLevel.' is not a known PSR Log Level');
62 62
         }
63 63
         $this->message = $message;
64 64
         $this->psrLevel = $psrLogLevelAsErrorLevel;
Please login to merge, or discard this patch.
src/Header/HeaderFactory.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
         $class = $this->getClassFor($name);
155 155
         $this->getLogger()->debug(
156 156
             'Creating ${class} for header with name "${name}" and value "${value}"',
157
-            [ 'class' => $class, 'name' => $name, 'value' => $value ]
157
+            ['class' => $class, 'name' => $name, 'value' => $value]
158 158
         );
159 159
         return $this->newInstanceOf($name, $value, $class);
160 160
     }
Please login to merge, or discard this patch.
src/Header/AbstractHeader.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
     protected function parseHeaderValue(AbstractConsumerService $consumer, string $value) : self
86 86
     {
87 87
         $this->allParts = $consumer($value);
88
-        $this->parts = \array_values(\array_filter($this->allParts, function ($p) {
88
+        $this->parts = \array_values(\array_filter($this->allParts, function($p) {
89 89
             return !($p instanceof CommentPart);
90 90
         }));
91 91
         return $this;
@@ -114,10 +114,10 @@  discard block
 block discarded – undo
114 114
     {
115 115
         if ($this->comments === null) {
116 116
             $this->comments = \array_values(\array_map(
117
-                function ($p) { return $p->getComment(); },
117
+                function($p) { return $p->getComment(); },
118 118
                 \array_filter(
119 119
                     $this->allParts,
120
-                    function ($p) { return ($p instanceof CommentPart); }
120
+                    function($p) { return ($p instanceof CommentPart); }
121 121
                 )
122 122
             ));
123 123
         }
@@ -149,7 +149,7 @@  discard block
 block discarded – undo
149 149
 
150 150
     public function getErrorLoggingContextName(): string
151 151
     {
152
-        return 'Header::' . $this->getName();
152
+        return 'Header::'.$this->getName();
153 153
     }
154 154
 
155 155
     protected function getErrorBagChildren() : array
Please login to merge, or discard this patch.
src/Header/Consumer/DateConsumerService.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
         foreach ($parts as $part) {
46 46
             $strValue .= $part->getValue();
47 47
         }
48
-        $comments = \array_values(\array_filter($parts, function ($part) {
48
+        $comments = \array_values(\array_filter($parts, function($part) {
49 49
             return ($part instanceof CommentPart);
50 50
         }));
51 51
         return \array_merge([$this->partFactory->newDatePart($strValue)], $comments);
Please login to merge, or discard this patch.
src/Header/Consumer/Received/GenericReceivedConsumerService.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
      */
75 75
     protected function isStartToken(string $token) : bool
76 76
     {
77
-        $pattern = '/^' . \preg_quote($this->partName, '/') . '$/i';
77
+        $pattern = '/^'.\preg_quote($this->partName, '/').'$/i';
78 78
         return (\preg_match($pattern, $token) === 1);
79 79
     }
80 80
 
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
     {
106 106
         return [
107 107
             '\s+',
108
-            '(\A\s*|\s+)(?i)' . \preg_quote($this->partName, '/') . '(?-i)(?=\s+)'
108
+            '(\A\s*|\s+)(?i)'.\preg_quote($this->partName, '/').'(?-i)(?=\s+)'
109 109
         ];
110 110
     }
111 111
 
@@ -125,7 +125,7 @@  discard block
 block discarded – undo
125 125
         foreach ($filtered as $part) {
126 126
             if ($part instanceof CommentPart) {
127 127
                 $ret[] = $part;
128
-                continue;    // getValue() is empty anyway, but for clarity...
128
+                continue; // getValue() is empty anyway, but for clarity...
129 129
             }
130 130
             $strValue .= $part->getValue();
131 131
         }
Please login to merge, or discard this patch.