mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2024-12-04 15:06:51 +01:00
Reformated code
This commit is contained in:
parent
61c7b8ac73
commit
4efead5dff
@ -11,7 +11,8 @@ use Infinito\Attribut\VersionAttribut;
|
||||
*/
|
||||
abstract class AbstractEntity implements EntityInterface
|
||||
{
|
||||
use IdAttribut, VersionAttribut;
|
||||
use IdAttribut;
|
||||
use VersionAttribut;
|
||||
|
||||
/**
|
||||
* @ORM\Id()
|
||||
|
@ -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`")
|
||||
|
@ -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.
|
||||
|
@ -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()
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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"})
|
||||
|
@ -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"})
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user