Skip to content

Commit

Permalink
Apply php-cs-fixer changes
Browse files Browse the repository at this point in the history
  • Loading branch information
mattamon authored and github-actions[bot] committed Oct 14, 2024
1 parent 9b1cc94 commit 4610b18
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 1 addition & 3 deletions src/Controller/AbstractApiController.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Serializer\SerializerInterface;


abstract class AbstractApiController extends AbstractController
{
public const VOTER_PUBLIC_STUDIO_API = 'PUBLIC_STUDIO_API';
Expand All @@ -31,8 +30,7 @@ abstract class AbstractApiController extends AbstractController

public function __construct(
protected readonly SerializerInterface $serializer,
)
{
) {
}

protected function jsonResponse(
Expand Down
3 changes: 2 additions & 1 deletion src/OpenApi/Service/OpenApiService.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,9 @@ public function getConfig(): OpenApi
// replace the configurable prefix in the paths
$prefix = $this->routePrefix;
$config->paths = array_map(
static function(PathItem $pathItem) use($prefix) {
static function (PathItem $pathItem) use ($prefix) {
$pathItem->path = str_replace('{prefix}', $prefix, $pathItem->path);

return $pathItem;
},
$config->paths
Expand Down

0 comments on commit 4610b18

Please sign in to comment.