@@ -1,4 +1,4 @@ |
||
1 | -<?php declare(strict_types=1); |
|
1 | +<?php declare(strict_types = 1); |
|
2 | 2 | |
3 | 3 | namespace Simplex\Quickstart\Shared\HttpMiddleware; |
4 | 4 |
@@ -32,12 +32,14 @@ |
||
32 | 32 | |
33 | 33 | $response = $next($request, $response); |
34 | 34 | |
35 | - } catch (BadRequestException $exception) { |
|
35 | + } |
|
36 | + catch (BadRequestException $exception) { |
|
36 | 37 | |
37 | 38 | $response = $response->withStatus(Httpstatuscodes::HTTP_BAD_REQUEST); |
38 | 39 | $this->writeViolationsToResponse($exception, $response); |
39 | 40 | |
40 | - } catch (ResourceNotFoundException $exception) { |
|
41 | + } |
|
42 | + catch (ResourceNotFoundException $exception) { |
|
41 | 43 | |
42 | 44 | $response = $response->withStatus(Httpstatuscodes::HTTP_NOT_FOUND); |
43 | 45 | } |
@@ -1,4 +1,4 @@ |
||
1 | -<?php declare(strict_types=1); |
|
1 | +<?php declare(strict_types = 1); |
|
2 | 2 | |
3 | 3 | namespace Simplex\Quickstart\Shared\Testing; |
4 | 4 |
@@ -1,4 +1,4 @@ |
||
1 | -<?php declare(strict_types=1); |
|
1 | +<?php declare(strict_types = 1); |
|
2 | 2 | |
3 | 3 | namespace Simplex\Quickstart\Shared\Testing; |
4 | 4 |
@@ -1,4 +1,4 @@ |
||
1 | -<?php declare(strict_types=1); |
|
1 | +<?php declare(strict_types = 1); |
|
2 | 2 | |
3 | 3 | namespace Simplex\Quickstart\Shared\Testing; |
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 Simplex\Quickstart\Shared\Testing; |
4 | 4 | |
@@ -50,7 +50,7 @@ discard block |
||
50 | 50 | return $application->handleRequest($request, new Response()); |
51 | 51 | } |
52 | 52 | |
53 | - public function sendPost(string $uri, array $body, array $headers = []): ResponseInterface |
|
53 | + public function sendPost(string $uri, array $body, array $headers = []): ResponseInterface |
|
54 | 54 | { |
55 | 55 | $stream = $this->streamFor($body); |
56 | 56 | |
@@ -78,7 +78,7 @@ discard block |
||
78 | 78 | return new Stream($stream); |
79 | 79 | } |
80 | 80 | |
81 | - public function sendPut(string $uri, array $body, array $headers = []): ResponseInterface |
|
81 | + public function sendPut(string $uri, array $body, array $headers = []): ResponseInterface |
|
82 | 82 | { |
83 | 83 | $stream = $this->streamFor($body); |
84 | 84 |
@@ -1,4 +1,4 @@ |
||
1 | -<?php declare(strict_types=1); |
|
1 | +<?php declare(strict_types = 1); |
|
2 | 2 | |
3 | 3 | namespace Simplex\Quickstart\Shared\Testing; |
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 Simplex\Quickstart\Functional\Test; |
4 | 4 | |
@@ -28,7 +28,7 @@ discard block |
||
28 | 28 | |
29 | 29 | $this->runProcessWithRetry($process); |
30 | 30 | |
31 | - self::assertContains('"name":"'. PersonLoader::PERSON_1_NAME . '"', $process->getOutput()); |
|
31 | + self::assertContains('"name":"' . PersonLoader::PERSON_1_NAME . '"', $process->getOutput()); |
|
32 | 32 | } |
33 | 33 | |
34 | 34 | private function runProcessWithRetry(Process $process): void |
@@ -1,4 +1,4 @@ |
||
1 | -<?php declare(strict_types=1); |
|
1 | +<?php declare(strict_types = 1); |
|
2 | 2 | |
3 | 3 | namespace Simplex\Quickstart\Functional\Test; |
4 | 4 |
@@ -1,4 +1,4 @@ |
||
1 | -<?php declare(strict_types=1); |
|
1 | +<?php declare(strict_types = 1); |
|
2 | 2 | |
3 | 3 | namespace Simplex\Quickstart\Shared; |
4 | 4 |