@@ -1,11 +1,11 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | 3 | /** @var \Composer\Autoload\ClassLoader $loader */ |
4 | -$loader = require __DIR__.'/vendor/autoload.php'; |
|
4 | +$loader = require __DIR__ . '/vendor/autoload.php'; |
|
5 | 5 | \Doctrine\Common\Annotations\AnnotationRegistry::registerLoader([$loader, 'loadClass']); |
6 | 6 | |
7 | 7 | // Parameters set in .ev.testing will not be overloaded |
8 | -if (is_readable(__DIR__ . '/.env.testing')) { |
|
8 | +if (is_readable(__DIR__ . '/.env.testing')) { |
|
9 | 9 | $dotenv = new \Dotenv\Dotenv(__DIR__, '.env.testing'); |
10 | 10 | $dotenv->load(); |
11 | 11 | } |
@@ -1,4 +1,4 @@ |
||
1 | -<?php declare(strict_types=1); |
|
1 | +<?php declare(strict_types = 1); |
|
2 | 2 | |
3 | 3 | /** |
4 | 4 | * This file is part of the Simplex package. |
@@ -1,4 +1,4 @@ |
||
1 | -<?php declare(strict_types=1); |
|
1 | +<?php declare(strict_types = 1); |
|
2 | 2 | |
3 | 3 | namespace Simplex\Quickstart\Shared\Exception; |
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\Exception; |
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\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 @@ 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 |