Reformated code

This commit is contained in:
Kevin Frantz 2019-09-19 20:31:01 +02:00
parent 61c7b8ac73
commit 4efead5dff
10 changed files with 30 additions and 11 deletions

View File

@ -11,7 +11,8 @@ use Infinito\Attribut\VersionAttribut;
*/
abstract class AbstractEntity implements EntityInterface
{
use IdAttribut, VersionAttribut;
use IdAttribut;
use VersionAttribut;
/**
* @ORM\Id()

View File

@ -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`")

View File

@ -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.

View File

@ -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()

View File

@ -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

View File

@ -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

View File

@ -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"})

View File

@ -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"})

View File

@ -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

View File

@ -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