Skip to content
Snippets Groups Projects
Commit 5648eb40 authored by Reiter, Christoph's avatar Reiter, Christoph :snake:
Browse files

Format annotations with cs-fixer

parent 28633c7f
Branches
Tags
No related merge requests found
...@@ -11,6 +11,8 @@ return PhpCsFixer\Config::create() ...@@ -11,6 +11,8 @@ return PhpCsFixer\Config::create()
'@PHP70Migration' => true, '@PHP70Migration' => true,
'@PHP71Migration' => true, '@PHP71Migration' => true,
'@PHP73Migration' => true, '@PHP73Migration' => true,
'@DoctrineAnnotation' => true,
'doctrine_annotation_array_assignment' => ['operator' => '='],
'array_syntax' => ['syntax' => 'short'], 'array_syntax' => ['syntax' => 'short'],
'yoda_style' => false, 'yoda_style' => false,
'strict_comparison' => true, 'strict_comparison' => true,
......
...@@ -10,11 +10,23 @@ use Symfony\Component\Serializer\Annotation\Groups; ...@@ -10,11 +10,23 @@ use Symfony\Component\Serializer\Annotation\Groups;
/** /**
* @ApiResource( * @ApiResource(
* collectionOperations={"get"}, * collectionOperations={
* itemOperations={"get", "put", "delete"}, * "get"
* },
* itemOperations={
* "get",
* "put",
* "delete"
* },
* iri="https://schema.org/Place", * iri="https://schema.org/Place",
* normalizationContext={"groups"={"Place:output"}, "jsonld_embed_context"=true}, * normalizationContext={
* denormalizationContext={"groups"={"Place:input"}, "jsonld_embed_context"=true} * "groups" = {"Place:output"},
* "jsonld_embed_context" = true
* },
* denormalizationContext={
* "groups" = {"Place:input"},
* "jsonld_embed_context" = true
* }
* ) * )
*/ */
class Place class Place
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment