Test Failed
Push — master ( e258e4...a626ba )
by Zaahid
15:25
created
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, ?Throwable $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/Message/MessagePart.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -237,12 +237,12 @@
 block discarded – undo
237 237
     {
238 238
         $params = '';
239 239
         if (!empty($this->getContentId())) {
240
-            $params .= ', content-id=' . $this->getContentId();
240
+            $params .= ', content-id='.$this->getContentId();
241 241
         }
242
-        $params .= ', content-type=' . $this->getContentType();
242
+        $params .= ', content-type='.$this->getContentType();
243 243
         $nsClass = static::class;
244 244
         $class = \substr($nsClass, (\strrpos($nsClass, '\\') ?? -1) + 1);
245
-        return $class . '(' . \spl_object_id($this) . $params . ')';
245
+        return $class.'('.\spl_object_id($this).$params.')';
246 246
     }
247 247
 
248 248
     protected function getErrorBagChildren() : array
Please login to merge, or discard this patch.
src/Header/AbstractHeader.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -152,7 +152,7 @@
 block discarded – undo
152 152
 
153 153
     public function getErrorLoggingContextName() : string
154 154
     {
155
-        return 'Header::' . $this->getName();
155
+        return 'Header::'.$this->getName();
156 156
     }
157 157
 
158 158
     protected function getErrorBagChildren() : array
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
@@ -328,11 +328,11 @@
 block discarded – undo
328 328
     {
329 329
         $params = '';
330 330
         if (!empty($this->getMessageId())) {
331
-            $params .= ', message-id=' . $this->getContentId();
331
+            $params .= ', message-id='.$this->getContentId();
332 332
         }
333
-        $params .= ', content-type=' . $this->getContentType();
333
+        $params .= ', content-type='.$this->getContentType();
334 334
         $nsClass = static::class;
335 335
         $class = \substr($nsClass, (\strrpos($nsClass, '\\') ?? -1) + 1);
336
-        return $class . '(' . \spl_object_id($this) . $params . ')';
336
+        return $class.'('.\spl_object_id($this).$params.')';
337 337
     }
338 338
 }
Please login to merge, or discard this patch.
src/MailMimeParser.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
     /**
60 60
      * @var string the default definition file.
61 61
      */
62
-    private const DEFAULT_DEFINITIONS_FILE = __DIR__ . '/di_config.php';
62
+    private const DEFAULT_DEFINITIONS_FILE = __DIR__.'/di_config.php';
63 63
 
64 64
     /**
65 65
      * @var Container The instance's dependency injection container.
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
      * @var array<array|string|DefinitionSource> an array of global definitions
81 81
      *      being used.
82 82
      */
83
-    private static array $globalDefinitions = [ self::DEFAULT_DEFINITIONS_FILE ];
83
+    private static array $globalDefinitions = [self::DEFAULT_DEFINITIONS_FILE];
84 84
 
85 85
     /**
86 86
      * Returns the default ContainerBuilder with default loaded definitions.
@@ -105,14 +105,14 @@  discard block
 block discarded – undo
105 105
     public static function setGlobalPhpDiConfigurations(array $phpDiConfigs, bool $useDefaultDefinitionsFile = true) : void
106 106
     {
107 107
         self::$globalDefinitions = array_merge(
108
-            ($useDefaultDefinitionsFile) ? [ self::DEFAULT_DEFINITIONS_FILE ] : [],
108
+            ($useDefaultDefinitionsFile) ? [self::DEFAULT_DEFINITIONS_FILE] : [],
109 109
             $phpDiConfigs
110 110
         );
111 111
         self::$globalContainer = null;
112 112
     }
113 113
 
114 114
 
115
-    public static function addGlobalPhpDiContainerDefinition(array|string|DefinitionSource $phpDiConfig) : void
115
+    public static function addGlobalPhpDiContainerDefinition(array | string | DefinitionSource $phpDiConfig) : void
116 116
     {
117 117
         self::$globalDefinitions[] = $phpDiConfig;
118 118
         self::$globalContainer = null;
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
 
121 121
     public static function resetGlobalPhpDiContainerDefinitions() : void
122 122
     {
123
-        self::$globalDefinitions = [ self::DEFAULT_DEFINITIONS_FILE ];
123
+        self::$globalDefinitions = [self::DEFAULT_DEFINITIONS_FILE];
124 124
         self::$globalContainer = null;
125 125
     }
126 126
 
@@ -142,7 +142,7 @@  discard block
 block discarded – undo
142 142
      */
