@@ -136,7 +136,7 @@ |
||
| 136 | 136 | private function updateNotificationFilters(MonetaryAccountBank $monetaryAccountBank, $notificationFilters) |
| 137 | 137 | { |
| 138 | 138 | $this->updateMonetaryAccount($monetaryAccountBank, [ |
| 139 | - 'notification_filters' => array_map(function (NotificationFilter $notificationFilter) { |
|
| 139 | + 'notification_filters' => array_map(function(NotificationFilter $notificationFilter) { |
|
| 140 | 140 | return $notificationFilter->toArray(); |
| 141 | 141 | }, $notificationFilters), |
| 142 | 142 | ]); |
@@ -109,7 +109,7 @@ discard block |
||
| 109 | 109 | $this->created = new \DateTimeImmutable($user['created'], $timezone); |
| 110 | 110 | $this->updated = new \DateTimeImmutable($user['updated'], $timezone); |
| 111 | 111 | |
| 112 | - $this->alias = array_map(function ($alias) { |
|
| 112 | + $this->alias = array_map(function($alias) { |
|
| 113 | 113 | return Alias::fromArray($alias); |
| 114 | 114 | }, $user['alias']); |
| 115 | 115 | |
@@ -123,7 +123,7 @@ discard block |
||
| 123 | 123 | $this->mainAddress = Address::fromArray($user['address_main']); |
| 124 | 124 | $this->postalAddress = Address::fromArray($user['address_postal']); |
| 125 | 125 | |
| 126 | - $this->notificationFilters = array_map(function ($notificationFilter) { |
|
| 126 | + $this->notificationFilters = array_map(function($notificationFilter) { |
|
| 127 | 127 | return NotificationFilter::fromArray($notificationFilter); |
| 128 | 128 | }, $user['notification_filters']); |
| 129 | 129 | } |
@@ -23,7 +23,7 @@ discard block |
||
| 23 | 23 | */ |
| 24 | 24 | public static function request() |
| 25 | 25 | { |
| 26 | - return function (RequestInterface $request) { |
|
| 26 | + return function(RequestInterface $request) { |
|
| 27 | 27 | echo chr(27) . '[33m' . "REQUEST: " . $request->getMethod() . ' ' . $request->getRequestTarget() . chr(27) . "[0m\n"; |
| 28 | 28 | |
| 29 | 29 | foreach ($request->getHeaders() as $key => $headers) { |
@@ -47,8 +47,8 @@ discard block |
||
| 47 | 47 | */ |
| 48 | 48 | public static function response() |
| 49 | 49 | { |
| 50 | - return function (RequestInterface $request, $options, FulfilledPromise $responsePromise) { |
|
| 51 | - $responsePromise->then(function (ResponseInterface $response) { |
|
| 50 | + return function(RequestInterface $request, $options, FulfilledPromise $responsePromise) { |
|
| 51 | + $responsePromise->then(function(ResponseInterface $response) { |
|
| 52 | 52 | echo chr(27) . '[33m' . "RESPONSE: HTTP/" . $response->getProtocolVersion() . ' ' . $response->getStatusCode() . ' ' . $response->getReasonPhrase() . chr(27) . "[0m\n"; |
| 53 | 53 | |
| 54 | 54 | foreach ($response->getHeaders() as $key => $headers) { |
@@ -68,7 +68,7 @@ |
||
| 68 | 68 | } |
| 69 | 69 | |
| 70 | 70 | /** |
| 71 | - * @return callable |
|
| 71 | + * @return \Closure |
|
| 72 | 72 | */ |
| 73 | 73 | public static function tap(): callable |
| 74 | 74 | { |