@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | |
50 | 50 | $pbChildren = $partBuilder->getChildren(); |
51 | 51 | if (!empty($pbChildren)) { |
52 | - $this->children = array_map(function ($child) use ($stream) { |
|
52 | + $this->children = array_map(function($child) use ($stream) { |
|
53 | 53 | $childPart = $child->createMessagePart($stream); |
54 | 54 | $childPart->parent = $this; |
55 | 55 | return $childPart; |
@@ -65,7 +65,7 @@ discard block |
||
65 | 65 | */ |
66 | 66 | protected function getAllNonFilteredParts() |
67 | 67 | { |
68 | - $parts = [ $this ]; |
|
68 | + $parts = [$this]; |
|
69 | 69 | foreach ($this->children as $part) { |
70 | 70 | if ($part instanceof MimePart) { |
71 | 71 | $parts = array_merge( |
@@ -116,7 +116,7 @@ discard block |
||
116 | 116 | if (!empty($filter)) { |
117 | 117 | return array_values(array_filter( |
118 | 118 | $parts, |
119 | - [ $filter, 'filter' ] |
|
119 | + [$filter, 'filter'] |
|
120 | 120 | )); |
121 | 121 | } |
122 | 122 | return $parts; |
@@ -164,7 +164,7 @@ discard block |
||
164 | 164 | public function getChildParts(PartFilter $filter = null) |
165 | 165 | { |
166 | 166 | if ($filter !== null) { |
167 | - return array_values(array_filter($this->children, [ $filter, 'filter' ])); |
|
167 | + return array_values(array_filter($this->children, [$filter, 'filter'])); |
|
168 | 168 | } |
169 | 169 | return $this->children; |
170 | 170 | } |
@@ -234,7 +234,7 @@ discard block |
||
234 | 234 | $this->children, |
235 | 235 | ($position === null) ? count($this->children) : $position, |
236 | 236 | 0, |
237 | - [ $part ] |
|
237 | + [$part] |
|
238 | 238 | ); |
239 | 239 | $this->onChange(); |
240 | 240 | } |
@@ -133,7 +133,7 @@ |
||
133 | 133 | $content = Psr7\stream_for('php://temp'); |
134 | 134 | $this->writePartContentTo($this->part, $content); |
135 | 135 | $content->rewind(); |
136 | - $streams = [ new HeaderStream($this->part), $content ]; |
|
136 | + $streams = [new HeaderStream($this->part), $content]; |
|
137 | 137 | |
138 | 138 | if ($this->part instanceof ParentHeaderPart) { |
139 | 139 | $streams = array_merge($streams, $this->getBoundaryAndChildStreams($this->part)); |
@@ -146,7 +146,7 @@ discard block |
||
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 |
||
194 | 194 | { |
195 | 195 | return $this->getInstance( |
196 | 196 | 'streamFactory', |
197 | - __NAMESPACE__ . '\Stream\StreamFactory' |
|
197 | + __NAMESPACE__.'\Stream\StreamFactory' |
|
198 | 198 | ); |
199 | 199 | } |
200 | 200 | |
@@ -207,7 +207,7 @@ discard block |
||
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 |