@@ -42,7 +42,7 @@ discard block |
||
42 | 42 | $this->partFilterFactory = $partFilterFactory; |
43 | 43 | $pbChildren = $partBuilder->getChildren(); |
44 | 44 | if (!empty($pbChildren)) { |
45 | - $this->children = array_map(function ($child) use ($stream) { |
|
45 | + $this->children = array_map(function($child) use ($stream) { |
|
46 | 46 | $childPart = $child->createMessagePart($stream); |
47 | 47 | $childPart->parent = $this; |
48 | 48 | return $childPart; |
@@ -58,7 +58,7 @@ discard block |
||
58 | 58 | */ |
59 | 59 | protected function getAllNonFilteredParts() |
60 | 60 | { |
61 | - $parts = [ $this ]; |
|
61 | + $parts = [$this]; |
|
62 | 62 | foreach ($this->children as $part) { |
63 | 63 | if ($part instanceof MimePart) { |
64 | 64 | $parts = array_merge( |
@@ -109,7 +109,7 @@ discard block |
||
109 | 109 | if (!empty($filter)) { |
110 | 110 | return array_values(array_filter( |
111 | 111 | $parts, |
112 | - [ $filter, 'filter' ] |
|
112 | + [$filter, 'filter'] |
|
113 | 113 | )); |
114 | 114 | } |
115 | 115 | return $parts; |
@@ -157,7 +157,7 @@ discard block |
||
157 | 157 | public function getChildParts(PartFilter $filter = null) |
158 | 158 | { |
159 | 159 | if ($filter !== null) { |
160 | - return array_values(array_filter($this->children, [ $filter, 'filter' ])); |
|
160 | + return array_values(array_filter($this->children, [$filter, 'filter'])); |
|
161 | 161 | } |
162 | 162 | return $this->children; |
163 | 163 | } |