| @@ -75,8 +75,7 @@ | ||
| 75 | 75 | $output, | 
| 76 | 76 | $this->getNormalizationContext()['definition'], | 
| 77 | 77 | $this->getNormalizationContext()['context'] | 
| 78 | - ) : | |
| 79 | - $output; | |
| 78 | + ) : $output; | |
| 80 | 79 | } | 
| 81 | 80 | |
| 82 | 81 | /** | 
| @@ -26,7 +26,7 @@ | ||
| 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 | 
| @@ -70,7 +70,7 @@ discard block | ||
| 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 | ||
| 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 | ); | 
| @@ -56,7 +56,7 @@ | ||
| 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() | 
| @@ -38,7 +38,7 @@ | ||
| 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 | ); | 
| @@ -46,7 +46,7 @@ | ||
| 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()) { | 
| @@ -67,7 +67,7 @@ discard block | ||
| 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 | ||
| 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 | '/', |