Test Failed
Branch v0.2 (3f77aa)
by Freddie
07:42 queued 01:11
created
phpunit_bootstrap.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,11 +1,11 @@
 block discarded – undo
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
 }
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/Exception/BadRequestException.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.
src/Shared/Testing/ReflectionPropertyCapabilities.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/Testing/FunctionalTest.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/Testing/HttpRequestCapabilities.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
 
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Shared/Testing/PhpWebServer.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.