Test Failed
Push — master ( f9543b...36f85c )
by Koldo
02:24
created
src/Middleware/ErrorMiddleware.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -23,14 +23,14 @@  discard block
 block discarded – undo
23 23
 
24 24
     public function __construct(bool $debug)
25 25
     {
26
-        $this->debug = false;//$debug;
26
+        $this->debug = false; //$debug;
27 27
     }
28 28
 
29 29
     public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface
30 30
     {
31 31
         $promise = new FulfilledPromise();
32 32
 
33
-        return new PromiseResponse($promise->then(function () use ($request, $handler) {
33
+        return new PromiseResponse($promise->then(function() use ($request, $handler) {
34 34
             $this->setErrorHandler();
35 35
             try {
36 36
                 if ($this->debug && class_exists(WhoopsMiddleware::class)) {
@@ -52,14 +52,14 @@  discard block
 block discarded – undo
52 52
 
53 53
     private function setErrorHandler(): void
54 54
     {
55
-        $handler = static function (
55
+        $handler = static function(
56 56
             int $errorNumber,
57 57
             string $errorString,
58 58
             string $errorFile,
59 59
             int $errorLine,
60 60
             ?array $errorContext
61 61
         ): bool {
62
-            if (! (error_reporting() & $errorNumber)) {
62
+            if (!(error_reporting() & $errorNumber)) {
63 63
                 return false;
64 64
             }
65 65
             throw new ErrorException($errorString, 0, $errorNumber, $errorFile, $errorLine);
Please login to merge, or discard this patch.