@@ -1,4 +1,4 @@ |
||
1 | -<?php declare(strict_types=1); |
|
1 | +<?php declare(strict_types = 1); |
|
2 | 2 | |
3 | 3 | namespace Simplex\Quickstart\Module\Demo\Controller; |
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\Console; |
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\CommandBus; |
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 | |
@@ -41,8 +41,8 @@ discard block |
||
41 | 41 | |
42 | 42 | private function printDescription(Test $test, $time) |
43 | 43 | { |
44 | - $raw =\PHPUnit\Util\Test::describe($test); |
|
45 | - $parts = explode('::', $raw); |
|
44 | + $raw = \PHPUnit\Util\Test::describe($test); |
|
45 | + $parts = explode('::', $raw); |
|
46 | 46 | |
47 | 47 | $this->writeWithColor( |
48 | 48 | 'fg-cyan, bold', |
@@ -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\Factory; |
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\Controller; |
4 | 4 |
@@ -48,7 +48,8 @@ |
||
48 | 48 | { |
49 | 49 | try { |
50 | 50 | $command = $this->serializer->deserialize((string) $request->getBody(), $commandClass, parent::JSON_FORMAT); |
51 | - } catch (SerializerException $exception) { |
|
51 | + } |
|
52 | + catch (SerializerException $exception) { |
|
52 | 53 | throw new BadRequestException("Invalid request body", Httpstatuscodes::HTTP_BAD_REQUEST, $exception); |
53 | 54 | } |
54 | 55 |
@@ -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. |