Passed
Push — 1.0.0 ( 4505d9...06b3ad )
by Zaahid
04:10
created
src/SimpleDi.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
     {
147 147
         return $this->getInstance(
148 148
             'partFilterFactory',
149
-            __NAMESPACE__ . '\Message\PartFilterFactory'
149
+            __NAMESPACE__.'\Message\PartFilterFactory'
150 150
         );
151 151
     }
152 152
     
@@ -194,7 +194,7 @@  discard block
 block discarded – undo
194 194
     {
195 195
         return $this->getInstance(
196 196
             'streamDecoratorFactory',
197
-            __NAMESPACE__ . '\Stream\StreamDecoratorFactory'
197
+            __NAMESPACE__.'\Stream\StreamDecoratorFactory'
198 198
         );
199 199
     }
200 200
     
@@ -207,7 +207,7 @@  discard block
 block discarded – undo
207 207
         }
208 208
         return $this->getInstance(
209 209
             'partStreamFilterManagerFactory',
210
-            __NAMESPACE__ . '\Message\Part\PartStreamFilterManagerFactory'
210
+            __NAMESPACE__.'\Message\Part\PartStreamFilterManagerFactory'
211 211
         );
212 212
     }
213 213
     
Please login to merge, or discard this patch.
src/Message/Part/MimePart.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
 
85 85
         $pbChildren = $partBuilder->getChildren();
86 86
         if (!empty($pbChildren)) {
87
-            $this->children = array_map(function ($child) use ($stream) {
87
+            $this->children = array_map(function($child) use ($stream) {
88 88
                 $childPart = $child->createMessagePart($stream);
89 89
                 $childPart->parent = $this;
90 90
                 return $childPart;
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
      */
103 103
     protected function getAllNonFilteredParts()
104 104
     {
105
-        $parts = [ $this ];
105
+        $parts = [$this];
106 106
         foreach ($this->children as $part) {
107 107
             if ($part instanceof MimePart) {
108 108
                 $parts = array_merge(
@@ -153,7 +153,7 @@  discard block
 block discarded – undo
153 153
         if (!empty($filter)) {
154 154
             return array_values(array_filter(
155 155
                 $parts,
156
-                [ $filter, 'filter' ]
156
+                [$filter, 'filter']
157 157
             ));
158 158
         }
159 159
         return $parts;
@@ -201,7 +201,7 @@  discard block
 block discarded – undo
201 201
     public function getChildParts(PartFilter $filter = null)
202 202
     {
203 203
         if ($filter !== null) {
204
-            return array_values(array_filter($this->children, [ $filter, 'filter' ]));
204
+            return array_values(array_filter($this->children, [$filter, 'filter']));
205 205
         }
206 206
         return $this->children;
207 207
     }
Please login to merge, or discard this patch.