Passed
Push — master ( 9ffd25...b7bf67 )
by Paweł
02:11
created
src/Operation/AbstractOperation.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -75,8 +75,7 @@
 block discarded – undo
75 75
                 $output,
76 76
                 $this->getNormalizationContext()['definition'],
77 77
                 $this->getNormalizationContext()['context']
78
-            ) :
79
-            $output;
78
+            ) : $output;
80 79
     }
81 80
 
82 81
     /**
Please login to merge, or discard this patch.
src/Resource/Exception/InvalidEntityException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
     public static function fromViolations(EntityViolation ...$violations): self
27 27
     {
28 28
         $message = array_map(
29
-            static function (EntityViolation $violation): string {
29
+            static function(EntityViolation $violation): string {
30 30
                 return "{$violation->getProperty()}: {$violation->getMessage()}";
31 31
             },
32 32
             $violations
Please login to merge, or discard this patch.
src/Http/Routing/Router.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
         $request = $this->request;
71 71
 
72 72
         $operations = $resource->getOperations()->filter(
73
-            static function (ResourceOperationInterface $operation) use ($request, $resource): bool {
73
+            static function(ResourceOperationInterface $operation) use ($request, $resource): bool {
74 74
                 return UriMatcher::matchUri($request->getPathInfo(), $resource->getPath(), $operation->getPath());
75 75
             }
76 76
         );
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
         $method = $this->request->getMethod();
95 95
 
96 96
         $operations = $operations->filter(
97
-            static function (ResourceOperationInterface $operation) use ($method): bool {
97
+            static function(ResourceOperationInterface $operation) use ($method): bool {
98 98
                 return $method === $operation->getMethod();
99 99
             }
100 100
         );
Please login to merge, or discard this patch.
src/Testing/Constraint/MatchesJsonSchema.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@
 block discarded – undo
56 56
         $validator->validate($other, $this->schema, $this->checkMode);
57 57
 
58 58
         $errors = array_map(
59
-            static function (array $error): string {
59
+            static function(array $error): string {
60 60
                 return ($error['property'] ? $error['property'] . ': ' : '') . $error['message'];
61 61
             },
62 62
             $validator->getErrors()
Please login to merge, or discard this patch.
src/Adapter/ValidatorAdapter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
38 38
 
39 39
         if ($errors->count() > 0) {
40 40
             $violations = (new Collection($errors))->map(
41
-                static function (ConstraintViolationInterface $violation): EntityViolation {
41
+                static function(ConstraintViolationInterface $violation): EntityViolation {
42 42
                     return new EntityViolation($violation->getPropertyPath(), $violation->getMessage());
43 43
                 }
44 44
             );
Please login to merge, or discard this patch.
src/Command/GenerateApiCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
46 46
 
47 47
         array_walk(
48 48
             $resources,
49
-            static function (string $resource) use ($apiGenerator, $io): void {
49
+            static function(string $resource) use ($apiGenerator, $io): void {
50 50
                 $resourceReflection = new \ReflectionClass($resource);
51 51
 
52 52
                 if (true === $resourceReflection->isInterface() || true === $resourceReflection->isAbstract()) {
Please login to merge, or discard this patch.
src/Generator/ApiGenerator.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
     {
68 68
         foreach ($schema as $itemName => $item) {
69 69
             $path = sprintf(EnvAccess::get('PROJECT_DIR') . $item['output'], $this->templateDto->entityClassName);
70
-            $content = $this->templateEngine->render($item['template'], (array)$this->templateDto);
70
+            $content = $this->templateEngine->render($item['template'], (array) $this->templateDto);
71 71
 
72 72
             $this->fileWriter->write($path, $content);
73 73
         }
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
         $templateParameters = $this->templateDto;
101 101
 
102 102
         $newConfigRecords = (new Collection($this->resolveTemplateSchema()))
103
-            ->map(static function (array $operationSchema) use ($templateParameters): string {
103
+            ->map(static function(array $operationSchema) use ($templateParameters): string {
104 104
                 return $templateParameters->rootNamespace . '\\' .
105 105
                     str_replace(
106 106
                         '/',
Please login to merge, or discard this patch.