From 5648eb4089619cc167bba055161a196f5a9ec5ee Mon Sep 17 00:00:00 2001
From: Christoph Reiter <reiter.christoph@gmail.com>
Date: Mon, 22 Feb 2021 13:39:36 +0100
Subject: [PATCH] Format annotations with cs-fixer

---
 .php_cs.dist         |  2 ++
 src/Entity/Place.php | 20 ++++++++++++++++----
 2 files changed, 18 insertions(+), 4 deletions(-)

diff --git a/.php_cs.dist b/.php_cs.dist
index 53bdfdc..9d7d3ab 100644
--- a/.php_cs.dist
+++ b/.php_cs.dist
@@ -11,6 +11,8 @@ return PhpCsFixer\Config::create()
         '@PHP70Migration' => true,
         '@PHP71Migration' => true,
         '@PHP73Migration' => true,
+        '@DoctrineAnnotation' => true,
+        'doctrine_annotation_array_assignment' => ['operator' => '='],
         'array_syntax' => ['syntax' => 'short'],
         'yoda_style' => false,
         'strict_comparison' => true,
diff --git a/src/Entity/Place.php b/src/Entity/Place.php
index 95506c5..8f981fd 100644
--- a/src/Entity/Place.php
+++ b/src/Entity/Place.php
@@ -10,11 +10,23 @@ use Symfony\Component\Serializer\Annotation\Groups;
 
 /**
  * @ApiResource(
- *     collectionOperations={"get"},
- *     itemOperations={"get", "put", "delete"},
+ *     collectionOperations={
+ *         "get"
+ *     },
+ *     itemOperations={
+ *         "get",
+ *         "put",
+ *         "delete"
+ *     },
  *     iri="https://schema.org/Place",
- *     normalizationContext={"groups"={"Place:output"}, "jsonld_embed_context"=true},
- *     denormalizationContext={"groups"={"Place:input"}, "jsonld_embed_context"=true}
+ *     normalizationContext={
+ *         "groups" = {"Place:output"},
+ *         "jsonld_embed_context" = true
+ *     },
+ *     denormalizationContext={
+ *         "groups" = {"Place:input"},
+ *         "jsonld_embed_context" = true
+ *     }
  * )
  */
 class Place
-- 
GitLab