Minor: format code

pull/4312/head
Angel Fernando Quiroz Campos 3 years ago
parent a3f112c9ce
commit 931fd62fc0
  1. 5
      src/CoreBundle/Entity/ExtraField.php
  2. 5
      src/CoreBundle/Entity/ExtraFieldValues.php

@ -7,8 +7,8 @@ declare(strict_types=1);
namespace Chamilo\CoreBundle\Entity;
use ApiPlatform\Core\Annotation\ApiFilter;
use ApiPlatform\Core\Annotation\ApiProperty;
use ApiPlatform\Core\Annotation\ApiResource;
use ApiPlatform\Core\Bridge\Doctrine\Orm\Filter\SearchFilter;
use DateTime;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
@ -16,7 +16,6 @@ use Doctrine\ORM\Mapping as ORM;
use Gedmo\Mapping\Annotation as Gedmo;
use Symfony\Component\Serializer\Annotation\Groups;
use Symfony\Component\Validator\Constraints as Assert;
use ApiPlatform\Core\Bridge\Doctrine\Orm\Filter\SearchFilter;
/**
* @ORM\Entity
@ -34,7 +33,7 @@ use ApiPlatform\Core\Bridge\Doctrine\Orm\Filter\SearchFilter;
],
],
itemOperations:[
"get" => [
'get' => [
'security' => "is_granted('ROLE_ADMIN')",
],
'put' => [

@ -7,7 +7,6 @@ declare(strict_types=1);
namespace Chamilo\CoreBundle\Entity;
use ApiPlatform\Core\Annotation\ApiFilter;
use ApiPlatform\Core\Annotation\ApiProperty;
use ApiPlatform\Core\Annotation\ApiResource;
use ApiPlatform\Core\Bridge\Doctrine\Orm\Filter\SearchFilter;
use Doctrine\ORM\Mapping as ORM;
@ -40,7 +39,7 @@ use Symfony\Component\Validator\Constraints as Assert;
'security' => "is_granted('ROLE_ADMIN')",
],
'put' => [
'security' => "is_granted('ROLE_ADMIN')",
'security' => "is_granted('ROLE_ADMIN')",
],
],
attributes: [
@ -49,7 +48,7 @@ use Symfony\Component\Validator\Constraints as Assert;
denormalizationContext: [
'groups' => ['extra_field_values:write'],
],
normalizationContext: [
normalizationContext: [
'groups' => ['extra_field_values:read'],
],
)]

Loading…
Cancel
Save