Passed
Push — v0.2 ( e01ff2...ca53bb )
by Freddie
02:09
created
src/Shared/HttpMiddleware/HandleBadRequests.php 1 patch
Braces   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -32,12 +32,14 @@
 block discarded – undo
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
         }
Please login to merge, or discard this patch.
src/Shared/config/services.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@
 block discarded – undo
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
         );
Please login to merge, or discard this patch.
src/Shared/Controller/AppController.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -48,7 +48,8 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
phpunit_bootstrap.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,9 +1,9 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-require __DIR__.'/vendor/autoload.php';
3
+require __DIR__ . '/vendor/autoload.php';
4 4
 
5 5
 // Parameters set in .ev.testing will not be overloaded
6
-if (is_readable(__DIR__  . '/.env.testing')) {
6
+if (is_readable(__DIR__ . '/.env.testing')) {
7 7
     $dotenv = new \Dotenv\Dotenv(__DIR__, '.env.testing');
8 8
     $dotenv->load();
9 9
 }
Please login to merge, or discard this patch.
src/Shared/config/commands.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -85,7 +85,7 @@
 block discarded – undo
85 85
         DI\get(\Doctrine\ORM\Tools\Console\Command\MappingDescribeCommand::class),
86 86
     ]),
87 87
 
88
-    ContainerKeys::CONSOLE_HELPER_SET => function (ContainerInterface $c) {
88
+    ContainerKeys::CONSOLE_HELPER_SET => function(ContainerInterface $c) {
89 89
         return ConsoleRunner::createHelperSet($c->get(EntityManager::class));
90 90
     },
91 91
 
Please login to merge, or discard this patch.
src/Shared/Doctrine/Type/DateTimeMicroType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
 
23 23
     public function getSQLDeclaration(array $fieldDeclaration, AbstractPlatform $platform): string
24 24
     {
25
-        return "DATETIME(6) COMMENT '(DC2Type:" . self::NAME  . ")'";
25
+        return "DATETIME(6) COMMENT '(DC2Type:" . self::NAME . ")'";
26 26
     }
27 27
 
28 28
     /** @param \DateTime|null $value */
Please login to merge, or discard this patch.