php cs fixes after updating php cs fixer

This commit is contained in:
2024-01-10 10:31:25 +01:00
parent 60ede58af0
commit 3c8e59e088
682 changed files with 2097 additions and 882 deletions

View File

@@ -401,16 +401,16 @@ class ChillPersonExtension extends Extension implements PrependExtensionInterfac
],
'apis' => [
[
'class' => \Chill\PersonBundle\Entity\AccompanyingPeriod::class,
'class' => AccompanyingPeriod::class,
'name' => 'accompanying_course',
'base_path' => '/api/1.0/person/accompanying-course',
'controller' => \Chill\PersonBundle\Controller\AccompanyingCourseApiController::class,
'actions' => [
'_entity' => [
'roles' => [
Request::METHOD_GET => \Chill\PersonBundle\Security\Authorization\AccompanyingPeriodVoter::SEE,
Request::METHOD_PATCH => \Chill\PersonBundle\Security\Authorization\AccompanyingPeriodVoter::SEE,
Request::METHOD_PUT => \Chill\PersonBundle\Security\Authorization\AccompanyingPeriodVoter::SEE,
Request::METHOD_GET => AccompanyingPeriodVoter::SEE,
Request::METHOD_PATCH => AccompanyingPeriodVoter::SEE,
Request::METHOD_PUT => AccompanyingPeriodVoter::SEE,
],
'methods' => [
Request::METHOD_GET => true,
@@ -426,8 +426,8 @@ class ChillPersonExtension extends Extension implements PrependExtensionInterfac
Request::METHOD_HEAD => false,
],
'roles' => [
Request::METHOD_POST => \Chill\PersonBundle\Security\Authorization\AccompanyingPeriodVoter::SEE,
Request::METHOD_DELETE => \Chill\PersonBundle\Security\Authorization\AccompanyingPeriodVoter::SEE,
Request::METHOD_POST => AccompanyingPeriodVoter::SEE,
Request::METHOD_DELETE => AccompanyingPeriodVoter::SEE,
],
],
'resource' => [
@@ -438,8 +438,8 @@ class ChillPersonExtension extends Extension implements PrependExtensionInterfac
Request::METHOD_HEAD => false,
],
'roles' => [
Request::METHOD_POST => \Chill\PersonBundle\Security\Authorization\AccompanyingPeriodVoter::SEE,
Request::METHOD_DELETE => \Chill\PersonBundle\Security\Authorization\AccompanyingPeriodVoter::SEE,
Request::METHOD_POST => AccompanyingPeriodVoter::SEE,
Request::METHOD_DELETE => AccompanyingPeriodVoter::SEE,
],
],
'comment' => [
@@ -450,8 +450,8 @@ class ChillPersonExtension extends Extension implements PrependExtensionInterfac
Request::METHOD_HEAD => false,
],
'roles' => [
Request::METHOD_POST => \Chill\PersonBundle\Security\Authorization\AccompanyingPeriodVoter::SEE,
Request::METHOD_DELETE => \Chill\PersonBundle\Security\Authorization\AccompanyingPeriodVoter::SEE,
Request::METHOD_POST => AccompanyingPeriodVoter::SEE,
Request::METHOD_DELETE => AccompanyingPeriodVoter::SEE,
],
],
'requestor' => [
@@ -462,8 +462,8 @@ class ChillPersonExtension extends Extension implements PrependExtensionInterfac
Request::METHOD_HEAD => false,
],
'roles' => [
Request::METHOD_POST => \Chill\PersonBundle\Security\Authorization\AccompanyingPeriodVoter::SEE,
Request::METHOD_DELETE => \Chill\PersonBundle\Security\Authorization\AccompanyingPeriodVoter::SEE,
Request::METHOD_POST => AccompanyingPeriodVoter::SEE,
Request::METHOD_DELETE => AccompanyingPeriodVoter::SEE,
],
],
'scope' => [
@@ -474,8 +474,8 @@ class ChillPersonExtension extends Extension implements PrependExtensionInterfac
Request::METHOD_HEAD => false,
],
'roles' => [
Request::METHOD_POST => \Chill\PersonBundle\Security\Authorization\AccompanyingPeriodVoter::SEE,
Request::METHOD_DELETE => \Chill\PersonBundle\Security\Authorization\AccompanyingPeriodVoter::SEE,
Request::METHOD_POST => AccompanyingPeriodVoter::SEE,
Request::METHOD_DELETE => AccompanyingPeriodVoter::SEE,
],
],
'socialissue' => [
@@ -487,8 +487,8 @@ class ChillPersonExtension extends Extension implements PrependExtensionInterfac
],
'controller_action' => 'socialIssueApi',
'roles' => [
Request::METHOD_POST => \Chill\PersonBundle\Security\Authorization\AccompanyingPeriodVoter::SEE,
Request::METHOD_DELETE => \Chill\PersonBundle\Security\Authorization\AccompanyingPeriodVoter::SEE,
Request::METHOD_POST => AccompanyingPeriodVoter::SEE,
Request::METHOD_DELETE => AccompanyingPeriodVoter::SEE,
],
],
'work' => [
@@ -500,7 +500,7 @@ class ChillPersonExtension extends Extension implements PrependExtensionInterfac
],
'controller_action' => 'workApi',
'roles' => [
Request::METHOD_POST => \Chill\PersonBundle\Security\Authorization\AccompanyingPeriodVoter::SEE,
Request::METHOD_POST => AccompanyingPeriodVoter::SEE,
Request::METHOD_DELETE => 'ALWAYS_FAILS',
],
],
@@ -511,7 +511,7 @@ class ChillPersonExtension extends Extension implements PrependExtensionInterfac
Request::METHOD_HEAD => false,
],
'roles' => [
Request::METHOD_POST => \Chill\PersonBundle\Security\Authorization\AccompanyingPeriodVoter::SEE,
Request::METHOD_POST => AccompanyingPeriodVoter::SEE,
],
],
// 'confidential' => [
@@ -618,7 +618,7 @@ class ChillPersonExtension extends Extension implements PrependExtensionInterfac
'class' => \Chill\PersonBundle\Entity\Person::class,
'name' => 'person',
'base_path' => '/api/1.0/person/person',
'base_role' => \Chill\PersonBundle\Security\Authorization\PersonVoter::SEE,
'base_role' => PersonVoter::SEE,
'controller' => \Chill\PersonBundle\Controller\PersonApiController::class,
'actions' => [
'_entity' => [
@@ -629,10 +629,10 @@ class ChillPersonExtension extends Extension implements PrependExtensionInterfac
Request::METHOD_PATCH => true,
],
'roles' => [
Request::METHOD_GET => \Chill\PersonBundle\Security\Authorization\PersonVoter::SEE,
Request::METHOD_HEAD => \Chill\PersonBundle\Security\Authorization\PersonVoter::SEE,
Request::METHOD_POST => \Chill\PersonBundle\Security\Authorization\PersonVoter::CREATE,
Request::METHOD_PATCH => \Chill\PersonBundle\Security\Authorization\PersonVoter::CREATE,
Request::METHOD_GET => PersonVoter::SEE,
Request::METHOD_HEAD => PersonVoter::SEE,
Request::METHOD_POST => PersonVoter::CREATE,
Request::METHOD_PATCH => PersonVoter::CREATE,
],
],
'address' => [
@@ -1001,7 +1001,7 @@ class ChillPersonExtension extends Extension implements PrependExtensionInterfac
'property' => 'step',
],
'supports' => [
\Chill\PersonBundle\Entity\AccompanyingPeriod::class,
AccompanyingPeriod::class,
],
'initial_marking' => 'DRAFT',
'places' => [