@@ -1,4 +1,4 @@ |
||
| 1 | -<?php declare(strict_types=1); |
|
| 1 | +<?php declare(strict_types = 1); |
|
| 2 | 2 | |
| 3 | 3 | namespace Link0\Bunq\Domain\Keypair; |
| 4 | 4 | |
@@ -1,4 +1,4 @@ |
||
| 1 | -<?php declare(strict_types=1); |
|
| 1 | +<?php declare(strict_types = 1); |
|
| 2 | 2 | |
| 3 | 3 | namespace Link0\Bunq\Environment; |
| 4 | 4 | |
@@ -1,4 +1,4 @@ |
||
| 1 | -<?php declare(strict_types=1); |
|
| 1 | +<?php declare(strict_types = 1); |
|
| 2 | 2 | |
| 3 | 3 | namespace Link0\Bunq\Environment; |
| 4 | 4 | |
@@ -1,4 +1,4 @@ |
||
| 1 | -<?php declare(strict_types=1); |
|
| 1 | +<?php declare(strict_types = 1); |
|
| 2 | 2 | |
| 3 | 3 | namespace Link0\Bunq\Middleware; |
| 4 | 4 | |
@@ -1,4 +1,4 @@ discard block |
||
| 1 | -<?php declare(strict_types=1); |
|
| 1 | +<?php declare(strict_types = 1); |
|
| 2 | 2 | |
| 3 | 3 | namespace Link0\Bunq\Middleware; |
| 4 | 4 | |
@@ -23,8 +23,8 @@ discard block |
||
| 23 | 23 | */ |
| 24 | 24 | public static function request() |
| 25 | 25 | { |
| 26 | - return function (RequestInterface $request) { |
|
| 27 | - echo chr(27) . '[33m' . "REQUEST: " . $request->getMethod() . ' ' . $request->getRequestTarget() . chr(27) . "[0m\n"; |
|
| 26 | + return function(RequestInterface $request) { |
|
| 27 | + echo chr(27) . '[33m' . "REQUEST: " . $request->getMethod() . ' ' . $request->getRequestTarget() . chr(27) . "[0m\n"; |
|
| 28 | 28 | |
| 29 | 29 | foreach ($request->getHeaders() as $key => $headers) { |
| 30 | 30 | foreach ($headers as $header) { |
@@ -47,9 +47,9 @@ 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) { |
|
| 52 | - echo chr(27) . '[33m' . "RESPONSE: HTTP/" . $response->getProtocolVersion() . ' ' . $response->getStatusCode() . ' ' . $response->getReasonPhrase() . chr(27) . "[0m\n"; |
|
| 50 | + return function(RequestInterface $request, $options, FulfilledPromise $responsePromise) { |
|
| 51 | + $responsePromise->then(function(ResponseInterface $response) { |
|
| 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) { |
| 55 | 55 | foreach ($headers as $header) { |
@@ -1,4 +1,4 @@ |
||
| 1 | -<?php declare(strict_types=1); |
|
| 1 | +<?php declare(strict_types = 1); |
|
| 2 | 2 | |
| 3 | 3 | namespace Link0\Bunq\Middleware; |
| 4 | 4 | |
@@ -1,4 +1,4 @@ |
||
| 1 | -<?php declare(strict_types=1); |
|
| 1 | +<?php declare(strict_types = 1); |
|
| 2 | 2 | |
| 3 | 3 | namespace Link0\Bunq\Middleware; |
| 4 | 4 | |