From 4efead5dff35ffaf6983c5f615ea7080fbe04202 Mon Sep 17 00:00:00 2001 From: Kevin Frantz Date: Thu, 19 Sep 2019 20:31:01 +0200 Subject: [PATCH] Reformated code --- application/symfony/src/Entity/AbstractEntity.php | 3 ++- application/symfony/src/Entity/Meta/Law.php | 3 ++- .../src/Entity/Meta/Relation/Member/MemberRelation.php | 3 ++- .../Meta/Relation/Parent/AbstractParentRelation.php | 6 ++++-- application/symfony/src/Entity/Meta/Right.php | 8 +++++++- application/symfony/src/Entity/Source/AbstractSource.php | 5 ++++- .../src/Entity/Source/Complex/FullPersonNameSource.php | 3 ++- .../symfony/src/Entity/Source/Complex/UserSource.php | 3 ++- application/symfony/src/Entity/User.php | 4 +++- .../tests/Unit/Domain/Dom/EntityDomServiceTest.php | 3 ++- 10 files changed, 30 insertions(+), 11 deletions(-) diff --git a/application/symfony/src/Entity/AbstractEntity.php b/application/symfony/src/Entity/AbstractEntity.php index 6536ec7..985fe9a 100644 --- a/application/symfony/src/Entity/AbstractEntity.php +++ b/application/symfony/src/Entity/AbstractEntity.php @@ -11,7 +11,8 @@ use Infinito\Attribut\VersionAttribut; */ abstract class AbstractEntity implements EntityInterface { - use IdAttribut, VersionAttribut; + use IdAttribut; + use VersionAttribut; /** * @ORM\Id() diff --git a/application/symfony/src/Entity/Meta/Law.php b/application/symfony/src/Entity/Meta/Law.php index 50a9be5..15bdc7b 100644 --- a/application/symfony/src/Entity/Meta/Law.php +++ b/application/symfony/src/Entity/Meta/Law.php @@ -15,7 +15,8 @@ use Infinito\Attribut\GrantAttribut; */ class Law extends AbstractMeta implements LawInterface { - use RightsAttribut, GrantAttribut; + use RightsAttribut; + use GrantAttribut; /** * @ORM\Column(type="boolean",name="`grant`") diff --git a/application/symfony/src/Entity/Meta/Relation/Member/MemberRelation.php b/application/symfony/src/Entity/Meta/Relation/Member/MemberRelation.php index 39c3765..c93bcd8 100644 --- a/application/symfony/src/Entity/Meta/Relation/Member/MemberRelation.php +++ b/application/symfony/src/Entity/Meta/Relation/Member/MemberRelation.php @@ -15,7 +15,8 @@ use Doctrine\Common\Collections\ArrayCollection; */ class MemberRelation extends AbstractRelation implements MemberRelationInterface { - use MembersAttribut,MembershipsAttribut; + use MembersAttribut; + use MembershipsAttribut; /** * Many Sources have many Source Members. diff --git a/application/symfony/src/Entity/Meta/Relation/Parent/AbstractParentRelation.php b/application/symfony/src/Entity/Meta/Relation/Parent/AbstractParentRelation.php index e1ff239..58dfd5c 100644 --- a/application/symfony/src/Entity/Meta/Relation/Parent/AbstractParentRelation.php +++ b/application/symfony/src/Entity/Meta/Relation/Parent/AbstractParentRelation.php @@ -15,8 +15,10 @@ use Infinito\Entity\Meta\Relation\AbstractRelation; */ abstract class AbstractParentRelation extends AbstractRelation implements ParentRelationInterface { - use IdAttribut, - ParentsAttribut, + use IdAttribut; + use + ParentsAttribut; + use ChildsAttribut; public function __construct() diff --git a/application/symfony/src/Entity/Meta/Right.php b/application/symfony/src/Entity/Meta/Right.php index 7578c76..c31220a 100644 --- a/application/symfony/src/Entity/Meta/Right.php +++ b/application/symfony/src/Entity/Meta/Right.php @@ -21,7 +21,13 @@ use Infinito\Attribut\ActionTypeAttribut; */ class Right extends AbstractMeta implements RightInterface { - use ActionTypeAttribut,LawAttribut, GrantAttribut,ConditionAttribut,RecieverAttribut,LayerAttribut,PriorityAttribut; + use ActionTypeAttribut; + use LawAttribut; + use GrantAttribut; + use ConditionAttribut; + use RecieverAttribut; + use LayerAttribut; + use PriorityAttribut; /** * @todo Implement Integrationtests diff --git a/application/symfony/src/Entity/Source/AbstractSource.php b/application/symfony/src/Entity/Source/AbstractSource.php index 0879141..82057d7 100644 --- a/application/symfony/src/Entity/Source/AbstractSource.php +++ b/application/symfony/src/Entity/Source/AbstractSource.php @@ -49,7 +49,10 @@ use Symfony\Component\Validator\Constraints as Assert; */ abstract class AbstractSource extends AbstractEntity implements SourceInterface { - use LawAttribut,CreatorRelationAttribut, MemberRelationAttribut, SlugAttribut; + use LawAttribut; + use CreatorRelationAttribut; + use MemberRelationAttribut; + use SlugAttribut; /** * System slugs should be writen in UPPER CASES diff --git a/application/symfony/src/Entity/Source/Complex/FullPersonNameSource.php b/application/symfony/src/Entity/Source/Complex/FullPersonNameSource.php index cd9dd72..26b25ee 100644 --- a/application/symfony/src/Entity/Source/Complex/FullPersonNameSource.php +++ b/application/symfony/src/Entity/Source/Complex/FullPersonNameSource.php @@ -16,7 +16,8 @@ use Infinito\Entity\Source\Primitive\Name\FirstNameSourceInterface; */ class FullPersonNameSource extends AbstractComplexSource implements FullPersonNameSourceInterface { - use FirstNameSourceAttribut,SurnameSourceAttribut; + use FirstNameSourceAttribut; + use SurnameSourceAttribut; /** * @ORM\OneToOne(targetEntity="Infinito\Entity\Source\Primitive\Name\SurnameSource",cascade={"persist", "remove"}) diff --git a/application/symfony/src/Entity/Source/Complex/UserSource.php b/application/symfony/src/Entity/Source/Complex/UserSource.php index 8a5cc41..ca80286 100644 --- a/application/symfony/src/Entity/Source/Complex/UserSource.php +++ b/application/symfony/src/Entity/Source/Complex/UserSource.php @@ -15,7 +15,8 @@ use Infinito\Domain\User\UserSourceStandartRightMapInterface; */ class UserSource extends AbstractComplexSource implements UserSourceInterface { - use UserAttribut,PersonIdentitySourceAttribut; + use UserAttribut; + use PersonIdentitySourceAttribut; /** * @ORM\OneToOne(targetEntity="Infinito\Entity\User",cascade={"persist", "remove"}) diff --git a/application/symfony/src/Entity/User.php b/application/symfony/src/Entity/User.php index ceb7c27..e3321dd 100644 --- a/application/symfony/src/Entity/User.php +++ b/application/symfony/src/Entity/User.php @@ -17,7 +17,9 @@ use Infinito\Attribut\VersionAttribut; */ class User extends BaseUser implements UserInterface { - use SourceAttribut,IdAttribut, VersionAttribut; + use SourceAttribut; + use IdAttribut; + use VersionAttribut; /** * @var UserSourceInterface diff --git a/application/symfony/tests/Unit/Domain/Dom/EntityDomServiceTest.php b/application/symfony/tests/Unit/Domain/Dom/EntityDomServiceTest.php index 8b26445..d0f1dc3 100644 --- a/application/symfony/tests/Unit/Domain/Dom/EntityDomServiceTest.php +++ b/application/symfony/tests/Unit/Domain/Dom/EntityDomServiceTest.php @@ -49,7 +49,8 @@ class EntityDomServiceTest extends TestCase public function testNotCorrectInstanceException(): void { $entity = new class() implements EntityInterface { - use VersionAttribut,IdAttribut; + use VersionAttribut; + use IdAttribut; private $test; public function setTest($test): void