@@ -27,7 +27,7 @@ discard block |
||
| 27 | 27 | $tokenType = TokenType::INSTALLATION_TOKEN(); |
| 28 | 28 | |
| 29 | 29 | @mkdir('/tmp/tokens'); |
| 30 | - file_put_contents('/tmp/tokens/' . $tokenType->toString(), 'tokenstring'); |
|
| 30 | + file_put_contents('/tmp/tokens/'.$tokenType->toString(), 'tokenstring'); |
|
| 31 | 31 | |
| 32 | 32 | $result = $this->storage->load($tokenType); |
| 33 | 33 | |
@@ -56,7 +56,7 @@ discard block |
||
| 56 | 56 | |
| 57 | 57 | $this->storage->save($token, $tokenType); |
| 58 | 58 | |
| 59 | - $result = @file_get_contents('/tmp/tokens/' . $tokenType->toString()); |
|
| 59 | + $result = @file_get_contents('/tmp/tokens/'.$tokenType->toString()); |
|
| 60 | 60 | |
| 61 | 61 | $this->assertSame($token->toString(), $result); |
| 62 | 62 | } |
@@ -13,10 +13,10 @@ |
||
| 13 | 13 | */ |
| 14 | 14 | public function itRepresentsADefaultCertificate() |
| 15 | 15 | { |
| 16 | - $certificate = DefaultCertificate::fromString('certificate'); |
|
| 16 | + $certificate = DefaultCertificate::fromString('certificate'); |
|
| 17 | 17 | |
| 18 | - $this->assertInstanceOf(DefaultCertificate::class, $certificate); |
|
| 19 | - $this->assertInstanceOf(Certificate::class, $certificate); |
|
| 20 | - $this->assertEquals('certificate', $certificate->toString()); |
|
| 18 | + $this->assertInstanceOf(DefaultCertificate::class, $certificate); |
|
| 19 | + $this->assertInstanceOf(Certificate::class, $certificate); |
|
| 20 | + $this->assertEquals('certificate', $certificate->toString()); |
|
| 21 | 21 | } |
| 22 | 22 | } |
@@ -28,7 +28,7 @@ discard block |
||
| 28 | 28 | $publicKey = CertificateType::PRIVATE_KEY(); |
| 29 | 29 | |
| 30 | 30 | @mkdir('/tmp/certificates'); |
| 31 | - file_put_contents('/tmp/certificates/' . $publicKey, $certificate->toString()); |
|
| 31 | + file_put_contents('/tmp/certificates/'.$publicKey, $certificate->toString()); |
|
| 32 | 32 | |
| 33 | 33 | $loadedCertificate = $this->storage->load($publicKey); |
| 34 | 34 | |
@@ -45,7 +45,7 @@ discard block |
||
| 45 | 45 | |
| 46 | 46 | $this->storage->save($certificate, $publicKey); |
| 47 | 47 | |
| 48 | - $result = @file_get_contents('/tmp/certificates/' . $publicKey); |
|
| 48 | + $result = @file_get_contents('/tmp/certificates/'.$publicKey); |
|
| 49 | 49 | |
| 50 | 50 | $this->assertSame($certificate->toString(), $result); |
| 51 | 51 | } |
@@ -22,7 +22,7 @@ |
||
| 22 | 22 | $uri->getPath()->willReturn('/path'); |
| 23 | 23 | |
| 24 | 24 | /** @var RequestInterface|ObjectProphecy $request */ |
| 25 | - $request = $this->prophesize(RequestInterface::class); |
|
| 25 | + $request = $this->prophesize(RequestInterface::class); |
|
| 26 | 26 | $request->getUri()->willReturn($uri); |
| 27 | 27 | |
| 28 | 28 | /** @var ResponseInterface|ObjectProphecy $response */ |
@@ -42,7 +42,7 @@ discard block |
||
| 42 | 42 | */ |
| 43 | 43 | public function itSignsARequest() |
| 44 | 44 | { |
| 45 | - $headers = [ |
|
| 45 | + $headers = [ |
|
| 46 | 46 | 'X-Bunq-Client-Request-Id' => '253e0f90-8842-4731-91dd-0191816e6a28', |
| 47 | 47 | 'X-Bunq-Client-Authentication' => 'session-token', |
| 48 | 48 | 'Cache-Control' => 'no-cache', |
@@ -55,7 +55,7 @@ discard block |
||
| 55 | 55 | |
| 56 | 56 | $result = $this->middleware->__invoke($request); |
| 57 | 57 | |
| 58 | - $expectedHeaders = [ |
|
| 58 | + $expectedHeaders = [ |
|
| 59 | 59 | 'X-Bunq-Client-Request-Id' => '253e0f90-8842-4731-91dd-0191816e6a28', |
| 60 | 60 | 'X-Bunq-Client-Authentication' => 'session-token', |
| 61 | 61 | 'Cache-Control' => 'no-cache', |
@@ -41,7 +41,7 @@ discard block |
||
| 41 | 41 | |
| 42 | 42 | $result = $this->middleware->__invoke($request); |
| 43 | 43 | |
| 44 | - $headers = [ |
|
| 44 | + $headers = [ |
|
| 45 | 45 | 'X-Bunq-Client-Request-Id' => '253e0f90-8842-4731-91dd-0191816e6a28', |
| 46 | 46 | 'Cache-Control' => 'no-cache', |
| 47 | 47 | 'X-Bunq-Geolocation' => '52.3 4.89 12 100 NL', |
@@ -64,7 +64,7 @@ discard block |
||
| 64 | 64 | |
| 65 | 65 | $result = $this->middleware->__invoke($request, ['request-id' => $givenRequestId]); |
| 66 | 66 | |
| 67 | - $headers = [ |
|
| 67 | + $headers = [ |
|
| 68 | 68 | 'X-Bunq-Client-Request-Id' => $givenRequestId, |
| 69 | 69 | 'Cache-Control' => 'no-cache', |
| 70 | 70 | 'X-Bunq-Geolocation' => '52.3 4.89 12 100 NL', |