143 143
     public static function setGlobalLogger(LoggerInterface $logger) : void
144 144
     {
145
-        self::$globalDefinitions[] = [ LoggerInterface::class => $logger ];
145
+        self::$globalDefinitions[] = [LoggerInterface::class => $logger];
146 146
         self::$globalContainer = null;
147 147
     }
148 148
 
@@ -167,7 +167,7 @@  discard block
 block discarded – undo
167 167
      */
168 168
     public function __construct(
169 169
         ?LoggerInterface $logger = null,
170
-        array|string|DefinitionSource|null $phpDiContainerConfig = null,
170
+        array | string | DefinitionSource | null $phpDiContainerConfig = null,
171 171
         bool $useGlobalDefinitions = true
172 172
     ) {
173 173
         if ($phpDiContainerConfig !== null || $logger !== null) {
Please login to merge, or discard this patch.
src/Stream/MessagePartStream.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
             // ContentStream could be rewound, etc...
155 155
             $contentStream = $this->streamFactory->newDecoratedCachingStream(
156 156
                 $this->streamFactory->newSeekingStream($contentStream),
157
-                function ($stream) {
157
+                function($stream) {
158 158
                     $es = $this->streamFactory->getTransferEncodingDecoratedStream(
159 159
                         $stream,
160 160
                         $this->part->getContentTransferEncoding(),
Please login to merge, or discard this patch.
src/Stream/MessagePartStreamDecorator.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -53,8 +53,8 @@
 block discarded – undo
53 53
         } catch (RuntimeException $e) {
54 54
             throw new MessagePartStreamReadException(
55 55
                 $this->part,
56
-                'Exception occurred reading a part stream: cid=' . $this->part->getContentId()
57
-                . ' type=' . $this->part->getContentType() . ', message: ' . $e->getMessage(),
56
+                'Exception occurred reading a part stream: cid='.$this->part->getContentId()
57
+                . ' type='.$this->part->getContentType().', message: '.$e->getMessage(),
58 58
                 $e->getCode(),
59 59
                 $e
60 60
             );
Please login to merge, or discard this patch.
src/Header/Consumer/QuotedStringMimeLiteralPartConsumerService.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
      */
26 26
     protected function getPartForToken(string $token, bool $isLiteral) : ?IHeaderPart
27 27
     {
28
-        if (!$isLiteral && \preg_match('/' . MimeToken::MIME_PART_PATTERN . '/', $token)) {
28
+        if (!$isLiteral && \preg_match('/'.MimeToken::MIME_PART_PATTERN.'/', $token)) {
29 29
             return $this->partFactory->newMimeToken($token);
30 30
         }
31 31
         return $this->partFactory->newToken($token, $isLiteral);
Please login to merge, or discard this patch.
src/Header/Consumer/Received/GenericReceivedConsumerService.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
      */
68 68
     protected function isStartToken(string $token) : bool
69 69
     {
70
-        $pattern = '/^' . \preg_quote($this->partName, '/') . '$/i';
70
+        $pattern = '/^'.\preg_quote($this->partName, '/').'$/i';
71 71
         return (\preg_match($pattern, $token) === 1);
72 72
     }
73 73
 
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
     {
99 99
         return [
100 100
             '\s+',
101
-            '(\A\s*|\s+)(?i)' . \preg_quote($this->partName, '/') . '(?-i)(?=\s+)'
101
+            '(\A\s*|\s+)(?i)'.\preg_quote($this->partName, '/').'(?-i)(?=\s+)'
102 102
         ];
103 103
     }
104 104
 
Please login to merge, or discard this patch.