Passed
Push — master ( c3ebe1...248bb1 )
by Daniel
02:37
created
example/index.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@
 block discarded – undo
55 55
 
56 56
     public function lookup(string $methodName): ?ApiMethodInterface
57 57
     {
58
-        return $this->methods[$methodName] ?? null;
58
+        return $this->methods[ $methodName ] ?? null;
59 59
     }
60 60
 };
61 61
 
Please login to merge, or discard this patch.
src/Exception/InternalException.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
         string $message,
23 23
         int $code,
24 24
         Throwable $previous = null,
25
-        array $context = []
25
+        array $context = [ ]
26 26
     ) {
27 27
         parent::__construct($message, $code, $previous);
28 28
 
Please login to merge, or discard this patch.
rector.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -11,11 +11,11 @@
 block discarded – undo
11 11
 use Rector\Set\ValueObject\SetList;
12 12
 use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
13 13
 
14
-return static function (ContainerConfigurator $containerConfigurator): void {
14
+return static function(ContainerConfigurator $containerConfigurator): void {
15 15
     $parameters = $containerConfigurator->parameters();
16 16
 
17 17
     $parameters->set(Option::PHPSTAN_FOR_RECTOR_PATH, getcwd() . '/phpstan.neon');
18
-    $parameters->set(Option::PATHS, [__DIR__ . '/src', __DIR__ . '/tests']);
18
+    $parameters->set(Option::PATHS, [ __DIR__ . '/src', __DIR__ . '/tests' ]);
19 19
     $parameters->set(Option::AUTO_IMPORT_NAMES, true);
20 20
 
21 21
     $containerConfigurator->import(SetList::CODE_QUALITY_STRICT);
Please login to merge, or discard this patch.
src/Dispatch/MethodValidator.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
                 'properties' => (object) [
60 60
                     'data' => $methodSchemaContent->properties->response,
61 61
                 ],
62
-                'required' => ['data']
62
+                'required' => [ 'data' ]
63 63
             ];
64 64
 
65 65
             // Validate the response against the response definition in method schema
Please login to merge, or discard this patch.
src/Endpoint.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -102,9 +102,9 @@
 block discarded – undo
102 102
     private function logError(
103 103
         Throwable $e,
104 104
         UuidInterface $uuid,
105
-        array $context = []
105
+        array $context = [ ]
106 106
     ): void {
107
-        $this->logger?->error(
107
+        $this->logger ? ->error(
108 108
             sprintf('%s (%d)', $e->getMessage(), $e->getCode()),
109 109
             [
110 110
                 'id' => $uuid->toString(),
Please login to merge, or discard this patch.
src/Dispatch/MethodDispatcher.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
         // Get the method from the request and perform lookup
55 55
         $methodName = $input->method;
56 56
 
57
-        $this->logger?->debug(
57
+        $this->logger ? ->debug(
58 58
             'Api method call',
59 59
             [
60 60
                 'method' => $methodName,
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
 
75 75
         $this->methodValidator->validateInput($schemaContent, $input);
76 76
 
77
-        $this->logger?->info(
77
+        $this->logger ? ->info(
78 78
             'Api method call',
79 79
             [
80 80
                 'method' => $methodName,
Please login to merge, or discard this patch.
src/EndpointInterface.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@
 block discarded – undo
7 7
 use Psr\Http\Server\RequestHandlerInterface;
8 8
 
9 9
 interface EndpointInterface extends
10
-   RequestHandlerInterface
10
+    RequestHandlerInterface
11 11
 {
12 12
     public function serve(
13 13
         ServerRequestInterface $request,
Please login to merge, or discard this patch.