Completed
Branch master (91a5ce)
by Dennis
02:31
created
src/Middleware/DebugMiddleware.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@
 block discarded – undo
68 68
     }
69 69
 
70 70
     /**
71
-     * @return callable
71
+     * @return \Closure
72 72
      */
73 73
     public static function tap()
74 74
     {
Please login to merge, or discard this patch.
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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) {
Please login to merge, or discard this patch.
src/Service/InstallationService.php 2 patches
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -43,7 +43,6 @@
 block discarded – undo
43 43
     }
44 44
 
45 45
     /**
46
-     * @param Installation $installation
47 46
      * @return Id $deviceServerId
48 47
      */
49 48
     public function createDeviceServer(Token $token, string $apiKey, string $description): Id
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php declare(strict_types=1);
1
+<?php declare(strict_types = 1);
2 2
 
3 3
 namespace Link0\Bunq\Service;
4 4
 
Please login to merge, or discard this patch.
src/Service/UserService.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php declare(strict_types=1);
1
+<?php declare(strict_types = 1);
2 2
 
3 3
 namespace Link0\Bunq\Service;
4 4
 
Please login to merge, or discard this patch.
src/Service/PaymentService.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php declare(strict_types=1);
1
+<?php declare(strict_types = 1);
2 2
 
3 3
 namespace Link0\Bunq\Service;
4 4
 
Please login to merge, or discard this patch.
src/Service/CertificatePinnedService.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php declare(strict_types=1);
1
+<?php declare(strict_types = 1);
2 2
 
3 3
 namespace Link0\Bunq\Service;
4 4
 
Please login to merge, or discard this patch.
src/Service/MonetaryAccountService.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@  discard block
 block discarded – undo
1
-<?php declare(strict_types=1);
1
+<?php declare(strict_types = 1);
2 2
 
3 3
 namespace Link0\Bunq\Service;
4 4
 
@@ -136,7 +136,7 @@  discard block
 block discarded – undo
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
         ]);
Please login to merge, or discard this patch.
src/Domain/Payment.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php declare(strict_types=1);
1
+<?php declare(strict_types = 1);
2 2
 
3 3
 namespace Link0\Bunq\Domain;
4 4
 
Please login to merge, or discard this patch.
src/Domain/Certificate.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php declare(strict_types=1);
1
+<?php declare(strict_types = 1);
2 2
 
3 3
 namespace Link0\Bunq\Domain;
4 4
 
Please login to merge, or discard this patch.
src/Domain/UserCompany.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php declare(strict_types=1);
1
+<?php declare(strict_types = 1);
2 2
 
3 3
 namespace Link0\Bunq\Domain;
4 4
 
Please login to merge, or discard this patch.