@@ -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 |
@@ -59,7 +59,7 @@ |
||
59 | 59 | CommandBus::class => DI\factory([CommandBusFactory::class, 'create']) |
60 | 60 | ->parameter('locator', DI\get(HandlerLocator::class)), |
61 | 61 | |
62 | - HandleBadRequests::class => function (ContainerInterface $c) { |
|
62 | + HandleBadRequests::class => function(ContainerInterface $c) { |
|
63 | 63 | return new HandleBadRequests( |
64 | 64 | $c->get(SerializerInterface::class) |
65 | 65 | ); |
@@ -1,4 +1,4 @@ discard block |
||
1 | -<?php declare(strict_types=1); |
|
1 | +<?php declare(strict_types = 1); |
|
2 | 2 | |
3 | 3 | use Doctrine\ORM\EntityManager; |
4 | 4 | use Doctrine\ORM\Tools\Console\ConsoleRunner; |
@@ -81,7 +81,7 @@ discard block |
||
81 | 81 | DI\get(\Doctrine\ORM\Tools\Console\Command\MappingDescribeCommand::class), |
82 | 82 | ]), |
83 | 83 | |
84 | - ContainerKeys::CONSOLE_HELPER_SET => function (ContainerInterface $c) { |
|
84 | + ContainerKeys::CONSOLE_HELPER_SET => function(ContainerInterface $c) { |
|
85 | 85 | return ConsoleRunner::createHelperSet($c->get(EntityManager::class)); |
86 | 86 | }, |
87 | 87 |
@@ -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\Controller; |
4 | 4 | |
@@ -47,7 +47,7 @@ discard block |
||
47 | 47 | private function deserializeRequest(Request $request, string $commandClass) |
48 | 48 | { |
49 | 49 | try { |
50 | - $command = $this->serializer->deserialize((string)$request->getBody(), $commandClass, parent::JSON_FORMAT); |
|
50 | + $command = $this->serializer->deserialize((string) $request->getBody(), $commandClass, parent::JSON_FORMAT); |
|
51 | 51 | } catch (SerializerException $exception) { |
52 | 52 | throw new BadRequestException("Invalid request body", Httpstatuscodes::HTTP_BAD_REQUEST, $exception); |
53 | 53 | } |
@@ -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 |
@@ -7,7 +7,7 @@ |
||
7 | 7 | use Zend\Diactoros\Response\SapiEmitter; |
8 | 8 | use Zend\Diactoros\Response; |
9 | 9 | |
10 | -$loader = require __DIR__.'/../vendor/autoload.php'; |
|
10 | +$loader = require __DIR__ . '/../vendor/autoload.php'; |
|
11 | 11 | |
12 | 12 | AnnotationRegistry::registerLoader([$loader, 'loadClass']); |
13 | 13 |