Test Setup Failed
Push — v0.2 ( 4fcc02...4d3792 )
by Freddie
02:59
created
src/Module/Demo/Controller/DemoController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php declare(strict_types=1);
1
+<?php declare(strict_types = 1);
2 2
 
3 3
 namespace Simplex\Quickstart\Module\Demo\Controller;
4 4
 
Please login to merge, or discard this patch.
src/Shared/Console/LoadFixturesCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php declare(strict_types=1);
1
+<?php declare(strict_types = 1);
2 2
 
3 3
 namespace Simplex\Quickstart\Shared\Console;
4 4
 
Please login to merge, or discard this patch.
src/Shared/CommandBus/HandlerLocator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php declare(strict_types=1);
1
+<?php declare(strict_types = 1);
2 2
 
3 3
 namespace Simplex\Quickstart\Shared\CommandBus;
4 4
 
Please login to merge, or discard this patch.
src/Shared/Testing/TestResultPrinter.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@  discard block
 block discarded – undo
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
 block discarded – undo
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',
Please login to merge, or discard this patch.
src/Shared/Testing/UnitTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php declare(strict_types=1);
1
+<?php declare(strict_types = 1);
2 2
 
3 3
 namespace Simplex\Quickstart\Shared\Testing;
4 4
 
Please login to merge, or discard this patch.
src/Shared/Controller/AppController.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php declare(strict_types=1);
1
+<?php declare(strict_types = 1);
2 2
 
3 3
 namespace Simplex\Quickstart\Shared\Controller;
4 4
 
Please login to merge, or discard this 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.
src/Module/Demo/DemoModule.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
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.
Please login to merge, or discard this patch.
src/Shared/Exception/ResourceNotFoundException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php declare(strict_types=1);
1
+<?php declare(strict_types = 1);
2 2
 
3 3
 namespace Simplex\Quickstart\Shared\Exception;
4 4
 
Please login to merge, or discard this patch.
src/Shared/HttpMiddleware/HandleBadRequests.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php declare(strict_types=1);
1
+<?php declare(strict_types = 1);
2 2
 
3 3
 namespace Simplex\Quickstart\Shared\HttpMiddleware;
4 4
 
Please login to merge, or discard this 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.