@@ -125,11 +125,11 @@ |
||
125 | 125 | */ |
126 | 126 | protected function getMessageParts(\Swift_Mime_SimpleMessage $message) |
127 | 127 | { |
128 | - $attachments = \array_filter($message->getChildren(), function ($part) { |
|
128 | + $attachments = \array_filter($message->getChildren(), function($part) { |
|
129 | 129 | return $part instanceof \Swift_Attachment; |
130 | 130 | }); |
131 | 131 | |
132 | - $attachments = \array_map(function ($part) { |
|
132 | + $attachments = \array_map(function($part) { |
|
133 | 133 | return $part->getName(); |
134 | 134 | }, $attachments); |
135 | 135 |
@@ -138,7 +138,7 @@ |
||
138 | 138 | return true; |
139 | 139 | } |
140 | 140 | |
141 | - $headers = ['X-Cache' => \time(), 'X-Cache-ID' => $this->cacheKey]; |
|
141 | + $headers = ['X-Cache' => \time(), 'X-Cache-ID' => $this->cacheKey]; |
|
142 | 142 | |
143 | 143 | foreach ($response->getHeaders()->toArray() as $key => $value) { |
144 | 144 | if (\strpos($key, 'Access-Control-') === false) { |
@@ -106,8 +106,7 @@ |
||
106 | 106 | // Already registered in DI. |
107 | 107 | elseif ($this->has($name)) { |
108 | 108 | $resolved[] = $this->get($name); |
109 | - } |
|
110 | - else { |
|
109 | + } else { |
|
111 | 110 | $resolved[] = $this->resolveDependency($dependency); |
112 | 111 | } |
113 | 112 | } |