diff --git a/application/symfony/src/Attribut/ActionTypeAttribut.php b/application/symfony/src/Attribut/ActionTypeAttribut.php index 7de6037..6decc1e 100644 --- a/application/symfony/src/Attribut/ActionTypeAttribut.php +++ b/application/symfony/src/Attribut/ActionTypeAttribut.php @@ -18,8 +18,6 @@ trait ActionTypeAttribut protected $actionType; /** - * @param string $actionType - * * @throws InvalidChoiceTypeException */ public function setActionType(string $actionType): void @@ -30,9 +28,6 @@ trait ActionTypeAttribut $this->actionType = $actionType; } - /** - * @return string - */ public function getActionType(): string { return $this->actionType; diff --git a/application/symfony/src/Attribut/ActionTypeAttributInterface.php b/application/symfony/src/Attribut/ActionTypeAttributInterface.php index c82dad9..01f4ec3 100644 --- a/application/symfony/src/Attribut/ActionTypeAttributInterface.php +++ b/application/symfony/src/Attribut/ActionTypeAttributInterface.php @@ -13,15 +13,11 @@ interface ActionTypeAttributInterface { /** * @see ActionType - * - * @param string $actionType */ public function setActionType(string $actionType): void; /** * @see ActionType - * - * @return string */ public function getActionType(): string; } diff --git a/application/symfony/src/Attribut/ClassAttribut.php b/application/symfony/src/Attribut/ClassAttribut.php index 786e58c..d9b9bc2 100644 --- a/application/symfony/src/Attribut/ClassAttribut.php +++ b/application/symfony/src/Attribut/ClassAttribut.php @@ -16,9 +16,6 @@ trait ClassAttribut */ private $class; - /** - * @param string $class - */ public function setClass(string $class): void { if (class_exists($class)) { @@ -29,17 +26,11 @@ trait ClassAttribut throw new NotFoundHttpException('Class '.$class.' couldn\'t be found!'); } - /** - * @return string - */ public function getClass(): string { return $this->class; } - /** - * @return bool - */ public function hasClass(): bool { return isset($this->class); diff --git a/application/symfony/src/Attribut/ClassAttributInterface.php b/application/symfony/src/Attribut/ClassAttributInterface.php index f45ca3e..8da2269 100644 --- a/application/symfony/src/Attribut/ClassAttributInterface.php +++ b/application/symfony/src/Attribut/ClassAttributInterface.php @@ -9,14 +9,8 @@ interface ClassAttributInterface { const CLASS_ATTRIBUT_NAME = 'class'; - /** - * @param string $class - */ public function setClass(string $class): void; - /** - * @return string - */ public function getClass(): string; /** diff --git a/application/symfony/src/Attribut/CollectionAttribut.php b/application/symfony/src/Attribut/CollectionAttribut.php index 5c11be4..095fa2b 100644 --- a/application/symfony/src/Attribut/CollectionAttribut.php +++ b/application/symfony/src/Attribut/CollectionAttribut.php @@ -11,17 +11,11 @@ trait CollectionAttribut */ protected $collection; - /** - * @return Collection - */ public function getCollection(): Collection { return $this->collection; } - /** - * @param Collection $collection - */ public function setCollection(Collection $collection): void { $this->collection = $collection; diff --git a/application/symfony/src/Attribut/CreatorRelationAttribut.php b/application/symfony/src/Attribut/CreatorRelationAttribut.php index 604fd0d..af11cc3 100644 --- a/application/symfony/src/Attribut/CreatorRelationAttribut.php +++ b/application/symfony/src/Attribut/CreatorRelationAttribut.php @@ -16,17 +16,11 @@ trait CreatorRelationAttribut */ protected $creatorRelation; - /** - * @param CreatorRelationInterface $creatorRelation - */ public function setCreatorRelation(CreatorRelationInterface $creatorRelation) { $this->creatorRelation = $creatorRelation; } - /** - * @return CreatorRelationInterface - */ public function getCreatorRelation(): CreatorRelationInterface { return $this->creatorRelation; diff --git a/application/symfony/src/Attribut/CreatorRelationAttributInterface.php b/application/symfony/src/Attribut/CreatorRelationAttributInterface.php index d3c5a81..de56bfe 100644 --- a/application/symfony/src/Attribut/CreatorRelationAttributInterface.php +++ b/application/symfony/src/Attribut/CreatorRelationAttributInterface.php @@ -11,13 +11,7 @@ interface CreatorRelationAttributInterface { const CREATORRELATION_ATTRIBUT_NAME = 'creatorRelation'; - /** - * @param CreatorRelationInterface $creatorRelation - */ public function setCreatorRelation(CreatorRelationInterface $creatorRelation); - /** - * @return CreatorRelationInterface - */ public function getCreatorRelation(): CreatorRelationInterface; } diff --git a/application/symfony/src/Attribut/CrudAttribut.php b/application/symfony/src/Attribut/CrudAttribut.php index 3db431a..e7075a8 100644 --- a/application/symfony/src/Attribut/CrudAttribut.php +++ b/application/symfony/src/Attribut/CrudAttribut.php @@ -19,9 +19,6 @@ trait CrudAttribut */ protected $crud; - /** - * @param string $crud - */ public function setCrud(string $crud): void { if (!in_array($crud, CRUDType::getValues())) { @@ -30,9 +27,6 @@ trait CrudAttribut $this->crud = $crud; } - /** - * @return string - */ public function getCrud(): string { return $this->crud; diff --git a/application/symfony/src/Attribut/GrantAttribut.php b/application/symfony/src/Attribut/GrantAttribut.php index 4105632..f9aebb2 100644 --- a/application/symfony/src/Attribut/GrantAttribut.php +++ b/application/symfony/src/Attribut/GrantAttribut.php @@ -14,17 +14,11 @@ trait GrantAttribut */ protected $grant; - /** - * @param bool $grant - */ public function setGrant(bool $grant): void { $this->grant = $grant; } - /** - * @return bool - */ public function getGrant(): bool { return $this->grant; diff --git a/application/symfony/src/Attribut/GrantAttributInterface.php b/application/symfony/src/Attribut/GrantAttributInterface.php index 4d987f7..4345aea 100644 --- a/application/symfony/src/Attribut/GrantAttributInterface.php +++ b/application/symfony/src/Attribut/GrantAttributInterface.php @@ -12,13 +12,7 @@ interface GrantAttributInterface */ const GRANT_ATTRIBUT_NAME = 'grant'; - /** - * @param bool $grant - */ public function setGrant(bool $grant): void; - /** - * @return bool - */ public function getGrant(): bool; } diff --git a/application/symfony/src/Attribut/IdAttribut.php b/application/symfony/src/Attribut/IdAttribut.php index 3fc5115..a32817a 100644 --- a/application/symfony/src/Attribut/IdAttribut.php +++ b/application/symfony/src/Attribut/IdAttribut.php @@ -14,25 +14,16 @@ trait IdAttribut */ protected $id; - /** - * @param int $id - */ public function setId(int $id): void { $this->id = $id; } - /** - * @return int|null - */ public function getId(): ?int { return $this->id; } - /** - * @return bool - */ public function hasId(): bool { return isset($this->id); diff --git a/application/symfony/src/Attribut/IdAttributInterface.php b/application/symfony/src/Attribut/IdAttributInterface.php index a93c39f..235be5b 100644 --- a/application/symfony/src/Attribut/IdAttributInterface.php +++ b/application/symfony/src/Attribut/IdAttributInterface.php @@ -9,9 +9,6 @@ interface IdAttributInterface { const ID_ATTRIBUT_NAME = 'id'; - /** - * @param int $id - */ public function setId(int $id): void; /** @@ -19,8 +16,6 @@ interface IdAttributInterface * Use instead:. * * @see self::hasId() - * - * @return int|null */ public function getId(): ?int; diff --git a/application/symfony/src/Attribut/LawAttribut.php b/application/symfony/src/Attribut/LawAttribut.php index b94f3ed..88a096e 100644 --- a/application/symfony/src/Attribut/LawAttribut.php +++ b/application/symfony/src/Attribut/LawAttribut.php @@ -16,17 +16,11 @@ trait LawAttribut */ protected $law; - /** - * @param LawInterface $law - */ public function setLaw(LawInterface $law): void { $this->law = $law; } - /** - * @return LawInterface - */ public function getLaw(): LawInterface { return $this->law; diff --git a/application/symfony/src/Attribut/LayerAttribut.php b/application/symfony/src/Attribut/LayerAttribut.php index a334f8e..07999ce 100644 --- a/application/symfony/src/Attribut/LayerAttribut.php +++ b/application/symfony/src/Attribut/LayerAttribut.php @@ -20,8 +20,6 @@ trait LayerAttribut protected $layer; /** - * @param string $layer - * * @throws InvalidChoiceTypeException */ public function setLayer(string $layer): void @@ -32,9 +30,6 @@ trait LayerAttribut $this->layer = $layer; } - /** - * @return string - */ public function getLayer(): string { return $this->layer; diff --git a/application/symfony/src/Attribut/LayerAttributInterface.php b/application/symfony/src/Attribut/LayerAttributInterface.php index 327d05c..5373738 100644 --- a/application/symfony/src/Attribut/LayerAttributInterface.php +++ b/application/symfony/src/Attribut/LayerAttributInterface.php @@ -7,13 +7,7 @@ namespace Infinito\Attribut; */ interface LayerAttributInterface { - /** - * @param string $layer - */ public function setLayer(string $layer): void; - /** - * @return string - */ public function getLayer(): string; } diff --git a/application/symfony/src/Attribut/LayerRepositoryFactoryServiceAttribut.php b/application/symfony/src/Attribut/LayerRepositoryFactoryServiceAttribut.php index 0845b41..5d228ff 100644 --- a/application/symfony/src/Attribut/LayerRepositoryFactoryServiceAttribut.php +++ b/application/symfony/src/Attribut/LayerRepositoryFactoryServiceAttribut.php @@ -16,17 +16,11 @@ trait LayerRepositoryFactoryServiceAttribut */ protected $layerRepositoryFactoryService; - /** - * @param LayerRepositoryFactoryServiceInterface $layerRepositoryFactoryService - */ public function setLayerRepositoryFactoryService(LayerRepositoryFactoryServiceInterface $layerRepositoryFactoryService): void { $this->layerRepositoryFactoryService = $layerRepositoryFactoryService; } - /** - * @return LayerRepositoryFactoryServiceInterface - */ public function getLayerRepositoryFactoryService(): LayerRepositoryFactoryServiceInterface { return $this->layerRepositoryFactoryService; diff --git a/application/symfony/src/Attribut/LayerRepositoryFactoryServiceAttributInterface.php b/application/symfony/src/Attribut/LayerRepositoryFactoryServiceAttributInterface.php index 5334ec7..084dcb8 100644 --- a/application/symfony/src/Attribut/LayerRepositoryFactoryServiceAttributInterface.php +++ b/application/symfony/src/Attribut/LayerRepositoryFactoryServiceAttributInterface.php @@ -9,13 +9,7 @@ use Infinito\Domain\Repository\LayerRepositoryFactoryServiceInterface; */ interface LayerRepositoryFactoryServiceAttributInterface { - /** - * @param LayerRepositoryFactoryServiceInterface $layerRepositoryFactoryService - */ public function setLayerRepositoryFactoryService(LayerRepositoryFactoryServiceInterface $layerRepositoryFactoryService): void; - /** - * @return LayerRepositoryFactoryServiceInterface - */ public function getLayerRepositoryFactoryService(): LayerRepositoryFactoryServiceInterface; } diff --git a/application/symfony/src/Attribut/RecieverAttribut.php b/application/symfony/src/Attribut/RecieverAttribut.php index f652fed..8352479 100644 --- a/application/symfony/src/Attribut/RecieverAttribut.php +++ b/application/symfony/src/Attribut/RecieverAttribut.php @@ -24,17 +24,11 @@ trait RecieverAttribut $this->reciever = $reciever; } - /** - * @return SourceInterface - */ public function getReciever(): SourceInterface { return $this->reciever; } - /** - * @return bool - */ public function hasReciever(): bool { return isset($this->reciever); diff --git a/application/symfony/src/Attribut/RecieverAttributInterface.php b/application/symfony/src/Attribut/RecieverAttributInterface.php index ba6597b..25f23a1 100644 --- a/application/symfony/src/Attribut/RecieverAttributInterface.php +++ b/application/symfony/src/Attribut/RecieverAttributInterface.php @@ -14,9 +14,6 @@ interface RecieverAttributInterface */ public function setReciever(?SourceInterface $reciever): void; - /** - * @return SourceInterface - */ public function getReciever(): SourceInterface; /** diff --git a/application/symfony/src/Attribut/RelationAttribut.php b/application/symfony/src/Attribut/RelationAttribut.php index 92c4737..890c693 100644 --- a/application/symfony/src/Attribut/RelationAttribut.php +++ b/application/symfony/src/Attribut/RelationAttribut.php @@ -17,8 +17,6 @@ trait RelationAttribut protected $relation; /** - * @param RelationInterface $relation - * * @see RelationAttributInterface */ public function setRelation(RelationInterface $relation): void @@ -28,8 +26,6 @@ trait RelationAttribut /** * @see RelationAttributInterface - * - * @return RelationInterface */ public function getRelation(): RelationInterface { diff --git a/application/symfony/src/Attribut/RelationAttributInterface.php b/application/symfony/src/Attribut/RelationAttributInterface.php index d867283..98dc2e2 100644 --- a/application/symfony/src/Attribut/RelationAttributInterface.php +++ b/application/symfony/src/Attribut/RelationAttributInterface.php @@ -9,13 +9,7 @@ use Infinito\Entity\Meta\Relation\RelationInterface; */ interface RelationAttributInterface { - /** - * @param RelationInterface $relation - */ public function setRelation(RelationInterface $relation): void; - /** - * @return RelationInterface - */ public function getRelation(): RelationInterface; } diff --git a/application/symfony/src/Attribut/RequestAttribut.php b/application/symfony/src/Attribut/RequestAttribut.php index 7dd02b0..e5001d5 100644 --- a/application/symfony/src/Attribut/RequestAttribut.php +++ b/application/symfony/src/Attribut/RequestAttribut.php @@ -16,17 +16,11 @@ trait RequestAttribut */ protected $request; - /** - * @param Request $request - */ public function setRequest(Request $request): void { $this->request = $request; } - /** - * @return Request - */ public function getRequest(): Request { return $this->request; diff --git a/application/symfony/src/Attribut/RequestAttributInterface.php b/application/symfony/src/Attribut/RequestAttributInterface.php index 31a2591..b57fc81 100644 --- a/application/symfony/src/Attribut/RequestAttributInterface.php +++ b/application/symfony/src/Attribut/RequestAttributInterface.php @@ -9,13 +9,7 @@ use Symfony\Component\HttpFoundation\Request; */ interface RequestAttributInterface { - /** - * @param Request $request - */ public function setRequest(Request $request): void; - /** - * @return Request - */ public function getRequest(): Request; } diff --git a/application/symfony/src/Attribut/RequestedEntityAttribut.php b/application/symfony/src/Attribut/RequestedEntityAttribut.php index 2d74742..8a0af67 100644 --- a/application/symfony/src/Attribut/RequestedEntityAttribut.php +++ b/application/symfony/src/Attribut/RequestedEntityAttribut.php @@ -16,25 +16,16 @@ trait RequestedEntityAttribut */ private $requestedEntity; - /** - * @return RequestedEntityInterface - */ public function getRequestedEntity(): RequestedEntityInterface { return $this->requestedEntity; } - /** - * @param RequestedEntityInterface $requestedEntity - */ public function setRequestedEntity(RequestedEntityInterface $requestedEntity): void { $this->requestedEntity = $requestedEntity; } - /** - * @return bool - */ public function hasRequestedEntity(): bool { return isset($this->requestedEntity); diff --git a/application/symfony/src/Attribut/RequestedEntityAttributInterface.php b/application/symfony/src/Attribut/RequestedEntityAttributInterface.php index 5380628..0c89065 100644 --- a/application/symfony/src/Attribut/RequestedEntityAttributInterface.php +++ b/application/symfony/src/Attribut/RequestedEntityAttributInterface.php @@ -9,18 +9,9 @@ use Infinito\Domain\Request\Entity\RequestedEntityInterface; */ interface RequestedEntityAttributInterface { - /** - * @return bool - */ public function hasRequestedEntity(): bool; - /** - * @return RequestedEntityInterface - */ public function getRequestedEntity(): RequestedEntityInterface; - /** - * @param RequestedEntityInterface $requestedEntity - */ public function setRequestedEntity(RequestedEntityInterface $requestedEntity): void; } diff --git a/application/symfony/src/Attribut/RequestedRightAttribut.php b/application/symfony/src/Attribut/RequestedRightAttribut.php index 7c0c002..f39c43d 100644 --- a/application/symfony/src/Attribut/RequestedRightAttribut.php +++ b/application/symfony/src/Attribut/RequestedRightAttribut.php @@ -16,25 +16,16 @@ trait RequestedRightAttribut */ protected $requestedRight; - /** - * @param RequestedRightInterface $requestedRight - */ public function setRequestedRight(RequestedRightInterface $requestedRight): void { $this->requestedRight = $requestedRight; } - /** - * @return bool - */ public function hasRequestedRight(): bool { return isset($this->requestedRight); } - /** - * @return RequestedRightInterface - */ public function getRequestedRight(): RequestedRightInterface { return $this->requestedRight; diff --git a/application/symfony/src/Attribut/RequestedRightAttributInterface.php b/application/symfony/src/Attribut/RequestedRightAttributInterface.php index ae78bd9..20b7cfc 100644 --- a/application/symfony/src/Attribut/RequestedRightAttributInterface.php +++ b/application/symfony/src/Attribut/RequestedRightAttributInterface.php @@ -9,18 +9,9 @@ use Infinito\Domain\Request\Right\RequestedRightInterface; */ interface RequestedRightAttributInterface { - /** - * @return bool - */ public function hasRequestedRight(): bool; - /** - * @param RequestedRightInterface $requestedRight - */ public function setRequestedRight(RequestedRightInterface $requestedRight): void; - /** - * @return RequestedRightInterface - */ public function getRequestedRight(): RequestedRightInterface; } diff --git a/application/symfony/src/Attribut/SlugAttribut.php b/application/symfony/src/Attribut/SlugAttribut.php index 99d979b..d2187ba 100644 --- a/application/symfony/src/Attribut/SlugAttribut.php +++ b/application/symfony/src/Attribut/SlugAttribut.php @@ -19,8 +19,6 @@ trait SlugAttribut /** * @todo Maybe throw an other Exception here? * - * @param string $slug - * * @throws ValueInvalidException */ public function setSlug(string $slug): void @@ -31,17 +29,11 @@ trait SlugAttribut $this->slug = $slug; } - /** - * @return string|null - */ public function getSlug(): ?string { return $this->slug; } - /** - * @return bool - */ public function hasSlug(): bool { return isset($this->slug); diff --git a/application/symfony/src/Attribut/SlugAttributInterface.php b/application/symfony/src/Attribut/SlugAttributInterface.php index fb28c11..0c8439c 100644 --- a/application/symfony/src/Attribut/SlugAttributInterface.php +++ b/application/symfony/src/Attribut/SlugAttributInterface.php @@ -9,9 +9,6 @@ interface SlugAttributInterface { const SLUG_ATTRIBUT_NAME = 'slug'; - /** - * @param string $slug - */ public function setSlug(string $slug): void; /** @@ -19,8 +16,6 @@ interface SlugAttributInterface * Use instead:. * * @see self::hasSlug() - * - * @return string|null */ public function getSlug(): ?string; diff --git a/application/symfony/src/Attribut/SourceAttribut.php b/application/symfony/src/Attribut/SourceAttribut.php index 37e747e..2c7a686 100644 --- a/application/symfony/src/Attribut/SourceAttribut.php +++ b/application/symfony/src/Attribut/SourceAttribut.php @@ -16,17 +16,11 @@ trait SourceAttribut */ protected $source; - /** - * @return SourceInterface - */ public function getSource(): SourceInterface { return $this->source; } - /** - * @param SourceInterface $source - */ public function setSource(SourceInterface $source): void { $this->source = $source; diff --git a/application/symfony/src/Attribut/SourceAttributInterface.php b/application/symfony/src/Attribut/SourceAttributInterface.php index 3b1f4b6..63199fd 100644 --- a/application/symfony/src/Attribut/SourceAttributInterface.php +++ b/application/symfony/src/Attribut/SourceAttributInterface.php @@ -14,13 +14,7 @@ interface SourceAttributInterface */ const SOURCE_ATTRIBUT_NAME = 'source'; - /** - * @return SourceInterface - */ public function getSource(): SourceInterface; - /** - * @param SourceInterface $source - */ public function setSource(SourceInterface $source): void; } diff --git a/application/symfony/src/Attribut/TextAttribut.php b/application/symfony/src/Attribut/TextAttribut.php index ecb1528..cd9ad9a 100644 --- a/application/symfony/src/Attribut/TextAttribut.php +++ b/application/symfony/src/Attribut/TextAttribut.php @@ -14,17 +14,11 @@ trait TextAttribut */ protected $text; - /** - * @return string - */ public function getText(): string { return $this->text; } - /** - * @param string $text - */ public function setText(string $text): void { $this->text = $text; diff --git a/application/symfony/src/Attribut/TimestampAttribut.php b/application/symfony/src/Attribut/TimestampAttribut.php index 3b08547..1c6009e 100644 --- a/application/symfony/src/Attribut/TimestampAttribut.php +++ b/application/symfony/src/Attribut/TimestampAttribut.php @@ -27,9 +27,6 @@ trait TimestampAttribut $this->timestamp = $timestamp; } - /** - * @return \DateTime - */ public function getTimestamp(): \DateTime { return $this->timestamp; diff --git a/application/symfony/src/Attribut/TimestampAttributInterface.php b/application/symfony/src/Attribut/TimestampAttributInterface.php index 6a25421..d0cf046 100644 --- a/application/symfony/src/Attribut/TimestampAttributInterface.php +++ b/application/symfony/src/Attribut/TimestampAttributInterface.php @@ -17,8 +17,5 @@ interface TimestampAttributInterface */ public function setTimestamp(\DateTime $timestamp): void; - /** - * @return \DateTime - */ public function getTimestamp(): \DateTime; } diff --git a/application/symfony/src/Attribut/UserAttribut.php b/application/symfony/src/Attribut/UserAttribut.php index ecb0e44..2310a9d 100644 --- a/application/symfony/src/Attribut/UserAttribut.php +++ b/application/symfony/src/Attribut/UserAttribut.php @@ -17,25 +17,16 @@ trait UserAttribut */ protected $user; - /** - * @param UserInterface $user - */ public function setUser(UserInterface $user): void { $this->user = $user; } - /** - * @return UserInterface - */ public function getUser(): UserInterface { return $this->user; } - /** - * @return bool - */ public function hasUser(): bool { return isset($this->user); diff --git a/application/symfony/src/Attribut/UserAttributInterface.php b/application/symfony/src/Attribut/UserAttributInterface.php index e8d19c9..b3cd875 100644 --- a/application/symfony/src/Attribut/UserAttributInterface.php +++ b/application/symfony/src/Attribut/UserAttributInterface.php @@ -14,14 +14,8 @@ interface UserAttributInterface */ public const USER_ATTRIBUT_NAME = 'user'; - /** - * @param UserInterface $user - */ public function setUser(UserInterface $user): void; - /** - * @return UserInterface - */ public function getUser(): UserInterface; /** diff --git a/application/symfony/src/Attribut/VersionAttribut.php b/application/symfony/src/Attribut/VersionAttribut.php index cbbe520..9028324 100644 --- a/application/symfony/src/Attribut/VersionAttribut.php +++ b/application/symfony/src/Attribut/VersionAttribut.php @@ -14,17 +14,11 @@ trait VersionAttribut */ protected $version; - /** - * @param int $version - */ public function setVersion(int $version): void { $this->version = $version; } - /** - * @return int - */ public function getVersion(): int { return $this->version; diff --git a/application/symfony/src/Attribut/VersionAttributInterface.php b/application/symfony/src/Attribut/VersionAttributInterface.php index 753bab5..a50bcfc 100644 --- a/application/symfony/src/Attribut/VersionAttributInterface.php +++ b/application/symfony/src/Attribut/VersionAttributInterface.php @@ -19,15 +19,11 @@ interface VersionAttributInterface /** * Returns the revision version of the entity. - * - * @return int */ public function getVersion(): int; /** * Sets the revision version of the entity. - * - * @param int $version */ public function setVersion(int $version): void; } diff --git a/application/symfony/src/Controller/API/Rest/LayerController.php b/application/symfony/src/Controller/API/Rest/LayerController.php index 7e748b7..781becc 100644 --- a/application/symfony/src/Controller/API/Rest/LayerController.php +++ b/application/symfony/src/Controller/API/Rest/LayerController.php @@ -2,14 +2,14 @@ namespace Infinito\Controller\API\Rest; +use Infinito\Attribut\ClassAttributInterface; +use Infinito\Controller\API\AbstractAPIController; +use Infinito\DBAL\Types\ActionType; +use Infinito\Domain\Core\CoreServiceInterface; +use Infinito\Domain\Request\Action\RequestedActionServiceInterface; +use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Annotation\Route; -use Symfony\Component\HttpFoundation\Request; -use Infinito\Controller\API\AbstractAPIController; -use Infinito\Domain\Request\Action\RequestedActionServiceInterface; -use Infinito\Domain\Core\CoreServiceInterface; -use Infinito\DBAL\Types\ActionType; -use Infinito\Attribut\ClassAttributInterface; /** * @author kevinfrantz diff --git a/application/symfony/src/Controller/DefaultController.php b/application/symfony/src/Controller/DefaultController.php index e28a770..0273c2a 100644 --- a/application/symfony/src/Controller/DefaultController.php +++ b/application/symfony/src/Controller/DefaultController.php @@ -2,11 +2,11 @@ namespace Infinito\Controller; -use Symfony\Component\Routing\Annotation\Route; -use Symfony\Component\HttpFoundation\Response; -use Infinito\Domain\Fixture\FixtureSource\HomepageFixtureSource; use Infinito\DBAL\Types\Meta\Right\LayerType; use Infinito\DBAL\Types\RESTResponseType; +use Infinito\Domain\Fixture\FixtureSource\HomepageFixtureSource; +use Symfony\Component\HttpFoundation\Response; +use Symfony\Component\Routing\Annotation\Route; /** * This controller offers the standart routes for the template. diff --git a/application/symfony/src/Controller/SPAController.php b/application/symfony/src/Controller/SPAController.php index a9e0ba9..eefce4b 100644 --- a/application/symfony/src/Controller/SPAController.php +++ b/application/symfony/src/Controller/SPAController.php @@ -2,9 +2,9 @@ namespace Infinito\Controller; -use Symfony\Component\HttpFoundation\Response; use Symfony\Component\HttpFoundation\RedirectResponse; use Symfony\Component\HttpFoundation\Request; +use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Annotation\Route; /** diff --git a/application/symfony/src/DataFixtures/DummyFixtures.php b/application/symfony/src/DataFixtures/DummyFixtures.php index d7f435c..7526c17 100644 --- a/application/symfony/src/DataFixtures/DummyFixtures.php +++ b/application/symfony/src/DataFixtures/DummyFixtures.php @@ -4,11 +4,11 @@ namespace Infinito\DataFixtures; use Doctrine\Bundle\FixturesBundle\Fixture; use Doctrine\Common\Persistence\ObjectManager; -use Infinito\Entity\User; use FOS\UserBundle\Doctrine\UserManager; +use Infinito\Entity\User; use Infinito\Entity\UserInterface; -use Symfony\Component\DependencyInjection\ContainerInterface; use Symfony\Component\DependencyInjection\ContainerAwareInterface; +use Symfony\Component\DependencyInjection\ContainerInterface; /** * Never execute this fixture on a livesystem! diff --git a/application/symfony/src/Domain/Action/AbstractAction.php b/application/symfony/src/Domain/Action/AbstractAction.php index d030191..17bddf6 100644 --- a/application/symfony/src/Domain/Action/AbstractAction.php +++ b/application/symfony/src/Domain/Action/AbstractAction.php @@ -3,22 +3,16 @@ namespace Infinito\Domain\Action; use Infinito\Entity\EntityInterface; -use Infinito\Exception\Validation\FormInvalidException; use Infinito\Exception\Permission\NoPermissionException; +use Infinito\Exception\Validation\FormInvalidException; /** * @author kevinfrantz */ abstract class AbstractAction extends AbstractActionConstructor implements ActionInterface { - /** - * @return bool - */ abstract protected function isSecure(): bool; - /** - * @return bool - */ abstract protected function isValid(): bool; /** diff --git a/application/symfony/src/Domain/Action/AbstractActionConstructor.php b/application/symfony/src/Domain/Action/AbstractActionConstructor.php index 9c3ca74..4a944ed 100644 --- a/application/symfony/src/Domain/Action/AbstractActionConstructor.php +++ b/application/symfony/src/Domain/Action/AbstractActionConstructor.php @@ -15,9 +15,6 @@ abstract class AbstractActionConstructor */ protected $actionService; - /** - * @param ActionDependenciesDAOServiceInterface $actionService - */ final public function __construct(ActionDependenciesDAOServiceInterface $actionService) { $this->actionService = $actionService; diff --git a/application/symfony/src/Domain/Action/ActionDependenciesDAOService.php b/application/symfony/src/Domain/Action/ActionDependenciesDAOService.php index 86fe2eb..9cb7b64 100644 --- a/application/symfony/src/Domain/Action/ActionDependenciesDAOService.php +++ b/application/symfony/src/Domain/Action/ActionDependenciesDAOService.php @@ -2,16 +2,16 @@ namespace Infinito\Domain\Action; -use Infinito\Domain\Request\Action\RequestedActionInterface; -use Infinito\Domain\Repository\LayerRepositoryFactoryServiceInterface; -use Symfony\Component\HttpFoundation\Request; -use Symfony\Component\HttpFoundation\RequestStack; -use Infinito\Repository\RepositoryInterface; -use Symfony\Component\Form\FormBuilderInterface; use Doctrine\ORM\EntityManagerInterface; use Infinito\Domain\Form\RequestedActionFormBuilderServiceInterface; +use Infinito\Domain\Repository\LayerRepositoryFactoryServiceInterface; +use Infinito\Domain\Request\Action\RequestedActionInterface; use Infinito\Domain\Request\Action\RequestedActionServiceInterface; use Infinito\Domain\Secure\SecureRequestedRightCheckerServiceInterface; +use Infinito\Repository\RepositoryInterface; +use Symfony\Component\Form\FormBuilderInterface; +use Symfony\Component\HttpFoundation\Request; +use Symfony\Component\HttpFoundation\RequestStack; /** * @author kevinfrantz @@ -81,9 +81,6 @@ final class ActionDependenciesDAOService implements ActionDependenciesDAOService return $this->secureRequestedRightCheckerService->check($this->requestedAction); } - /** - * @return FormBuilderInterface - */ public function getCurrentFormBuilder(): FormBuilderInterface { return $this->requestedActionFormBuilderService->createByService(); diff --git a/application/symfony/src/Domain/Action/ActionDependenciesDAOServiceInterface.php b/application/symfony/src/Domain/Action/ActionDependenciesDAOServiceInterface.php index b2b5b1c..83d2626 100644 --- a/application/symfony/src/Domain/Action/ActionDependenciesDAOServiceInterface.php +++ b/application/symfony/src/Domain/Action/ActionDependenciesDAOServiceInterface.php @@ -2,11 +2,11 @@ namespace Infinito\Domain\Action; +use Doctrine\ORM\EntityManagerInterface; use Infinito\Domain\Request\Action\RequestedActionInterface; -use Symfony\Component\HttpFoundation\Request; use Infinito\Repository\RepositoryInterface; use Symfony\Component\Form\FormBuilderInterface; -use Doctrine\ORM\EntityManagerInterface; +use Symfony\Component\HttpFoundation\Request; /** * This interface offers all classes for managing an Action. @@ -25,23 +25,11 @@ interface ActionDependenciesDAOServiceInterface */ public function isRequestedActionSecure(): bool; - /** - * @return Request - */ public function getRequest(): Request; - /** - * @return RepositoryInterface - */ public function getRepository(): RepositoryInterface; - /** - * @return FormBuilderInterface - */ public function getCurrentFormBuilder(): FormBuilderInterface; - /** - * @return EntityManagerInterface - */ public function getEntityManager(): EntityManagerInterface; } diff --git a/application/symfony/src/Domain/Action/ActionFactoryService.php b/application/symfony/src/Domain/Action/ActionFactoryService.php index ed19fda..ad99c08 100644 --- a/application/symfony/src/Domain/Action/ActionFactoryService.php +++ b/application/symfony/src/Domain/Action/ActionFactoryService.php @@ -19,41 +19,21 @@ final class ActionFactoryService extends AbstractActionConstructor implements Ac */ private const CLASS_SUFFIX = 'Action'; - /** - * @param string $name - * - * @return string - */ private function ucfirst(string $name): string { return ucfirst(strtolower($name)); } - /** - * @param string $action - * @param string $layer - * - * @return string - */ private function getClassName(string $action, string $layer = ''): string { return $this->ucfirst($action).$this->ucfirst($layer).self::CLASS_SUFFIX; } - /** - * @param string $layer - * @param string $action - * - * @return string - */ private function getActionNamespace(string $action, string $layer = ''): string { return self::BASE_NAMESPACE.$this->ucfirst($action).'\\'.$this->getClassName($action, $layer); } - /** - * @return string - */ private function generateFullClassName(): string { $requestedAction = $this->actionService->getRequestedAction(); diff --git a/application/symfony/src/Domain/Action/ActionFactoryServiceInterface.php b/application/symfony/src/Domain/Action/ActionFactoryServiceInterface.php index cd7b76c..32c8b2c 100644 --- a/application/symfony/src/Domain/Action/ActionFactoryServiceInterface.php +++ b/application/symfony/src/Domain/Action/ActionFactoryServiceInterface.php @@ -9,8 +9,5 @@ namespace Infinito\Domain\Action; */ interface ActionFactoryServiceInterface { - /** - * @return ActionInterface - */ public function create(): ActionInterface; } diff --git a/application/symfony/src/Domain/Action/ActionHandlerService.php b/application/symfony/src/Domain/Action/ActionHandlerService.php index 42a90c6..55d959e 100644 --- a/application/symfony/src/Domain/Action/ActionHandlerService.php +++ b/application/symfony/src/Domain/Action/ActionHandlerService.php @@ -14,9 +14,6 @@ final class ActionHandlerService implements ActionHandlerServiceInterface */ private $actionFactoryService; - /** - * @param ActionFactoryServiceInterface $actionFactoryService - */ public function __construct(ActionFactoryServiceInterface $actionFactoryService) { $this->actionFactoryService = $actionFactoryService; diff --git a/application/symfony/src/Domain/Action/ActionHandlerServiceInterface.php b/application/symfony/src/Domain/Action/ActionHandlerServiceInterface.php index c1fd798..a9fbb67 100644 --- a/application/symfony/src/Domain/Action/ActionHandlerServiceInterface.php +++ b/application/symfony/src/Domain/Action/ActionHandlerServiceInterface.php @@ -13,8 +13,6 @@ interface ActionHandlerServiceInterface * Process an action an returns the results. * * @todo Implement that also results can be returned - * - * @return EntityInterface|null */ public function handle(): ?EntityInterface; } diff --git a/application/symfony/src/Domain/Action/ActionInterface.php b/application/symfony/src/Domain/Action/ActionInterface.php index 9a365ac..e511eb6 100644 --- a/application/symfony/src/Domain/Action/ActionInterface.php +++ b/application/symfony/src/Domain/Action/ActionInterface.php @@ -13,8 +13,6 @@ interface ActionInterface * Executes the action. * * @todo Implement that also results can be returned - * - * @return EntityInterface|null */ public function execute(): ?EntityInterface; } diff --git a/application/symfony/src/Domain/Action/Create/CreateSourceAction.php b/application/symfony/src/Domain/Action/Create/CreateSourceAction.php index 75088d4..d752307 100644 --- a/application/symfony/src/Domain/Action/Create/CreateSourceAction.php +++ b/application/symfony/src/Domain/Action/Create/CreateSourceAction.php @@ -2,10 +2,10 @@ namespace Infinito\Domain\Action\Create; +use Infinito\Domain\Parameter\Parameter\ClassParameter; use Infinito\Domain\Source\SourceClassInformationService; use Infinito\Entity\Source\AbstractSource; use Symfony\Component\Form\Form; -use Infinito\Domain\Parameter\Parameter\ClassParameter; /** * @author kevinfrantz diff --git a/application/symfony/src/Domain/Core/CoreService.php b/application/symfony/src/Domain/Core/CoreService.php index 1d16df3..0498428 100644 --- a/application/symfony/src/Domain/Core/CoreService.php +++ b/application/symfony/src/Domain/Core/CoreService.php @@ -4,8 +4,8 @@ namespace Infinito\Domain\Core; use FOS\RestBundle\View\View; use Infinito\Attribut\ActionTypeAttribut; -use Infinito\Domain\View\ViewServiceInterface; use Infinito\Domain\Process\ProcessServiceInterface; +use Infinito\Domain\View\ViewServiceInterface; /** * @author kevinfrantz @@ -27,10 +27,6 @@ final class CoreService implements CoreServiceInterface */ private $processService; - /** - * @param ViewServiceInterface $viewBuilder - * @param ProcessServiceInterface $processService - */ public function __construct(ViewServiceInterface $viewBuilder, ProcessServiceInterface $processService) { $this->viewService = $viewBuilder; diff --git a/application/symfony/src/Domain/Core/CoreServiceInterface.php b/application/symfony/src/Domain/Core/CoreServiceInterface.php index bff64e4..30b3fae 100644 --- a/application/symfony/src/Domain/Core/CoreServiceInterface.php +++ b/application/symfony/src/Domain/Core/CoreServiceInterface.php @@ -14,8 +14,6 @@ interface CoreServiceInterface extends ActionTypeAttributInterface { /** * Process through the layers. - * - * @return View */ public function process(): View; } diff --git a/application/symfony/src/Domain/DataAccess/ActionsDAOInterface.php b/application/symfony/src/Domain/DataAccess/ActionsDAOInterface.php index f61164a..89b8df5 100644 --- a/application/symfony/src/Domain/DataAccess/ActionsDAOInterface.php +++ b/application/symfony/src/Domain/DataAccess/ActionsDAOInterface.php @@ -10,21 +10,14 @@ use Doctrine\Common\Collections\Collection; interface ActionsDAOInterface { /** - * @param string $actionType - * * @return mixed The needed data */ public function getData(string $actionType); /** - * @param string $actionType - * * @return bool True if the data is set */ public function isDataStored(string $actionType): bool; - /** - * @return Collection - */ public function getAllStoredData(): Collection; } diff --git a/application/symfony/src/Domain/DataAccess/ActionsResultsDAOService.php b/application/symfony/src/Domain/DataAccess/ActionsResultsDAOService.php index cd4d28c..77ec5f9 100644 --- a/application/symfony/src/Domain/DataAccess/ActionsResultsDAOService.php +++ b/application/symfony/src/Domain/DataAccess/ActionsResultsDAOService.php @@ -24,11 +24,9 @@ final class ActionsResultsDAOService extends AbstractActionsDAO implements Actio private $processedData; /** - * @param string $actionType * @param EntityInterface|ResultInterface|null $data * * @return bool True if the data is valid - * @return bool */ private function isValidActionData(string $actionType, $data): bool { @@ -47,8 +45,6 @@ final class ActionsResultsDAOService extends AbstractActionsDAO implements Actio } /** - * @param string $actionType - * * @throws InvalidChoiceTypeException */ private function throwNoValidActionTypeException(string $actionType): void @@ -56,19 +52,11 @@ final class ActionsResultsDAOService extends AbstractActionsDAO implements Actio throw new InvalidChoiceTypeException("The action type <<$actionType>> is not defined and not valid!"); } - /** - * @param string $actionType - * - * @return bool - */ private function isValidActionType(string $actionType): bool { return in_array($actionType, ActionType::getValues()); } - /** - * @param string $actionType - */ private function validateActionType(string $actionType): void { if (!$this->isValidActionType($actionType)) { @@ -79,8 +67,7 @@ final class ActionsResultsDAOService extends AbstractActionsDAO implements Actio /** * This function describes which data is expected. * - * @param string $actionType - * @param mixed $data + * @param mixed $data * * @throws ValueInvalidException For false a exception is thrown */ @@ -92,8 +79,6 @@ final class ActionsResultsDAOService extends AbstractActionsDAO implements Actio } /** - * @param string $actionType - * * @throws ContainsElementException */ private function validateNotSet(string $actionType): void @@ -104,8 +89,6 @@ final class ActionsResultsDAOService extends AbstractActionsDAO implements Actio } /** - * @param string $actionType - * * @throws NotSetElementException */ private function validateSet(string $actionType): void diff --git a/application/symfony/src/Domain/DataAccess/ActionsResultsDAOServiceInterface.php b/application/symfony/src/Domain/DataAccess/ActionsResultsDAOServiceInterface.php index 574b35a..5cc272c 100644 --- a/application/symfony/src/Domain/DataAccess/ActionsResultsDAOServiceInterface.php +++ b/application/symfony/src/Domain/DataAccess/ActionsResultsDAOServiceInterface.php @@ -8,8 +8,7 @@ namespace Infinito\Domain\DataAccess; interface ActionsResultsDAOServiceInterface extends ActionsDAOInterface { /** - * @param string $actionType - * @param mixed $data The data which a Template needs to be handled + * @param mixed $data The data which a Template needs to be handled */ public function setData(string $actionType, $data): void; } diff --git a/application/symfony/src/Domain/DataAccess/ActionsViewsDAOService.php b/application/symfony/src/Domain/DataAccess/ActionsViewsDAOService.php index 61a1801..74d9124 100644 --- a/application/symfony/src/Domain/DataAccess/ActionsViewsDAOService.php +++ b/application/symfony/src/Domain/DataAccess/ActionsViewsDAOService.php @@ -2,10 +2,10 @@ namespace Infinito\Domain\DataAccess; -use Doctrine\Common\Collections\Collection; use Doctrine\Common\Collections\ArrayCollection; -use Infinito\Domain\Form\RequestedActionFormBuilderServiceInterface; +use Doctrine\Common\Collections\Collection; use Infinito\DBAL\Types\ActionType; +use Infinito\Domain\Form\RequestedActionFormBuilderServiceInterface; /** * @author kevinfrantz @@ -22,9 +22,6 @@ final class ActionsViewsDAOService extends AbstractActionsDAO implements Actions */ private $requestedActionFormBuilderService; - /** - * @param ActionsResultsDAOServiceInterface $actionsResultsDAO - */ public function __construct(ActionsResultsDAOServiceInterface $actionsResultsDAO, RequestedActionFormBuilderServiceInterface $requestedActionFormBuilderService) { $this->actionsResultsDAO = $actionsResultsDAO; diff --git a/application/symfony/src/Domain/Dom/EntityDomService.php b/application/symfony/src/Domain/Dom/EntityDomService.php index a12406d..bbff260 100644 --- a/application/symfony/src/Domain/Dom/EntityDomService.php +++ b/application/symfony/src/Domain/Dom/EntityDomService.php @@ -2,14 +2,14 @@ namespace Infinito\Domain\Dom; -use Infinito\Entity\EntityInterface; use Doctrine\Common\Collections\Collection; -use Infinito\Domain\Request\Entity\RequestedEntityServiceInterface; +use FOS\UserBundle\Model\UserInterface; use Infinito\DBAL\Types\Meta\Right\LayerType; use Infinito\Domain\Layer\LayerInterfaceMap; -use FOS\UserBundle\Model\UserInterface; -use Infinito\Exception\Core\NotCorrectInstanceCoreException; use Infinito\Domain\Method\MethodPrefixType; +use Infinito\Domain\Request\Entity\RequestedEntityServiceInterface; +use Infinito\Entity\EntityInterface; +use Infinito\Exception\Core\NotCorrectInstanceCoreException; /** * This class is not ready and not tested! @@ -47,9 +47,6 @@ final class EntityDomService implements EntityDomServiceInterface */ private $domDocument; - /** - * @param RequestedEntityServiceInterface $requestedEntity - */ public function __construct(RequestedEntityServiceInterface $requestedEntity) { $this->requestedEntity = $requestedEntity; @@ -65,19 +62,12 @@ final class EntityDomService implements EntityDomServiceInterface $this->domDocument = new \DOMDocument(); } - /** - * @param string $method - * - * @return bool - */ private function methodExist(string $method): bool { return $this->entityReflectionClass->hasMethod($method); } /** - * @param string $method - * * @return mixed */ private function getMethodResult(string $method) @@ -86,8 +76,6 @@ final class EntityDomService implements EntityDomServiceInterface } /** - * @param string $propertyName - * * @return mixed */ private function getPropertyValue(string $propertyName) @@ -104,7 +92,6 @@ final class EntityDomService implements EntityDomServiceInterface /** * @param mixed|EntityInterface $value - * @param \DOMElement $domElement */ private function mappValue($value, \DOMElement $domElement): void { @@ -129,11 +116,6 @@ final class EntityDomService implements EntityDomServiceInterface return; } - /** - * @param \DOMElement $domElement - * @param string $layer - * @param EntityInterface $entity - */ private function setLayerDomElement(\DOMElement $domElement, string $layer, EntityInterface $entity): void { $domElement->setAttribute('layer', $layer); @@ -141,31 +123,17 @@ final class EntityDomService implements EntityDomServiceInterface $domElement->setAttribute('name', LayerType::getReadableValue($layer)); } - /** - * @param \DomElement $domElement - */ private function setUserDomElement(\DomElement $domElement, \Infinito\Entity\UserInterface $user): void { $domElement->setAttribute('value', $user->getId()); $domElement->setAttribute('name', 'user'); } - /** - * @param string $method - * @param string $propertyName - * - * @return string - */ private function getMethodName(string $method, string $propertyName): string { return $method.ucfirst($propertyName); } - /** - * @param string $propertyName - * - * @return bool - */ private function isPropertyAccessible(string $propertyName): bool { $getMethod = $this->getMethodName(MethodPrefixType::GET, $propertyName); diff --git a/application/symfony/src/Domain/Dom/EntityDomServiceInterface.php b/application/symfony/src/Domain/Dom/EntityDomServiceInterface.php index 8e99c4d..3820e7b 100644 --- a/application/symfony/src/Domain/Dom/EntityDomServiceInterface.php +++ b/application/symfony/src/Domain/Dom/EntityDomServiceInterface.php @@ -11,8 +11,5 @@ namespace Infinito\Domain\Dom; */ interface EntityDomServiceInterface { - /** - * @return \DOMDocument - */ public function getDomDocument(): \DOMDocument; } diff --git a/application/symfony/src/Domain/Fixture/EntityTemplateFactory.php b/application/symfony/src/Domain/Fixture/EntityTemplateFactory.php index eb3d253..7945f95 100644 --- a/application/symfony/src/Domain/Fixture/EntityTemplateFactory.php +++ b/application/symfony/src/Domain/Fixture/EntityTemplateFactory.php @@ -2,31 +2,24 @@ namespace Infinito\Domain\Fixture; -use Infinito\Entity\Meta\Right; -use Infinito\DBAL\Types\Meta\Right\LayerType; use Infinito\DBAL\Types\ActionType; -use Infinito\Entity\Source\SourceInterface; -use Infinito\Entity\Meta\RightInterface; +use Infinito\DBAL\Types\Meta\Right\LayerType; use Infinito\Entity\Meta\LawInterface; +use Infinito\Entity\Meta\Right; +use Infinito\Entity\Meta\RightInterface; +use Infinito\Entity\Source\SourceInterface; /** * @author kevinfrantz */ final class EntityTemplateFactory extends Right { - /** - * @param LawInterface $law - * @param RightInterface $right - */ private static function addRightToLaw(LawInterface $law, RightInterface $right) { $right->setLaw($law); $law->getRights()->add($right); } - /** - * @param SourceInterface $source - */ public static function createStandartPublicRights(SourceInterface $source): void { $law = $source->getLaw(); diff --git a/application/symfony/src/Domain/Fixture/FixtureSource/AbstractFixtureSource.php b/application/symfony/src/Domain/Fixture/FixtureSource/AbstractFixtureSource.php index 3e96b1c..c0ac25a 100644 --- a/application/symfony/src/Domain/Fixture/FixtureSource/AbstractFixtureSource.php +++ b/application/symfony/src/Domain/Fixture/FixtureSource/AbstractFixtureSource.php @@ -24,9 +24,6 @@ abstract class AbstractFixtureSource implements FixtureSourceInterface return $this->name ?? self::getSlug(); } - /** - * @return string - */ public static function getSlug(): string { $className = get_called_class(); diff --git a/application/symfony/src/Domain/Fixture/FixtureSource/FixtureSourceInterface.php b/application/symfony/src/Domain/Fixture/FixtureSource/FixtureSourceInterface.php index dbda26d..2782d03 100644 --- a/application/symfony/src/Domain/Fixture/FixtureSource/FixtureSourceInterface.php +++ b/application/symfony/src/Domain/Fixture/FixtureSource/FixtureSourceInterface.php @@ -2,8 +2,8 @@ namespace Infinito\Domain\Fixture\FixtureSource; -use Infinito\Entity\Source\SourceInterface; use Infinito\Attribut\SlugAttributInterface; +use Infinito\Entity\Source\SourceInterface; /** * This interface allows to save the configuration values of an fixture in a class. diff --git a/application/symfony/src/Domain/Fixture/FixtureSource/GuestUserFixtureSource.php b/application/symfony/src/Domain/Fixture/FixtureSource/GuestUserFixtureSource.php index f7e51e1..e2e011c 100644 --- a/application/symfony/src/Domain/Fixture/FixtureSource/GuestUserFixtureSource.php +++ b/application/symfony/src/Domain/Fixture/FixtureSource/GuestUserFixtureSource.php @@ -2,9 +2,9 @@ namespace Infinito\Domain\Fixture\FixtureSource; -use Infinito\Entity\Source\SourceInterface; -use Infinito\Entity\Source\Complex\UserSource; use Infinito\Domain\Fixture\EntityTemplateFactory; +use Infinito\Entity\Source\Complex\UserSource; +use Infinito\Entity\Source\SourceInterface; /** * This class containes the guest user. @@ -32,9 +32,6 @@ final class GuestUserFixtureSource extends AbstractFixtureSource return $userSource; } - /** - * @return string - */ public static function getIcon(): string { return 'fas fa-user'; diff --git a/application/symfony/src/Domain/Fixture/FixtureSource/HelpFixtureSource.php b/application/symfony/src/Domain/Fixture/FixtureSource/HelpFixtureSource.php index a1ff816..6c8d4a9 100644 --- a/application/symfony/src/Domain/Fixture/FixtureSource/HelpFixtureSource.php +++ b/application/symfony/src/Domain/Fixture/FixtureSource/HelpFixtureSource.php @@ -2,9 +2,9 @@ namespace Infinito\Domain\Fixture\FixtureSource; -use Infinito\Entity\Source\SourceInterface; -use Infinito\Entity\Source\Primitive\Text\TextSource; use Infinito\Domain\Fixture\EntityTemplateFactory; +use Infinito\Entity\Source\Primitive\Text\TextSource; +use Infinito\Entity\Source\SourceInterface; /** * @author kevinfrantz @@ -26,9 +26,6 @@ final class HelpFixtureSource extends AbstractFixtureSource return $helpSource; } - /** - * @return string - */ public static function getIcon(): string { return 'fas fa-question'; diff --git a/application/symfony/src/Domain/Fixture/FixtureSource/HomepageFixtureSource.php b/application/symfony/src/Domain/Fixture/FixtureSource/HomepageFixtureSource.php index 6b106dc..994485d 100644 --- a/application/symfony/src/Domain/Fixture/FixtureSource/HomepageFixtureSource.php +++ b/application/symfony/src/Domain/Fixture/FixtureSource/HomepageFixtureSource.php @@ -2,9 +2,9 @@ namespace Infinito\Domain\Fixture\FixtureSource; -use Infinito\Entity\Source\SourceInterface; -use Infinito\Entity\Source\Primitive\Text\TextSource; use Infinito\Domain\Fixture\EntityTemplateFactory; +use Infinito\Entity\Source\Primitive\Text\TextSource; +use Infinito\Entity\Source\SourceInterface; /** * @author kevinfrantz diff --git a/application/symfony/src/Domain/Fixture/FixtureSource/ImpressumFixtureSource.php b/application/symfony/src/Domain/Fixture/FixtureSource/ImpressumFixtureSource.php index a6bd062..b520c47 100644 --- a/application/symfony/src/Domain/Fixture/FixtureSource/ImpressumFixtureSource.php +++ b/application/symfony/src/Domain/Fixture/FixtureSource/ImpressumFixtureSource.php @@ -2,9 +2,9 @@ namespace Infinito\Domain\Fixture\FixtureSource; -use Infinito\Entity\Source\SourceInterface; -use Infinito\Entity\Source\Primitive\Text\TextSource; use Infinito\Domain\Fixture\EntityTemplateFactory; +use Infinito\Entity\Source\Primitive\Text\TextSource; +use Infinito\Entity\Source\SourceInterface; /** * @author kevinfrantz @@ -26,9 +26,6 @@ final class ImpressumFixtureSource extends AbstractFixtureSource return $impressumSource; } - /** - * @return string - */ public static function getIcon(): string { return 'fas fa-address-card'; diff --git a/application/symfony/src/Domain/Fixture/FixtureSource/InformationFixtureSource.php b/application/symfony/src/Domain/Fixture/FixtureSource/InformationFixtureSource.php index c49bd76..1930541 100644 --- a/application/symfony/src/Domain/Fixture/FixtureSource/InformationFixtureSource.php +++ b/application/symfony/src/Domain/Fixture/FixtureSource/InformationFixtureSource.php @@ -2,9 +2,9 @@ namespace Infinito\Domain\Fixture\FixtureSource; -use Infinito\Entity\Source\SourceInterface; -use Infinito\Entity\Source\Primitive\Text\TextSource; use Infinito\Domain\Fixture\EntityTemplateFactory; +use Infinito\Entity\Source\Primitive\Text\TextSource; +use Infinito\Entity\Source\SourceInterface; /** * @author kevinfrantz @@ -26,9 +26,6 @@ final class InformationFixtureSource extends AbstractFixtureSource return $informationSource; } - /** - * @return string - */ public static function getIcon(): string { return 'fas fa-info'; diff --git a/application/symfony/src/Domain/Fixture/FixtureSourceFactory.php b/application/symfony/src/Domain/Fixture/FixtureSourceFactory.php index 97fbc74..a3d1662 100644 --- a/application/symfony/src/Domain/Fixture/FixtureSourceFactory.php +++ b/application/symfony/src/Domain/Fixture/FixtureSourceFactory.php @@ -57,9 +57,6 @@ final class FixtureSourceFactory implements FixtureSourceFactoryInterface return $objects; } - /** - * @return array - */ public static function getAllFixtureSources(): array { $unfilteredClasses = self::getAllClassesInSourceFixtureNamespace(); diff --git a/application/symfony/src/Domain/Form/RequestedActionFormBuilder.php b/application/symfony/src/Domain/Form/RequestedActionFormBuilder.php index c5844f1..3de0c82 100644 --- a/application/symfony/src/Domain/Form/RequestedActionFormBuilder.php +++ b/application/symfony/src/Domain/Form/RequestedActionFormBuilder.php @@ -2,10 +2,10 @@ namespace Infinito\Domain\Form; -use Symfony\Component\Form\FormBuilderInterface; use Infinito\Domain\Request\Action\RequestedActionInterface; -use Symfony\Component\Form\FormFactoryInterface; use Infinito\Exception\Attribut\UndefinedAttributException; +use Symfony\Component\Form\FormBuilderInterface; +use Symfony\Component\Form\FormFactoryInterface; /** * @author kevinfrantz @@ -23,8 +23,6 @@ class RequestedActionFormBuilder implements RequestedActionFormBuilderInterface private $formClassNameService; /** - * @param RequestedActionInterface $requestedAction - * * @throws UndefinedAttributException If the requested action can't be processed */ private function validateRequestedAction(RequestedActionInterface $requestedAction): void @@ -34,21 +32,12 @@ class RequestedActionFormBuilder implements RequestedActionFormBuilderInterface } } - /** - * @param FormFactoryInterface $formFactory - * @param FormClassNameServiceInterface $formClassNameService - */ public function __construct(FormFactoryInterface $formFactory, FormClassNameServiceInterface $formClassNameService) { $this->formFactory = $formFactory; $this->formClassNameService = $formClassNameService; } - /** - * @param RequestedActionInterface $requestedAction - * - * @return FormBuilderInterface - */ public function create(RequestedActionInterface $requestedAction): FormBuilderInterface { $this->validateRequestedAction($requestedAction); diff --git a/application/symfony/src/Domain/Form/RequestedActionFormBuilderInterface.php b/application/symfony/src/Domain/Form/RequestedActionFormBuilderInterface.php index 785a217..08534ff 100644 --- a/application/symfony/src/Domain/Form/RequestedActionFormBuilderInterface.php +++ b/application/symfony/src/Domain/Form/RequestedActionFormBuilderInterface.php @@ -2,8 +2,8 @@ namespace Infinito\Domain\Form; -use Symfony\Component\Form\FormBuilderInterface; use Infinito\Domain\Request\Action\RequestedActionInterface; +use Symfony\Component\Form\FormBuilderInterface; /** * Allowes to create an form which fits to an entity. @@ -12,10 +12,5 @@ use Infinito\Domain\Request\Action\RequestedActionInterface; */ interface RequestedActionFormBuilderInterface { - /** - * @param RequestedActionInterface $requestedAction - * - * @return FormBuilderInterface - */ public function create(RequestedActionInterface $requestedAction): FormBuilderInterface; } diff --git a/application/symfony/src/Domain/Form/RequestedActionFormBuilderService.php b/application/symfony/src/Domain/Form/RequestedActionFormBuilderService.php index ab6b958..df27b09 100644 --- a/application/symfony/src/Domain/Form/RequestedActionFormBuilderService.php +++ b/application/symfony/src/Domain/Form/RequestedActionFormBuilderService.php @@ -2,8 +2,8 @@ namespace Infinito\Domain\Form; -use Symfony\Component\Form\FormBuilderInterface; use Infinito\Domain\Request\Action\RequestedActionServiceInterface; +use Symfony\Component\Form\FormBuilderInterface; use Symfony\Component\Form\FormFactoryInterface; /** diff --git a/application/symfony/src/Domain/Law/LawPermissionChecker.php b/application/symfony/src/Domain/Law/LawPermissionChecker.php index 5cece8c..b3eaff8 100644 --- a/application/symfony/src/Domain/Law/LawPermissionChecker.php +++ b/application/symfony/src/Domain/Law/LawPermissionChecker.php @@ -2,15 +2,15 @@ namespace Infinito\Domain\Law; -use PhpCollection\CollectionInterface; use Doctrine\Common\Collections\ArrayCollection; -use Infinito\Entity\Meta\RightInterface; use Doctrine\Common\Collections\Collection; -use Infinito\Entity\Meta\LawInterface; -use Infinito\Domain\Right\RightChecker; -use Infinito\Entity\Source\SourceInterface; -use Infinito\Domain\Source\SourceMemberInformation; use Infinito\Domain\Method\MethodPrefixType; +use Infinito\Domain\Right\RightChecker; +use Infinito\Domain\Source\SourceMemberInformation; +use Infinito\Entity\Meta\LawInterface; +use Infinito\Entity\Meta\RightInterface; +use Infinito\Entity\Source\SourceInterface; +use PhpCollection\CollectionInterface; /** * @todo Implement checking by operation sources @@ -27,8 +27,6 @@ final class LawPermissionChecker implements LawPermissionCheckerInterface /** * @param Collection|RightInterface[] $rights - * @param string $value - * @param string $attribut * * @return Collection|RightInterface[] */ @@ -46,7 +44,6 @@ final class LawPermissionChecker implements LawPermissionCheckerInterface /** * @param Collection|RightInterface[] $rights - * @param string $type * * @return Collection|RightInterface[] */ @@ -56,8 +53,6 @@ final class LawPermissionChecker implements LawPermissionCheckerInterface } /** - * @param RightInterface $right - * * @return bool True if right applies to all */ private function doesRightApplyToAll(RightInterface $right): bool @@ -67,7 +62,6 @@ final class LawPermissionChecker implements LawPermissionCheckerInterface /** * @param Collection|RightInterface[] $rights - * @param RightInterface $requestedRight * * @return Collection|RightInterface[] */ @@ -85,11 +79,6 @@ final class LawPermissionChecker implements LawPermissionCheckerInterface /** * @todo Implement! - * - * @param RightInterface $right - * @param SourceInterface $recieverSource - * - * @return bool */ private function memberExist(RightInterface $right, SourceInterface $recieverSource): bool { @@ -106,7 +95,6 @@ final class LawPermissionChecker implements LawPermissionCheckerInterface /** * @param Collection|RightInterface[] $rights - * @param string $layer * * @return Collection|RightInterface[] */ @@ -139,8 +127,6 @@ final class LawPermissionChecker implements LawPermissionCheckerInterface /** * @param CollectionInterface|RightInterface[] $rights * the rights which exist - * - * @return bool */ private function isGranted(Collection $rights, RightInterface $client): bool { @@ -153,9 +139,6 @@ final class LawPermissionChecker implements LawPermissionCheckerInterface return $rightChecker->isGranted($client->getLayer(), $client->getActionType(), $client->getReciever()); } - /** - * @param LawInterface $law - */ public function __construct(LawInterface $law) { $this->law = $law; diff --git a/application/symfony/src/Domain/Law/LawPermissionCheckerInterface.php b/application/symfony/src/Domain/Law/LawPermissionCheckerInterface.php index 2929fd3..8464136 100644 --- a/application/symfony/src/Domain/Law/LawPermissionCheckerInterface.php +++ b/application/symfony/src/Domain/Law/LawPermissionCheckerInterface.php @@ -13,8 +13,6 @@ interface LawPermissionCheckerInterface { /** * Checks if the client has the right for executing. - * - * @return bool */ public function hasPermission(RightInterface $clientRight): bool; } diff --git a/application/symfony/src/Domain/Layer/LayerActionMap.php b/application/symfony/src/Domain/Layer/LayerActionMap.php index 3ea7cdb..0c930f5 100644 --- a/application/symfony/src/Domain/Layer/LayerActionMap.php +++ b/application/symfony/src/Domain/Layer/LayerActionMap.php @@ -2,8 +2,8 @@ namespace Infinito\Domain\Layer; -use Infinito\DBAL\Types\Meta\Right\LayerType; use Infinito\DBAL\Types\ActionType; +use Infinito\DBAL\Types\Meta\Right\LayerType; use Infinito\Domain\Map\AbstractMap; /** diff --git a/application/symfony/src/Domain/Layer/LayerActionMapInterface.php b/application/symfony/src/Domain/Layer/LayerActionMapInterface.php index dc7c3bb..feb7274 100644 --- a/application/symfony/src/Domain/Layer/LayerActionMapInterface.php +++ b/application/symfony/src/Domain/Layer/LayerActionMapInterface.php @@ -10,15 +10,11 @@ namespace Infinito\Domain\Layer; interface LayerActionMapInterface { /** - * @param string $action - * * @return array|string[] */ public static function getLayers(string $action): array; /** - * @param string $layer - * * @return array|string[] */ public static function getActions(string $layer): array; diff --git a/application/symfony/src/Domain/Layer/LayerClassMap.php b/application/symfony/src/Domain/Layer/LayerClassMap.php index f50d1eb..734df19 100644 --- a/application/symfony/src/Domain/Layer/LayerClassMap.php +++ b/application/symfony/src/Domain/Layer/LayerClassMap.php @@ -3,13 +3,13 @@ namespace Infinito\Domain\Layer; use Infinito\DBAL\Types\Meta\Right\LayerType; -use Infinito\Entity\Source\AbstractSource; -use Infinito\Exception\Collection\NotSetElementException; use Infinito\Entity\Meta\Law; -use Infinito\Entity\Meta\Right; -use Infinito\Entity\Meta\Relation\Parent\HeredityRelation; use Infinito\Entity\Meta\Relation\Member\MemberRelation; use Infinito\Entity\Meta\Relation\Parent\CreatorRelation; +use Infinito\Entity\Meta\Relation\Parent\HeredityRelation; +use Infinito\Entity\Meta\Right; +use Infinito\Entity\Source\AbstractSource; +use Infinito\Exception\Collection\NotSetElementException; /** * @author kevinfrantz @@ -29,11 +29,7 @@ final class LayerClassMap implements LayerClassMapInterface ]; /** - * @param string $layer - * * @throws NotSetElementException - * - * @return string */ public static function getClass(string $layer): string { diff --git a/application/symfony/src/Domain/Layer/LayerClassMapInterface.php b/application/symfony/src/Domain/Layer/LayerClassMapInterface.php index 6560c33..c88c014 100644 --- a/application/symfony/src/Domain/Layer/LayerClassMapInterface.php +++ b/application/symfony/src/Domain/Layer/LayerClassMapInterface.php @@ -8,8 +8,6 @@ namespace Infinito\Domain\Layer; interface LayerClassMapInterface { /** - * @param string $layer - * * @return string The class which belongs to an Layer */ public static function getClass(string $layer): string; diff --git a/application/symfony/src/Domain/Layer/LayerInterfaceMap.php b/application/symfony/src/Domain/Layer/LayerInterfaceMap.php index ce14a3a..fe30ba3 100644 --- a/application/symfony/src/Domain/Layer/LayerInterfaceMap.php +++ b/application/symfony/src/Domain/Layer/LayerInterfaceMap.php @@ -21,11 +21,6 @@ final class LayerInterfaceMap implements LayerInterfaceMapInterface */ const INTERFACE_SUFFIX = 'Interface'; - /** - * @param string $shortClass - * - * @return string - */ private static function filterAbstractClassName(string $shortClass): string { if (self::ABSTRACT_CLASS_PREFIX === substr($shortClass, 0, strlen(self::ABSTRACT_CLASS_PREFIX))) { @@ -35,21 +30,11 @@ final class LayerInterfaceMap implements LayerInterfaceMapInterface return $shortClass; } - /** - * @param string $class - * - * @return string - */ private static function addInterfaceSuffix(string $class): string { return $class.self::INTERFACE_SUFFIX; } - /** - * @param string $layer - * - * @return string - */ public static function getInterface(string $layer): string { $className = LayerClassMap::getClass($layer); @@ -62,9 +47,6 @@ final class LayerInterfaceMap implements LayerInterfaceMapInterface return $interfaceName; } - /** - * @return array - */ public static function getAllInterfaces(): array { $allInterfaces = []; diff --git a/application/symfony/src/Domain/Layer/LayerInterfaceMapInterface.php b/application/symfony/src/Domain/Layer/LayerInterfaceMapInterface.php index a4ec5ee..93e34b8 100644 --- a/application/symfony/src/Domain/Layer/LayerInterfaceMapInterface.php +++ b/application/symfony/src/Domain/Layer/LayerInterfaceMapInterface.php @@ -13,8 +13,6 @@ interface LayerInterfaceMapInterface public static function getAllInterfaces(): array; /** - * @param string $layer - * * @return string The interface which belongs to an Layer */ public static function getInterface(string $layer): string; diff --git a/application/symfony/src/Domain/Map/AbstractMap.php b/application/symfony/src/Domain/Map/AbstractMap.php index 88f0c0b..bc4abe6 100644 --- a/application/symfony/src/Domain/Map/AbstractMap.php +++ b/application/symfony/src/Domain/Map/AbstractMap.php @@ -10,7 +10,6 @@ namespace Infinito\Domain\Map; abstract class AbstractMap implements MapInterface { /** - * @param string $index * @param array|string[] $map * * @return array|string[] @@ -25,7 +24,6 @@ abstract class AbstractMap implements MapInterface } /** - * @param string $value * @param array|string[] $map * * @return array|string[] diff --git a/application/symfony/src/Domain/Map/ActionHttpMethodMapInterface.php b/application/symfony/src/Domain/Map/ActionHttpMethodMapInterface.php index f98008a..49f5bf6 100644 --- a/application/symfony/src/Domain/Map/ActionHttpMethodMapInterface.php +++ b/application/symfony/src/Domain/Map/ActionHttpMethodMapInterface.php @@ -10,15 +10,11 @@ namespace Infinito\Domain\Map; interface ActionHttpMethodMapInterface { /** - * @param string $httpMethod - * * @return array|string[] The Http-Methods which belong to an action */ public static function getActions(string $httpMethod): array; /** - * @param string $action - * * @return array|string[] The Http-Methods which are possible for an action */ public static function getHttpMethods(string $action): array; diff --git a/application/symfony/src/Domain/Member/MemberManager.php b/application/symfony/src/Domain/Member/MemberManager.php index 22e842d..394c5bf 100644 --- a/application/symfony/src/Domain/Member/MemberManager.php +++ b/application/symfony/src/Domain/Member/MemberManager.php @@ -18,9 +18,6 @@ final class MemberManager implements MemberManagerInterface */ private $memberRelation; - /** - * @param MemberRelationInterface $memberRelation - */ public function __construct(MemberRelationInterface $memberRelation) { $this->memberRelation = $memberRelation; diff --git a/application/symfony/src/Domain/Member/MemberManagerInterface.php b/application/symfony/src/Domain/Member/MemberManagerInterface.php index 5a3ee93..69d2917 100644 --- a/application/symfony/src/Domain/Member/MemberManagerInterface.php +++ b/application/symfony/src/Domain/Member/MemberManagerInterface.php @@ -9,23 +9,11 @@ use Infinito\Entity\Meta\Relation\Member\MemberRelationInterface; */ interface MemberManagerInterface { - /** - * @param MemberRelationInterface $member - */ public function addMember(MemberRelationInterface $member): void; - /** - * @param MemberRelationInterface $member - */ public function removeMember(MemberRelationInterface $member): void; - /** - * @param MemberRelationInterface $membership - */ public function addMembership(MemberRelationInterface $membership): void; - /** - * @param MemberRelationInterface $membership - */ public function removeMembership(MemberRelationInterface $membership): void; } diff --git a/application/symfony/src/Domain/Parameter/AbstractGetParameterService.php b/application/symfony/src/Domain/Parameter/AbstractGetParameterService.php index f9eae9f..65b9129 100644 --- a/application/symfony/src/Domain/Parameter/AbstractGetParameterService.php +++ b/application/symfony/src/Domain/Parameter/AbstractGetParameterService.php @@ -2,9 +2,9 @@ namespace Infinito\Domain\Parameter; -use Symfony\Component\HttpFoundation\RequestStack; -use Symfony\Component\HttpFoundation\Request; use Infinito\Exception\Collection\NotSetElementException; +use Symfony\Component\HttpFoundation\Request; +use Symfony\Component\HttpFoundation\RequestStack; /** * This class exists out of refactoring reasons. @@ -19,14 +19,8 @@ abstract class AbstractGetParameterService implements GetParameterServiceInterfa */ protected $currentRequest; - /** - * @param string $key - */ abstract protected function validateParameter(string $key): void; - /** - * @param RequestStack $requestStack - */ private function setCurrentRequest(RequestStack $requestStack): void { $this->currentRequest = $requestStack->getCurrentRequest(); @@ -39,9 +33,6 @@ abstract class AbstractGetParameterService implements GetParameterServiceInterfa } } - /** - * @param RequestStack $requestStack - */ public function __construct(RequestStack $requestStack) { $this->setCurrentRequest($requestStack); diff --git a/application/symfony/src/Domain/Parameter/GetParameterServiceInterface.php b/application/symfony/src/Domain/Parameter/GetParameterServiceInterface.php index 0af6c89..25c549c 100644 --- a/application/symfony/src/Domain/Parameter/GetParameterServiceInterface.php +++ b/application/symfony/src/Domain/Parameter/GetParameterServiceInterface.php @@ -10,15 +10,11 @@ namespace Infinito\Domain\Parameter; interface GetParameterServiceInterface { /** - * @param string $key - * * @return bool True if the version parameter in the request is set */ public function hasParameter(string $key): bool; /** - * @param string $key - * * @return mixed */ public function getParameter(string $key); diff --git a/application/symfony/src/Domain/Parameter/Parameter/FrameParameter.php b/application/symfony/src/Domain/Parameter/Parameter/FrameParameter.php index b2ea17e..ca31af4 100644 --- a/application/symfony/src/Domain/Parameter/Parameter/FrameParameter.php +++ b/application/symfony/src/Domain/Parameter/Parameter/FrameParameter.php @@ -2,8 +2,8 @@ namespace Infinito\Domain\Parameter\Parameter; -use Symfony\Component\Validator\Constraints as Assert; use Infinito\Exception\Validation\GetParameterInvalidException; +use Symfony\Component\Validator\Constraints as Assert; /** * @author kevinfrantz diff --git a/application/symfony/src/Domain/Parameter/ParameterFactory.php b/application/symfony/src/Domain/Parameter/ParameterFactory.php index c740e42..10a7e8e 100644 --- a/application/symfony/src/Domain/Parameter/ParameterFactory.php +++ b/application/symfony/src/Domain/Parameter/ParameterFactory.php @@ -24,8 +24,6 @@ final class ParameterFactory implements ParameterFactoryInterface private $parameters; /** - * @param string $class - * * @return bool True if an initialisation of the class is possible */ private function initPossible(string $class): bool diff --git a/application/symfony/src/Domain/Parameter/ParameterFactoryInterface.php b/application/symfony/src/Domain/Parameter/ParameterFactoryInterface.php index d95b6f5..7642f63 100644 --- a/application/symfony/src/Domain/Parameter/ParameterFactoryInterface.php +++ b/application/symfony/src/Domain/Parameter/ParameterFactoryInterface.php @@ -2,19 +2,14 @@ namespace Infinito\Domain\Parameter; -use Infinito\Domain\Parameter\Parameter\ParameterInterface; use Doctrine\Common\Collections\Collection; +use Infinito\Domain\Parameter\Parameter\ParameterInterface; /** * @author kevinfrantz */ interface ParameterFactoryInterface { - /** - * @param string $key - * - * @return ParameterInterface - */ public function getParameter(string $key): ParameterInterface; /** diff --git a/application/symfony/src/Domain/Parameter/ValidGetParametersService.php b/application/symfony/src/Domain/Parameter/ValidGetParametersService.php index f7e5bb9..0ef6082 100644 --- a/application/symfony/src/Domain/Parameter/ValidGetParametersService.php +++ b/application/symfony/src/Domain/Parameter/ValidGetParametersService.php @@ -2,9 +2,9 @@ namespace Infinito\Domain\Parameter; +use Infinito\Exception\Validation\GetParameterInvalidException; use Symfony\Component\HttpFoundation\RequestStack; use Symfony\Component\Validator\Validator\ValidatorInterface; -use Infinito\Exception\Validation\GetParameterInvalidException; /** * @author kevinfrantz @@ -21,11 +21,6 @@ final class ValidGetParametersService extends AbstractGetParameterService implem */ private $validator; - /** - * @param RequestStack $requestStack - * @param ParameterFactoryInterface $parameterFactory - * @param ValidatorInterface $validator - */ public function __construct(RequestStack $requestStack, ParameterFactoryInterface $parameterFactory, ValidatorInterface $validator) { $this->parameterFactory = $parameterFactory; @@ -33,9 +28,6 @@ final class ValidGetParametersService extends AbstractGetParameterService implem parent::__construct($requestStack); } - /** - * @param string $key - */ protected function validateParameter(string $key): void { $parameter = $this->parameterFactory->getParameter($key); diff --git a/application/symfony/src/Domain/Path/NamespacePathMapInterface.php b/application/symfony/src/Domain/Path/NamespacePathMapInterface.php index ea8a182..1d06d67 100644 --- a/application/symfony/src/Domain/Path/NamespacePathMapInterface.php +++ b/application/symfony/src/Domain/Path/NamespacePathMapInterface.php @@ -9,24 +9,12 @@ namespace Infinito\Domain\Path; */ interface NamespacePathMapInterface { - /** - * @param string $namespace - */ public function setNamespace(string $namespace): void; - /** - * @param string $path - */ public function setPath(string $path): void; - /** - * @return string - */ public function getNamespace(): string; - /** - * @return string - */ public function getPath(): string; /** diff --git a/application/symfony/src/Domain/Process/ProcessService.php b/application/symfony/src/Domain/Process/ProcessService.php index 023f8f3..fd8b955 100644 --- a/application/symfony/src/Domain/Process/ProcessService.php +++ b/application/symfony/src/Domain/Process/ProcessService.php @@ -2,12 +2,12 @@ namespace Infinito\Domain\Process; -use Infinito\Domain\Request\Action\RequestedActionServiceInterface; -use Infinito\Domain\Secure\SecureRequestedRightCheckerServiceInterface; use Infinito\Domain\Action\ActionHandlerServiceInterface; -use Infinito\Entity\Source\Primitive\Text\TextSource; use Infinito\Domain\DataAccess\ActionsResultsDAOServiceInterface; use Infinito\Domain\Parameter\ValidGetParameterServiceInterface; +use Infinito\Domain\Request\Action\RequestedActionServiceInterface; +use Infinito\Domain\Secure\SecureRequestedRightCheckerServiceInterface; +use Infinito\Entity\Source\Primitive\Text\TextSource; use Symfony\Component\Finder\Exception\AccessDeniedException; /** @@ -70,12 +70,6 @@ final class ProcessService implements ProcessServiceInterface return; } - /** - * @param ActionHandlerServiceInterface $actionHandlerService - * @param ActionsResultsDAOServiceInterface $actionTemplateDataStore - * @param RequestedActionServiceInterface $requestedActionService - * @param SecureRequestedRightCheckerServiceInterface $secureRequestedRightCheckerService - */ public function __construct(ActionHandlerServiceInterface $actionHandlerService, ActionsResultsDAOServiceInterface $actionTemplateDataStore, RequestedActionServiceInterface $requestedActionService, SecureRequestedRightCheckerServiceInterface $secureRequestedRightCheckerService, ValidGetParameterServiceInterface $validGetParameterService) { $this->actionHandlerService = $actionHandlerService; diff --git a/application/symfony/src/Domain/Repository/LayerRepositoryFactoryService.php b/application/symfony/src/Domain/Repository/LayerRepositoryFactoryService.php index 7d2a63e..6505bc2 100644 --- a/application/symfony/src/Domain/Repository/LayerRepositoryFactoryService.php +++ b/application/symfony/src/Domain/Repository/LayerRepositoryFactoryService.php @@ -2,9 +2,9 @@ namespace Infinito\Domain\Repository; -use Infinito\Repository\RepositoryInterface; use Doctrine\ORM\EntityManagerInterface; use Infinito\Domain\Layer\LayerClassMap; +use Infinito\Repository\RepositoryInterface; /** * @author kevinfrantz @@ -16,9 +16,6 @@ final class LayerRepositoryFactoryService implements LayerRepositoryFactoryServi */ private $entityManager; - /** - * @param EntityManagerInterface $entityManager - */ public function __construct(EntityManagerInterface $entityManager) { $this->entityManager = $entityManager; diff --git a/application/symfony/src/Domain/Repository/LayerRepositoryFactoryServiceInterface.php b/application/symfony/src/Domain/Repository/LayerRepositoryFactoryServiceInterface.php index ab592cc..bd71648 100644 --- a/application/symfony/src/Domain/Repository/LayerRepositoryFactoryServiceInterface.php +++ b/application/symfony/src/Domain/Repository/LayerRepositoryFactoryServiceInterface.php @@ -11,10 +11,5 @@ use Infinito\Repository\RepositoryInterface; */ interface LayerRepositoryFactoryServiceInterface { - /** - * @param string $layer - * - * @return RepositoryInterface - */ public function getRepository(string $layer): RepositoryInterface; } diff --git a/application/symfony/src/Domain/Request/Action/RequestedAction.php b/application/symfony/src/Domain/Request/Action/RequestedAction.php index 8c2c806..1368b68 100644 --- a/application/symfony/src/Domain/Request/Action/RequestedAction.php +++ b/application/symfony/src/Domain/Request/Action/RequestedAction.php @@ -10,9 +10,6 @@ use Infinito\Domain\Request\User\RequestedUserInterface; */ class RequestedAction extends RequestedUser implements RequestedActionInterface { - /** - * @param RequestedUserInterface $requestedUser - */ public function __construct(RequestedUserInterface $requestedUser) { parent::__construct($requestedUser->getUserSourceDirector(), $requestedUser); diff --git a/application/symfony/src/Domain/Request/Action/RequestedActionService.php b/application/symfony/src/Domain/Request/Action/RequestedActionService.php index 4a0e2c9..6c00fcf 100644 --- a/application/symfony/src/Domain/Request/Action/RequestedActionService.php +++ b/application/symfony/src/Domain/Request/Action/RequestedActionService.php @@ -9,9 +9,6 @@ use Infinito\Domain\Request\User\RequestedUserServiceInterface; */ final class RequestedActionService extends RequestedAction implements RequestedActionServiceInterface { - /** - * @param RequestedUserServiceInterface $requestedUserService - */ public function __construct(RequestedUserServiceInterface $requestedUserService) { parent::__construct($requestedUserService); diff --git a/application/symfony/src/Domain/Request/Action/RequestedActionStack.php b/application/symfony/src/Domain/Request/Action/RequestedActionStack.php index 3c3d0f1..b0a6141 100644 --- a/application/symfony/src/Domain/Request/Action/RequestedActionStack.php +++ b/application/symfony/src/Domain/Request/Action/RequestedActionStack.php @@ -2,8 +2,8 @@ namespace Infinito\Domain\Request\Action; -use Doctrine\Common\Collections\Collection; use Doctrine\Common\Collections\ArrayCollection; +use Doctrine\Common\Collections\Collection; use Infinito\Exception\Collection\ContainsElementException; use Infinito\Exception\Collection\NotSetElementException; diff --git a/application/symfony/src/Domain/Request/Action/RequestedActionStackInterface.php b/application/symfony/src/Domain/Request/Action/RequestedActionStackInterface.php index ed8e6c0..e4e8d73 100644 --- a/application/symfony/src/Domain/Request/Action/RequestedActionStackInterface.php +++ b/application/symfony/src/Domain/Request/Action/RequestedActionStackInterface.php @@ -9,16 +9,8 @@ use Doctrine\Common\Collections\Collection; */ interface RequestedActionStackInterface { - /** - * @param RequestedActionInterface $requestedAction - */ public function addRequestedAction(RequestedActionInterface $requestedAction): void; - /** - * @param string $actionType - * - * @return RequestedActionInterface - */ public function getRequestedAction(string $actionType): RequestedActionInterface; /** @@ -27,8 +19,6 @@ interface RequestedActionStackInterface public function getAllRequestedActions(): Collection; /** - * @param string $actionType - * * @return bool True if the stack containes an RequestedAction to this action type */ public function containesRequestedAction(string $actionType): bool; diff --git a/application/symfony/src/Domain/Request/Entity/LazyRequestedEntity.php b/application/symfony/src/Domain/Request/Entity/LazyRequestedEntity.php index 3d8652d..64e4e90 100644 --- a/application/symfony/src/Domain/Request/Entity/LazyRequestedEntity.php +++ b/application/symfony/src/Domain/Request/Entity/LazyRequestedEntity.php @@ -2,8 +2,8 @@ namespace Infinito\Domain\Request\Entity; -use Infinito\Entity\EntityInterface; use Infinito\Attribut\SlugAttributInterface; +use Infinito\Entity\EntityInterface; /** * This class allows to use the RequestedEntity via LazyLoading @@ -28,9 +28,6 @@ class LazyRequestedEntity extends RequestedEntity return $this->lazyLoadEntity(); } - /** - * @return EntityInterface|null - */ private function lazyLoadEntity(): ?EntityInterface { if ($this->isLazyLoadNeccessary()) { @@ -41,9 +38,6 @@ class LazyRequestedEntity extends RequestedEntity return self::$lazyLoadedEntity; } - /** - * @return bool - */ private function isLazyLoadNeccessary(): bool { if (self::$lazyLoadedEntity) { diff --git a/application/symfony/src/Domain/Request/Entity/RequestedEntity.php b/application/symfony/src/Domain/Request/Entity/RequestedEntity.php index 320982c..552a93c 100644 --- a/application/symfony/src/Domain/Request/Entity/RequestedEntity.php +++ b/application/symfony/src/Domain/Request/Entity/RequestedEntity.php @@ -2,23 +2,23 @@ namespace Infinito\Domain\Request\Entity; +use Infinito\Attribut\ClassAttribut; +use Infinito\Attribut\RequestedRightAttribut; +use Infinito\Attribut\SlugAttribut; +use Infinito\Domain\Repository\LayerRepositoryFactoryService; +use Infinito\Domain\Repository\LayerRepositoryFactoryServiceInterface; +use Infinito\Domain\Request\Right\RequestedRightInterface; use Infinito\Entity\AbstractEntity; use Infinito\Entity\EntityInterface; -use Infinito\Attribut\SlugAttribut; -use Infinito\Attribut\RequestedRightAttribut; -use Infinito\Domain\Repository\LayerRepositoryFactoryServiceInterface; -use Infinito\Repository\Source\SourceRepositoryInterface; use Infinito\Entity\Source\AbstractSource; -use Infinito\Repository\RepositoryInterface; use Infinito\Entity\Source\SourceInterface; -use Infinito\Attribut\ClassAttribut; -use Infinito\Domain\Request\Right\RequestedRightInterface; -use Infinito\Domain\Repository\LayerRepositoryFactoryService; -use Infinito\Exception\Attribut\UndefinedAttributException; -use Infinito\Exception\Core\NotCorrectInstanceCoreException; use Infinito\Exception\Attribut\AllreadyDefinedAttributException; +use Infinito\Exception\Attribut\UndefinedAttributException; use Infinito\Exception\Core\NoIdentityCoreException; +use Infinito\Exception\Core\NotCorrectInstanceCoreException; use Infinito\Exception\NotFound\EntityNotFoundException; +use Infinito\Repository\RepositoryInterface; +use Infinito\Repository\Source\SourceRepositoryInterface; /** * @author kevinfrantz @@ -84,9 +84,6 @@ class RequestedEntity extends AbstractEntity implements RequestedEntityInterface throw new NotCorrectInstanceCoreException('To read an entity by slug is just allowed for entitys of type '.AbstractSource::class); } - /** - * @return EntityInterface|null - */ private function loadById(): ?EntityInterface { $repository = $this->getEntityRepository(); @@ -104,9 +101,6 @@ class RequestedEntity extends AbstractEntity implements RequestedEntityInterface } } - /** - * @return RepositoryInterface - */ private function getEntityRepository(): RepositoryInterface { $this->validateLayerRepositoryFactoryService(); @@ -116,17 +110,11 @@ class RequestedEntity extends AbstractEntity implements RequestedEntityInterface return $repository; } - /** - * @return EntityInterface|null - */ protected function loadEntity(): ?EntityInterface { return $this->loadEntityBySlugOrId(); } - /** - * @param LayerRepositoryFactoryServiceInterface|null $layerRepositoryFactoryService - */ public function __construct(?LayerRepositoryFactoryServiceInterface $layerRepositoryFactoryService = null) { $this->layerRepositoryFactoryService = $layerRepositoryFactoryService; diff --git a/application/symfony/src/Domain/Request/Entity/RequestedEntityInterface.php b/application/symfony/src/Domain/Request/Entity/RequestedEntityInterface.php index b4c5e1f..1439b5d 100644 --- a/application/symfony/src/Domain/Request/Entity/RequestedEntityInterface.php +++ b/application/symfony/src/Domain/Request/Entity/RequestedEntityInterface.php @@ -2,10 +2,10 @@ namespace Infinito\Domain\Request\Entity; -use Infinito\Entity\EntityInterface; -use Infinito\Attribut\SlugAttributInterface; -use Infinito\Attribut\RequestedRightAttributInterface; use Infinito\Attribut\ClassAttributInterface; +use Infinito\Attribut\RequestedRightAttributInterface; +use Infinito\Attribut\SlugAttributInterface; +use Infinito\Entity\EntityInterface; /** * A requested entity containes the stumb attributes to load an entity. @@ -26,8 +26,5 @@ interface RequestedEntityInterface extends EntityInterface, SlugAttributInterfac */ public function hasIdentity(): bool; - /** - * @return EntityInterface - */ public function getEntity(): EntityInterface; } diff --git a/application/symfony/src/Domain/Request/Right/AbstractRequestedRightFacade.php b/application/symfony/src/Domain/Request/Right/AbstractRequestedRightFacade.php index b79bf0b..66a63b8 100644 --- a/application/symfony/src/Domain/Request/Right/AbstractRequestedRightFacade.php +++ b/application/symfony/src/Domain/Request/Right/AbstractRequestedRightFacade.php @@ -17,9 +17,6 @@ abstract class AbstractRequestedRightFacade implements RequestedRightInterface */ protected $requestedRight; - /** - * @param RequestedRightInterface $requestedRight - */ public function __construct(RequestedRightInterface $requestedRight) { $this->requestedRight = $requestedRight; diff --git a/application/symfony/src/Domain/Request/Right/RequestedRight.php b/application/symfony/src/Domain/Request/Right/RequestedRight.php index e122940..a585e63 100644 --- a/application/symfony/src/Domain/Request/Right/RequestedRight.php +++ b/application/symfony/src/Domain/Request/Right/RequestedRight.php @@ -2,17 +2,17 @@ namespace Infinito\Domain\Request\Right; -use Infinito\Entity\Source\SourceInterface; +use Infinito\Attribut\ActionTypeAttribut; use Infinito\Attribut\LayerAttribut; use Infinito\Attribut\RecieverAttribut; -use Infinito\Domain\Request\Entity\RequestedEntityInterface; use Infinito\Attribut\RequestedEntityAttribut; -use Infinito\Entity\Meta\MetaInterface; use Infinito\Domain\Request\Entity\RequestedEntity; -use Infinito\Attribut\ActionTypeAttribut; -use Infinito\Exception\Core\NotCorrectInstanceCoreException; -use Infinito\Exception\Core\NoIdentityCoreException; +use Infinito\Domain\Request\Entity\RequestedEntityInterface; +use Infinito\Entity\Meta\MetaInterface; +use Infinito\Entity\Source\SourceInterface; use Infinito\Exception\Collection\ContainsElementException; +use Infinito\Exception\Core\NoIdentityCoreException; +use Infinito\Exception\Core\NotCorrectInstanceCoreException; /** * @author kevinfrantz @@ -60,9 +60,6 @@ class RequestedRight implements RequestedRightInterface throw new NoIdentityCoreException(get_class($this->requestedEntity).' needs to have a defined id or slug attribut!'); } - /** - * @param RequestedEntity|null $requestedEntity - */ public function __construct(?RequestedEntity $requestedEntity = null) { if ($requestedEntity) { diff --git a/application/symfony/src/Domain/Request/Right/RequestedRightInterface.php b/application/symfony/src/Domain/Request/Right/RequestedRightInterface.php index a523ee1..7c4f2db 100644 --- a/application/symfony/src/Domain/Request/Right/RequestedRightInterface.php +++ b/application/symfony/src/Domain/Request/Right/RequestedRightInterface.php @@ -2,11 +2,11 @@ namespace Infinito\Domain\Request\Right; -use Infinito\Attribut\RecieverAttributInterface; -use Infinito\Attribut\LayerAttributInterface; -use Infinito\Entity\Source\SourceInterface; -use Infinito\Attribut\RequestedEntityAttributInterface; use Infinito\Attribut\ActionTypeAttributInterface; +use Infinito\Attribut\LayerAttributInterface; +use Infinito\Attribut\RecieverAttributInterface; +use Infinito\Attribut\RequestedEntityAttributInterface; +use Infinito\Entity\Source\SourceInterface; /** * @author kevinfrantz diff --git a/application/symfony/src/Domain/Request/Right/RequestedRightService.php b/application/symfony/src/Domain/Request/Right/RequestedRightService.php index ac20023..b8d5725 100644 --- a/application/symfony/src/Domain/Request/Right/RequestedRightService.php +++ b/application/symfony/src/Domain/Request/Right/RequestedRightService.php @@ -11,9 +11,6 @@ use Infinito\Domain\Request\Entity\RequestedEntityServiceInterface; */ final class RequestedRightService extends RequestedRight implements RequestedRightServiceInterface { - /** - * @param RequestedEntityServiceInterface $requestedEntityService - */ public function __construct(RequestedEntityServiceInterface $requestedEntityService) { parent::__construct($requestedEntityService); diff --git a/application/symfony/src/Domain/Request/User/RequestedUser.php b/application/symfony/src/Domain/Request/User/RequestedUser.php index 1400012..eccacf8 100644 --- a/application/symfony/src/Domain/Request/User/RequestedUser.php +++ b/application/symfony/src/Domain/Request/User/RequestedUser.php @@ -2,10 +2,10 @@ namespace Infinito\Domain\Request\User; -use Infinito\Entity\Source\SourceInterface; -use Infinito\Domain\User\UserSourceDirectorInterface; -use Infinito\Domain\Request\Right\RequestedRightInterface; use Infinito\Domain\Request\Right\AbstractRequestedRightFacade; +use Infinito\Domain\Request\Right\RequestedRightInterface; +use Infinito\Domain\User\UserSourceDirectorInterface; +use Infinito\Entity\Source\SourceInterface; use Infinito\Exception\Collection\NotPossibleSetElementException; /** @@ -18,9 +18,6 @@ class RequestedUser extends AbstractRequestedRightFacade implements RequestedUse */ private $userSourceDirector; - /** - * @param UserSourceDirectorInterface $userSourceDirector - */ public function __construct(UserSourceDirectorInterface $userSourceDirector, RequestedRightInterface $requestedRight) { $this->userSourceDirector = $userSourceDirector; diff --git a/application/symfony/src/Domain/Request/User/RequestedUserInterface.php b/application/symfony/src/Domain/Request/User/RequestedUserInterface.php index fc475f4..2ea24ac 100644 --- a/application/symfony/src/Domain/Request/User/RequestedUserInterface.php +++ b/application/symfony/src/Domain/Request/User/RequestedUserInterface.php @@ -12,8 +12,5 @@ use Infinito\Domain\User\UserSourceDirectorInterface; */ interface RequestedUserInterface extends RequestedRightInterface { - /** - * @return UserSourceDirectorInterface - */ public function getUserSourceDirector(): UserSourceDirectorInterface; } diff --git a/application/symfony/src/Domain/Request/User/RequestedUserService.php b/application/symfony/src/Domain/Request/User/RequestedUserService.php index 4cd8826..0083c09 100644 --- a/application/symfony/src/Domain/Request/User/RequestedUserService.php +++ b/application/symfony/src/Domain/Request/User/RequestedUserService.php @@ -2,18 +2,14 @@ namespace Infinito\Domain\Request\User; -use Infinito\Domain\User\UserSourceDirectorServiceInterface; use Infinito\Domain\Request\Right\RequestedRightServiceInterface; +use Infinito\Domain\User\UserSourceDirectorServiceInterface; /** * @author kevinfrantz */ final class RequestedUserService extends RequestedUser implements RequestedUserServiceInterface { - /** - * @param UserSourceDirectorServiceInterface $userSourceDirectorService - * @param RequestedRightServiceInterface $requestedRightService - */ public function __construct(UserSourceDirectorServiceInterface $userSourceDirectorService, RequestedRightServiceInterface $requestedRightService) { parent::__construct($userSourceDirectorService, $requestedRightService); diff --git a/application/symfony/src/Domain/Right/RightChecker.php b/application/symfony/src/Domain/Right/RightChecker.php index fc89e22..a7799cc 100644 --- a/application/symfony/src/Domain/Right/RightChecker.php +++ b/application/symfony/src/Domain/Right/RightChecker.php @@ -2,10 +2,10 @@ namespace Infinito\Domain\Right; -use Infinito\Entity\Meta\RightInterface; use Doctrine\Common\Collections\Collection; -use Infinito\Entity\Source\SourceInterface; use Infinito\Domain\Source\SourceMemberInformation; +use Infinito\Entity\Meta\RightInterface; +use Infinito\Entity\Source\SourceInterface; /** * @todo Implement the check of conditions! @@ -21,8 +21,6 @@ final class RightChecker implements RightCheckerInterface /** * @todo Implement a performant solution - * - * @return Collection */ private function getAllSourcesToWhichRightApplies(): Collection { @@ -33,65 +31,36 @@ final class RightChecker implements RightCheckerInterface return $allSourcesToWhichRightApplies; } - /** - * @param SourceInterface $clientSource - * - * @return bool - */ private function hasClientSource(SourceInterface $clientSource): bool { return $this->getAllSourcesToWhichRightApplies()->contains($clientSource); } - /** - * @param string $layer - * - * @return bool - */ private function isLayerEqual(string $layer): bool { return $this->right->getLayer() === $layer; } - /** - * @param string $type - * - * @return bool - */ private function isTypeEqual(string $type): bool { return $this->right->getActionType() === $type; } - /** - * @return bool - */ private function checkPermission(): bool { return $this->right->getGrant(); } - /** - * @return bool - */ private function doesRightApplyToAllSources(): bool { return !$this->right->hasReciever(); } - /** - * @param SourceInterface $source - * - * @return bool - */ private function doesRightApply(SourceInterface $source): bool { return $this->doesRightApplyToAllSources() || $this->hasClientSource($source); } - /** - * @param RightInterface $right - */ public function __construct(RightInterface $right) { $this->right = $right; diff --git a/application/symfony/src/Domain/Right/RightCheckerInterface.php b/application/symfony/src/Domain/Right/RightCheckerInterface.php index facca1e..0c26fc3 100644 --- a/application/symfony/src/Domain/Right/RightCheckerInterface.php +++ b/application/symfony/src/Domain/Right/RightCheckerInterface.php @@ -11,12 +11,5 @@ use Infinito\Entity\Source\SourceInterface; */ interface RightCheckerInterface { - /** - * @param string $layer - * @param string $type - * @param SourceInterface $source - * - * @return bool - */ public function isGranted(string $layer, string $type, SourceInterface $source): bool; } diff --git a/application/symfony/src/Domain/Right/RightLayerCombinationService.php b/application/symfony/src/Domain/Right/RightLayerCombinationService.php index 2cb79e0..eb1745d 100644 --- a/application/symfony/src/Domain/Right/RightLayerCombinationService.php +++ b/application/symfony/src/Domain/Right/RightLayerCombinationService.php @@ -2,8 +2,8 @@ namespace Infinito\Domain\Right; -use Infinito\DBAL\Types\Meta\Right\LayerType; use Infinito\DBAL\Types\Meta\Right\CRUDType; +use Infinito\DBAL\Types\Meta\Right\LayerType; /** * @author kevinfrantz @@ -34,12 +34,6 @@ final class RightLayerCombinationService implements RightLayerCombinationService $this->setCombination(); } - /** - * @param string $layer - * @param string $crud - * - * @return bool - */ private function checkIfExcluded(string $layer, string $crud): bool { return array_key_exists($layer, self::EXLUDED_RIGHTS_BY_LAYER) && in_array($crud, self::EXLUDED_RIGHTS_BY_LAYER[$layer]); diff --git a/application/symfony/src/Domain/Right/RightLayerCombinationServiceInterface.php b/application/symfony/src/Domain/Right/RightLayerCombinationServiceInterface.php index 4a94776..2331d44 100644 --- a/application/symfony/src/Domain/Right/RightLayerCombinationServiceInterface.php +++ b/application/symfony/src/Domain/Right/RightLayerCombinationServiceInterface.php @@ -2,8 +2,8 @@ namespace Infinito\Domain\Right; -use Infinito\DBAL\Types\Meta\Right\LayerType; use Infinito\DBAL\Types\Meta\Right\CRUDType; +use Infinito\DBAL\Types\Meta\Right\LayerType; /** * Allows to get the possible cruds for a layer, or the possible layers for a crud. @@ -17,8 +17,6 @@ interface RightLayerCombinationServiceInterface * * @see LayerType::getValues() * - * @param string $layer - * * @return array The cruds which exist for a layer */ public function getPossibleCruds(string $layer): array; diff --git a/application/symfony/src/Domain/Right/RightTransformerService.php b/application/symfony/src/Domain/Right/RightTransformerService.php index 2b42456..86b10bd 100644 --- a/application/symfony/src/Domain/Right/RightTransformerService.php +++ b/application/symfony/src/Domain/Right/RightTransformerService.php @@ -2,31 +2,21 @@ namespace Infinito\Domain\Right; -use Infinito\Entity\Meta\RightInterface; +use Infinito\Domain\Method\MethodPrefixType; use Infinito\Domain\Request\Right\RequestedRightInterface; use Infinito\Entity\Meta\Right; -use Infinito\Domain\Method\MethodPrefixType; +use Infinito\Entity\Meta\RightInterface; /** * @author kevinfrantz */ final class RightTransformerService implements RightTransformerServiceInterface { - /** - * @param string $method - * - * @return string - */ private function getAttributByMethodName(string $method): string { return substr($method, 3); } - /** - * @param string $name - * - * @return bool - */ private function isNameSetter(string $name): bool { return MethodPrefixType::GET === substr($name, 0, 3); @@ -55,12 +45,6 @@ final class RightTransformerService implements RightTransformerServiceInterface return $attributes; } - /** - * @param RightInterface $right - * @param RequestedRightInterface $requestedRight - * - * @return array - */ private function getAttributesExistInBoth(RightInterface $right, RequestedRightInterface $requestedRight): array { $attributes = []; @@ -75,12 +59,6 @@ final class RightTransformerService implements RightTransformerServiceInterface return $attributes; } - /** - * @param string $name - * @param object $object - * - * @return bool - */ private function hasMethod(string $name, object $object): bool { $reflection = new \ReflectionClass($object); @@ -88,21 +66,11 @@ final class RightTransformerService implements RightTransformerServiceInterface return $reflection->hasMethod($name); } - /** - * @param string $prefix - * @param string $attribute - * - * @return string - */ private function createMethod(string $prefix, string $attribute): string { return $prefix.ucfirst($attribute); } - /** - * @param string $attribute - * @param object $object - */ private function isAttributeGetPossible(string $attribute, object $object) { $has = $this->createMethod(MethodPrefixType::HAS, $attribute); diff --git a/application/symfony/src/Domain/Right/RightTransformerServiceInterface.php b/application/symfony/src/Domain/Right/RightTransformerServiceInterface.php index e824156..569728a 100644 --- a/application/symfony/src/Domain/Right/RightTransformerServiceInterface.php +++ b/application/symfony/src/Domain/Right/RightTransformerServiceInterface.php @@ -2,8 +2,8 @@ namespace Infinito\Domain\Right; -use Infinito\Entity\Meta\RightInterface; use Infinito\Domain\Request\Right\RequestedRightInterface; +use Infinito\Entity\Meta\RightInterface; /** * Allows to transform an Requested Right to a Entity Right. @@ -12,10 +12,5 @@ use Infinito\Domain\Request\Right\RequestedRightInterface; */ interface RightTransformerServiceInterface { - /** - * @param RequestedRightInterface $requestedRight - * - * @return RightInterface - */ public function transform(RequestedRightInterface $requestedRight): RightInterface; } diff --git a/application/symfony/src/Domain/Secure/SecureRequestedRightCheckerService.php b/application/symfony/src/Domain/Secure/SecureRequestedRightCheckerService.php index 658f3df..85a7929 100644 --- a/application/symfony/src/Domain/Secure/SecureRequestedRightCheckerService.php +++ b/application/symfony/src/Domain/Secure/SecureRequestedRightCheckerService.php @@ -2,8 +2,8 @@ namespace Infinito\Domain\Secure; -use Infinito\Domain\Request\Right\RequestedRightInterface; use Doctrine\ORM\EntityManagerInterface; +use Infinito\Domain\Request\Right\RequestedRightInterface; use Infinito\Domain\Right\RightTransformerServiceInterface; /** diff --git a/application/symfony/src/Domain/Secure/SecureRequestedRightCheckerServiceInterface.php b/application/symfony/src/Domain/Secure/SecureRequestedRightCheckerServiceInterface.php index 927dcf5..5d07851 100644 --- a/application/symfony/src/Domain/Secure/SecureRequestedRightCheckerServiceInterface.php +++ b/application/symfony/src/Domain/Secure/SecureRequestedRightCheckerServiceInterface.php @@ -12,8 +12,6 @@ use Infinito\Domain\Request\Right\RequestedRightInterface; interface SecureRequestedRightCheckerServiceInterface { /** - * @param RequestedRightInterface $requestedRight - * * @return bool If Permission granted true */ public function check(RequestedRightInterface $requestedRight): bool; diff --git a/application/symfony/src/Domain/Secure/SecureSourceChecker.php b/application/symfony/src/Domain/Secure/SecureSourceChecker.php index 3b1dacd..c0ebeb9 100644 --- a/application/symfony/src/Domain/Secure/SecureSourceChecker.php +++ b/application/symfony/src/Domain/Secure/SecureSourceChecker.php @@ -2,11 +2,11 @@ namespace Infinito\Domain\Secure; +use Infinito\Domain\Law\LawPermissionChecker; +use Infinito\Domain\Method\MethodPrefixType; use Infinito\Entity\Meta\RightInterface; use Infinito\Entity\Source\SourceInterface; -use Infinito\Domain\Law\LawPermissionChecker; use Infinito\Exception\Permission\NoSourcePermissionException; -use Infinito\Domain\Method\MethodPrefixType; /** * @author kevinfrantz @@ -18,19 +18,11 @@ final class SecureSourceChecker implements SecureSourceCheckerInterface */ private $source; - /** - * @param SourceInterface $source - */ public function __construct(SourceInterface $source) { $this->source = $source; } - /** - * @param string $methodName - * - * @return bool - */ private function isGetter(string $methodName): bool { return MethodPrefixType::GET === substr($methodName, 0, 3); @@ -38,19 +30,12 @@ final class SecureSourceChecker implements SecureSourceCheckerInterface /** * @param mixed $value - * - * @return bool */ private function isSource($value): bool { return $value instanceof SourceInterface; } - /** - * @param string $methodName - * - * @return SourceInterface|null - */ private function getExpectedSource(string $methodName): ?SourceInterface { try { @@ -61,11 +46,7 @@ final class SecureSourceChecker implements SecureSourceCheckerInterface } /** - * @param RightInterface $requestedRight - * * @throws NoSourcePermissionException It's important to fire this exception to reduce complexity in debuging - * - * @return bool */ private function itterateOverSourceAttributs(RightInterface $requestedRight): bool { diff --git a/application/symfony/src/Domain/Secure/SecureSourceCheckerInterface.php b/application/symfony/src/Domain/Secure/SecureSourceCheckerInterface.php index 3202516..3737e9a 100644 --- a/application/symfony/src/Domain/Secure/SecureSourceCheckerInterface.php +++ b/application/symfony/src/Domain/Secure/SecureSourceCheckerInterface.php @@ -11,8 +11,6 @@ interface SecureSourceCheckerInterface { /** * @param RightInterface $right - * - * @return bool */ public function hasPermission(RightInterface $requestedRight): bool; } diff --git a/application/symfony/src/Domain/Source/SourceClassInformationService.php b/application/symfony/src/Domain/Source/SourceClassInformationService.php index 2c5a3ca..4a94efe 100644 --- a/application/symfony/src/Domain/Source/SourceClassInformationService.php +++ b/application/symfony/src/Domain/Source/SourceClassInformationService.php @@ -32,31 +32,16 @@ final class SourceClassInformationService implements SourceClassInformationServi */ private $allClasses = []; - /** - * @param string $path - * - * @return bool - */ private function isPHP(string $path): bool { return self::PHP_SUFFIX === substr($path, -strlen(self::PHP_SUFFIX)); } - /** - * @param string $path - * - * @return bool - */ private function isInterface(string $path): bool { return self::INTERFACE_SUFFIX === substr($path, -strlen(self::INTERFACE_SUFFIX)); } - /** - * @param string $path - * - * @return string - */ private function transformPathToClass(string $path): string { $withoutSuffix = str_replace(self::PHP_SUFFIX, '', $path); @@ -67,9 +52,6 @@ final class SourceClassInformationService implements SourceClassInformationServi return $fullclass; } - /** - * @param string $path - */ private function addToClasses(string $path): void { $this->allClasses[] = $this->transformPathToClass($path); @@ -92,12 +74,6 @@ final class SourceClassInformationService implements SourceClassInformationServi $this->loadClasses(); } - /** - * @param string $subPath - * @param string $rootPath - * - * @return bool - */ private function isSubSourceClass(string $subPath, string $rootPath): bool { return substr($rootPath, 0, strlen($subPath)) === $subPath; diff --git a/application/symfony/src/Domain/Source/SourceMemberInformation.php b/application/symfony/src/Domain/Source/SourceMemberInformation.php index 5a0cf95..44adf72 100644 --- a/application/symfony/src/Domain/Source/SourceMemberInformation.php +++ b/application/symfony/src/Domain/Source/SourceMemberInformation.php @@ -2,10 +2,10 @@ namespace Infinito\Domain\Source; -use Doctrine\Common\Collections\Collection; -use Infinito\Entity\Source\SourceInterface; use Doctrine\Common\Collections\ArrayCollection; +use Doctrine\Common\Collections\Collection; use Infinito\Entity\Meta\Relation\Member\MemberRelationInterface; +use Infinito\Entity\Source\SourceInterface; /** * @author kevinfrantz @@ -22,9 +22,6 @@ final class SourceMemberInformation implements SourceMemberInformationInterface */ private $members; - /** - * @param SourceInterface $source - */ public function __construct(SourceInterface $source) { $this->source = $source; diff --git a/application/symfony/src/Domain/Source/SourceMemberManager.php b/application/symfony/src/Domain/Source/SourceMemberManager.php index be7297c..4f933a7 100644 --- a/application/symfony/src/Domain/Source/SourceMemberManager.php +++ b/application/symfony/src/Domain/Source/SourceMemberManager.php @@ -2,9 +2,9 @@ namespace Infinito\Domain\Source; -use Infinito\Entity\Source\SourceInterface; -use Infinito\Domain\Member\MemberManagerInterface; use Infinito\Domain\Member\MemberManager; +use Infinito\Domain\Member\MemberManagerInterface; +use Infinito\Entity\Source\SourceInterface; /** * @author kevinfrantz @@ -21,9 +21,6 @@ final class SourceMemberManager implements SourceMemberManagerInterface */ private $memberManager; - /** - * @param SourceInterface $source - */ public function __construct(SourceInterface $source) { $this->source = $source; diff --git a/application/symfony/src/Domain/Source/SourceMemberManagerInterface.php b/application/symfony/src/Domain/Source/SourceMemberManagerInterface.php index 5779ec1..f0e7030 100644 --- a/application/symfony/src/Domain/Source/SourceMemberManagerInterface.php +++ b/application/symfony/src/Domain/Source/SourceMemberManagerInterface.php @@ -11,23 +11,11 @@ use Infinito\Entity\Source\SourceInterface; */ interface SourceMemberManagerInterface { - /** - * @param SourceInterface $member - */ public function addMember(SourceInterface $member): void; - /** - * @param SourceInterface $member - */ public function removeMember(SourceInterface $member): void; - /** - * @param SourceInterface $membership - */ public function addMembership(SourceInterface $membership): void; - /** - * @param SourceInterface $membership - */ public function removeMembership(SourceInterface $membership): void; } diff --git a/application/symfony/src/Domain/Source/SourceMembershipInformation.php b/application/symfony/src/Domain/Source/SourceMembershipInformation.php index 73dad51..35523f6 100644 --- a/application/symfony/src/Domain/Source/SourceMembershipInformation.php +++ b/application/symfony/src/Domain/Source/SourceMembershipInformation.php @@ -2,10 +2,10 @@ namespace Infinito\Domain\Source; -use Doctrine\Common\Collections\Collection; -use Infinito\Entity\Source\SourceInterface; use Doctrine\Common\Collections\ArrayCollection; +use Doctrine\Common\Collections\Collection; use Infinito\Entity\Meta\Relation\Member\MemberRelationInterface; +use Infinito\Entity\Source\SourceInterface; /** * @author kevinfrantz @@ -22,9 +22,6 @@ final class SourceMembershipInformation implements SourceMembershipInformationIn */ private $memberships; - /** - * @param SourceInterface $source - */ public function __construct(SourceInterface $source) { $this->source = $source; diff --git a/application/symfony/src/Domain/Source/SourceRightManager.php b/application/symfony/src/Domain/Source/SourceRightManager.php index 8c2d3c1..5f66f21 100644 --- a/application/symfony/src/Domain/Source/SourceRightManager.php +++ b/application/symfony/src/Domain/Source/SourceRightManager.php @@ -2,15 +2,15 @@ namespace Infinito\Domain\Source; -use Infinito\Entity\Meta\RightInterface; -use Infinito\Entity\Source\SourceInterface; -use Infinito\Entity\Source\AbstractSource; -use Infinito\Entity\Meta\Law; use Doctrine\Common\Collections\ArrayCollection; +use Infinito\Domain\Method\MethodPrefixType; +use Infinito\Entity\Meta\Law; +use Infinito\Entity\Meta\RightInterface; +use Infinito\Entity\Source\AbstractSource; +use Infinito\Entity\Source\SourceInterface; use Infinito\Exception\Attribut\AllreadyDefinedAttributException; use Infinito\Exception\Collection\ContainsElementException; use Infinito\Exception\Collection\NotSetElementException; -use Infinito\Domain\Method\MethodPrefixType; /** * @author kevinfrantz @@ -22,9 +22,6 @@ final class SourceRightManager implements SourceRightManagerInterface */ private $source; - /** - * @param SourceInterface $source - */ public function __construct(SourceInterface $source) { $this->source = $source; diff --git a/application/symfony/src/Domain/Source/SourceRightManagerInterface.php b/application/symfony/src/Domain/Source/SourceRightManagerInterface.php index 7919613..86ba8c2 100644 --- a/application/symfony/src/Domain/Source/SourceRightManagerInterface.php +++ b/application/symfony/src/Domain/Source/SourceRightManagerInterface.php @@ -11,13 +11,7 @@ use Infinito\Entity\Meta\RightInterface; */ interface SourceRightManagerInterface { - /** - * @param RightInterface $right - */ public function addRight(RightInterface $right): void; - /** - * @param RightInterface $right - */ public function removeRight(RightInterface $right): void; } diff --git a/application/symfony/src/Domain/Source/TreeSourceInformation.php b/application/symfony/src/Domain/Source/TreeSourceInformation.php index e6b858c..a437b2a 100644 --- a/application/symfony/src/Domain/Source/TreeSourceInformation.php +++ b/application/symfony/src/Domain/Source/TreeSourceInformation.php @@ -2,10 +2,10 @@ namespace Infinito\Domain\Source; -use Infinito\Entity\Source\Complex\Collection\TreeCollectionSourceInterface; -use Infinito\Entity\Source\Complex\Collection\TreeCollectionSource; -use Doctrine\Common\Collections\Collection; use Doctrine\Common\Collections\ArrayCollection; +use Doctrine\Common\Collections\Collection; +use Infinito\Entity\Source\Complex\Collection\TreeCollectionSource; +use Infinito\Entity\Source\Complex\Collection\TreeCollectionSourceInterface; use Infinito\Entity\Source\SourceInterface; /** @@ -36,9 +36,6 @@ final class TreeSourceInformation implements TreeSourceInformationInterface */ private $leaves; - /** - * @param TreeCollectionSource $source - */ public function __construct(TreeCollectionSource $source) { $this->source = $source; @@ -47,11 +44,6 @@ final class TreeSourceInformation implements TreeSourceInformationInterface $this->basicSort(); } - /** - * @param SourceInterface $member - * - * @return bool - */ private function sortMember(SourceInterface $member): bool { if ($member instanceof TreeCollectionSource) { @@ -95,10 +87,6 @@ final class TreeSourceInformation implements TreeSourceInformationInterface return $allBranches; } - /** - * @param TreeCollectionSourceInterface $branch - * @param ArrayCollection $allBranches - */ private function itterateOverBranch(TreeCollectionSourceInterface $branch, ArrayCollection $allBranches): void { foreach ((new self($branch))->getBranches() as $branchBranch) { diff --git a/application/symfony/src/Domain/Source/TreeSourceInformationInterface.php b/application/symfony/src/Domain/Source/TreeSourceInformationInterface.php index 0fb433c..f2be2b5 100644 --- a/application/symfony/src/Domain/Source/TreeSourceInformationInterface.php +++ b/application/symfony/src/Domain/Source/TreeSourceInformationInterface.php @@ -13,29 +13,21 @@ interface TreeSourceInformationInterface { /** * Delivers the branches of the actual tree back. - * - * @return Collection */ public function getBranches(): Collection; /** * Delivers the members of the actual tree back. - * - * @return Collection */ public function getLeaves(): Collection; /** * Delivers all members till a infinite level of the tree back. - * - * @return Collection */ public function getAllLeaves(): Collection; /** * Delivers all branches till a infinite level of the actual tree back. - * - * @return Collection */ public function getAllBranches(): Collection; } diff --git a/application/symfony/src/Domain/Template/ActionTemplateNameService.php b/application/symfony/src/Domain/Template/ActionTemplateNameService.php index 38bb902..3ee86fd 100644 --- a/application/symfony/src/Domain/Template/ActionTemplateNameService.php +++ b/application/symfony/src/Domain/Template/ActionTemplateNameService.php @@ -12,9 +12,6 @@ final class ActionTemplateNameService extends TemplateNameService implements Act */ private $actionType; - /** - * @return string - */ protected function getActionType(): string { if ($this->actionType) { diff --git a/application/symfony/src/Domain/Template/TemplateNameService.php b/application/symfony/src/Domain/Template/TemplateNameService.php index 3627ea9..d5e40f6 100644 --- a/application/symfony/src/Domain/Template/TemplateNameService.php +++ b/application/symfony/src/Domain/Template/TemplateNameService.php @@ -44,33 +44,21 @@ class TemplateNameService implements TemplateNameServiceInterface */ private $requestedActionService; - /** - * @return string - */ protected function getActionType(): string { return $this->requestedActionService->getActionType(); } - /** - * @return string - */ protected function getClass(): string { return $this->requestedActionService->getRequestedEntity()->getClass(); } - /** - * @param RequestedActionServiceInterface $requestedActionService - */ public function __construct(RequestedActionServiceInterface $requestedActionService) { $this->requestedActionService = $requestedActionService; } - /** - * @return string - */ private function getBasePath(): string { $origineClass = $this->getClass(); @@ -98,9 +86,6 @@ class TemplateNameService implements TemplateNameServiceInterface return $lowerCase; } - /** - * @return string - */ private function getActionSuffix(): string { return '_'.strtolower($this->getActionType()); @@ -108,8 +93,6 @@ class TemplateNameService implements TemplateNameServiceInterface /** * @param string $type - * - * @return string */ private function getTemplatePath(?string $type): string { @@ -136,11 +119,6 @@ class TemplateNameService implements TemplateNameServiceInterface return $this->getTemplatePath(self::MOLECULE_PRAEFFIX); } - /** - * @param string $template - * - * @return bool - */ private function templateExists(string $template): bool { return file_exists(self::BASE_TEMPLATE_DIR.$template); diff --git a/application/symfony/src/Domain/Twig/ActionIconClassMapInterface.php b/application/symfony/src/Domain/Twig/ActionIconClassMapInterface.php index 05ee10b..1f3d8ac 100644 --- a/application/symfony/src/Domain/Twig/ActionIconClassMapInterface.php +++ b/application/symfony/src/Domain/Twig/ActionIconClassMapInterface.php @@ -9,10 +9,5 @@ namespace Infinito\Domain\Twig; */ interface ActionIconClassMapInterface { - /** - * @param string $action - * - * @return string - */ public function getIconClass(string $action): string; } diff --git a/application/symfony/src/Domain/Twig/LayerIconClassMapInterface.php b/application/symfony/src/Domain/Twig/LayerIconClassMapInterface.php index 295cb9c..c6f7973 100644 --- a/application/symfony/src/Domain/Twig/LayerIconClassMapInterface.php +++ b/application/symfony/src/Domain/Twig/LayerIconClassMapInterface.php @@ -9,10 +9,5 @@ namespace Infinito\Domain\Twig; */ interface LayerIconClassMapInterface { - /** - * @param string $layer - * - * @return string - */ public static function getIconClass(string $layer): string; } diff --git a/application/symfony/src/Domain/User/UserSourceDirector.php b/application/symfony/src/Domain/User/UserSourceDirector.php index 3f191ba..8d82778 100644 --- a/application/symfony/src/Domain/User/UserSourceDirector.php +++ b/application/symfony/src/Domain/User/UserSourceDirector.php @@ -2,10 +2,10 @@ namespace Infinito\Domain\User; -use Infinito\Entity\UserInterface; -use Infinito\Entity\User; -use Infinito\Repository\Source\SourceRepositoryInterface; use Infinito\Domain\Fixture\FixtureSource\GuestUserFixtureSource; +use Infinito\Entity\User; +use Infinito\Entity\UserInterface; +use Infinito\Repository\Source\SourceRepositoryInterface; /** * @author kevinfrantz @@ -37,8 +37,7 @@ final class UserSourceDirector implements UserSourceDirectorInterface } /** - * @param SourceRepositoryInterface $sourceRepository - * @param UserInterface $user + * @param UserInterface $user */ public function __construct(SourceRepositoryInterface $sourceRepository, ?UserInterface $user) { diff --git a/application/symfony/src/Domain/User/UserSourceDirectorInterface.php b/application/symfony/src/Domain/User/UserSourceDirectorInterface.php index 46f3e03..5991020 100644 --- a/application/symfony/src/Domain/User/UserSourceDirectorInterface.php +++ b/application/symfony/src/Domain/User/UserSourceDirectorInterface.php @@ -11,8 +11,5 @@ use Infinito\Entity\UserInterface; */ interface UserSourceDirectorInterface { - /** - * @return UserInterface - */ public function getUser(): UserInterface; } diff --git a/application/symfony/src/Domain/User/UserSourceDirectorService.php b/application/symfony/src/Domain/User/UserSourceDirectorService.php index 90758b5..0bdf156 100644 --- a/application/symfony/src/Domain/User/UserSourceDirectorService.php +++ b/application/symfony/src/Domain/User/UserSourceDirectorService.php @@ -2,11 +2,11 @@ namespace Infinito\Domain\User; -use Infinito\Entity\UserInterface; use Doctrine\ORM\EntityManager; -use Symfony\Component\Security\Core\Security; -use Infinito\Entity\Source\AbstractSource; use Doctrine\ORM\EntityManagerInterface; +use Infinito\Entity\Source\AbstractSource; +use Infinito\Entity\UserInterface; +use Symfony\Component\Security\Core\Security; /** * @author kevinfrantz @@ -27,7 +27,6 @@ final class UserSourceDirectorService implements UserSourceDirectorServiceInterf /** * @param EntityManager $entityManagerInterface - * @param Security $security */ public function __construct(EntityManagerInterface $entityManager, Security $security) { @@ -35,9 +34,6 @@ final class UserSourceDirectorService implements UserSourceDirectorServiceInterf $this->security = $security; } - /** - * @return UserSourceDirectorInterface - */ private function getUserSourceDirector(): UserSourceDirectorInterface { $sourceRepository = $this->entityManager->getRepository(AbstractSource::class); @@ -48,8 +44,6 @@ final class UserSourceDirectorService implements UserSourceDirectorServiceInterf /** * @todo Optimzed performance! - * - * @return UserInterface */ public function getUser(): UserInterface { diff --git a/application/symfony/src/Domain/User/UserSourceStandartRightMapInterface.php b/application/symfony/src/Domain/User/UserSourceStandartRightMapInterface.php index 308ea6e..5c4caa5 100644 --- a/application/symfony/src/Domain/User/UserSourceStandartRightMapInterface.php +++ b/application/symfony/src/Domain/User/UserSourceStandartRightMapInterface.php @@ -2,8 +2,8 @@ namespace Infinito\Domain\User; -use Infinito\DBAL\Types\Meta\Right\LayerType; use Infinito\DBAL\Types\ActionType; +use Infinito\DBAL\Types\Meta\Right\LayerType; /** * Containes the standart map. diff --git a/application/symfony/src/Domain/View/ViewBuilder.php b/application/symfony/src/Domain/View/ViewBuilder.php index dd6892a..79408a4 100644 --- a/application/symfony/src/Domain/View/ViewBuilder.php +++ b/application/symfony/src/Domain/View/ViewBuilder.php @@ -4,9 +4,9 @@ namespace Infinito\Domain\View; use FOS\RestBundle\View\View; use Infinito\Domain\Action\ActionFactoryServiceInterface; -use Infinito\Domain\Template\TemplateNameServiceInterface; -use Infinito\Domain\Parameter\ValidGetParameterServiceInterface; use Infinito\Domain\Parameter\Parameter\FrameParameter; +use Infinito\Domain\Parameter\ValidGetParameterServiceInterface; +use Infinito\Domain\Template\TemplateNameServiceInterface; /** * @author kevinfrantz @@ -45,8 +45,6 @@ final class ViewBuilder implements ViewServiceInterface /** * Containes the routine to decide if the template should be loaded with or without frame. - * - * @return bool */ private function checkLoadWithFrame(): bool { @@ -81,11 +79,6 @@ final class ViewBuilder implements ViewServiceInterface return self::TWIG_ENTITY_ATOM_TEMPLATE_PATH; } - /** - * @param ActionFactoryServiceInterface $actionFactoryService - * @param TemplateNameServiceInterface $templateNameService - * @param ValidGetParameterServiceInterface $validGetParameterService - */ public function __construct(ActionFactoryServiceInterface $actionFactoryService, TemplateNameServiceInterface $templateNameService, ValidGetParameterServiceInterface $validGetParameterService) { $this->view = View::create(); @@ -93,9 +86,6 @@ final class ViewBuilder implements ViewServiceInterface $this->validGetParameterService = $validGetParameterService; } - /** - * @return View - */ public function getView(): View { $template = $this->getTemplate(); diff --git a/application/symfony/src/Domain/View/ViewServiceInterface.php b/application/symfony/src/Domain/View/ViewServiceInterface.php index cd8ec1b..85ec26e 100644 --- a/application/symfony/src/Domain/View/ViewServiceInterface.php +++ b/application/symfony/src/Domain/View/ViewServiceInterface.php @@ -9,8 +9,5 @@ use FOS\RestBundle\View\View; */ interface ViewServiceInterface { - /** - * @return View - */ public function getView(): View; } diff --git a/application/symfony/src/Entity/AbstractEntity.php b/application/symfony/src/Entity/AbstractEntity.php index 985fe9a..8df53bf 100644 --- a/application/symfony/src/Entity/AbstractEntity.php +++ b/application/symfony/src/Entity/AbstractEntity.php @@ -2,8 +2,8 @@ namespace Infinito\Entity; -use Infinito\Attribut\IdAttribut; use Doctrine\ORM\Mapping as ORM; +use Infinito\Attribut\IdAttribut; use Infinito\Attribut\VersionAttribut; /** diff --git a/application/symfony/src/Entity/EntityInterface.php b/application/symfony/src/Entity/EntityInterface.php index 54f826c..1f45e9b 100644 --- a/application/symfony/src/Entity/EntityInterface.php +++ b/application/symfony/src/Entity/EntityInterface.php @@ -2,8 +2,8 @@ namespace Infinito\Entity; -use Infinito\Attribut\VersionAttributInterface; use Infinito\Attribut\IdAttributInterface; +use Infinito\Attribut\VersionAttributInterface; /** * @author kevinfrantz diff --git a/application/symfony/src/Entity/Meta/AbstractMeta.php b/application/symfony/src/Entity/Meta/AbstractMeta.php index 66bc6c2..865f28e 100644 --- a/application/symfony/src/Entity/Meta/AbstractMeta.php +++ b/application/symfony/src/Entity/Meta/AbstractMeta.php @@ -2,8 +2,8 @@ namespace Infinito\Entity\Meta; -use Infinito\Entity\AbstractEntity; use Infinito\Attribut\SourceAttribut; +use Infinito\Entity\AbstractEntity; /** * @todo Implement source attribut diff --git a/application/symfony/src/Entity/Meta/History/Journal.php b/application/symfony/src/Entity/Meta/History/Journal.php index 7f370dc..520f4d1 100644 --- a/application/symfony/src/Entity/Meta/History/Journal.php +++ b/application/symfony/src/Entity/Meta/History/Journal.php @@ -2,8 +2,8 @@ namespace Infinito\Entity\Meta\History; -use Infinito\Entity\Meta\AbstractMeta; use Infinito\Attribut\LogsAttribut; +use Infinito\Entity\Meta\AbstractMeta; /** * @author kevinfrantz diff --git a/application/symfony/src/Entity/Meta/History/LogInterface.php b/application/symfony/src/Entity/Meta/History/LogInterface.php index e0fd5b0..507bfad 100644 --- a/application/symfony/src/Entity/Meta/History/LogInterface.php +++ b/application/symfony/src/Entity/Meta/History/LogInterface.php @@ -2,11 +2,11 @@ namespace Infinito\Entity\Meta\History; -use Infinito\Entity\EntityInterface; use Infinito\Attribut\ActionTypeAttributInterface; use Infinito\Attribut\RecieverAttributInterface; use Infinito\Attribut\SourceAttributInterface; use Infinito\Attribut\TimestampAttributInterface; +use Infinito\Entity\EntityInterface; /** * Containes a log entry to every request wich is handled by infinito. diff --git a/application/symfony/src/Entity/Meta/Law.php b/application/symfony/src/Entity/Meta/Law.php index 15bdc7b..25b9fb6 100644 --- a/application/symfony/src/Entity/Meta/Law.php +++ b/application/symfony/src/Entity/Meta/Law.php @@ -2,11 +2,11 @@ namespace Infinito\Entity\Meta; -use Doctrine\ORM\Mapping as ORM; -use Infinito\Attribut\RightsAttribut; use Doctrine\Common\Collections\ArrayCollection; -use Infinito\Entity\Source\SourceInterface; +use Doctrine\ORM\Mapping as ORM; use Infinito\Attribut\GrantAttribut; +use Infinito\Attribut\RightsAttribut; +use Infinito\Entity\Source\SourceInterface; /** * @author kevinfrantz diff --git a/application/symfony/src/Entity/Meta/LawInterface.php b/application/symfony/src/Entity/Meta/LawInterface.php index d2c9652..4cb1d69 100644 --- a/application/symfony/src/Entity/Meta/LawInterface.php +++ b/application/symfony/src/Entity/Meta/LawInterface.php @@ -2,8 +2,8 @@ namespace Infinito\Entity\Meta; -use Infinito\Attribut\RightsAttributInterface; use Infinito\Attribut\GrantAttributInterface; +use Infinito\Attribut\RightsAttributInterface; /** * @author kevinfrantz diff --git a/application/symfony/src/Entity/Meta/MetaInterface.php b/application/symfony/src/Entity/Meta/MetaInterface.php index e18c890..c274129 100644 --- a/application/symfony/src/Entity/Meta/MetaInterface.php +++ b/application/symfony/src/Entity/Meta/MetaInterface.php @@ -2,8 +2,8 @@ namespace Infinito\Entity\Meta; -use Infinito\Entity\EntityInterface; use Infinito\Attribut\SourceAttributInterface; +use Infinito\Entity\EntityInterface; /** * Meta entities contain informations which describe sources. diff --git a/application/symfony/src/Entity/Meta/Relation/AbstractRelation.php b/application/symfony/src/Entity/Meta/Relation/AbstractRelation.php index 8de3e8b..7a46c60 100644 --- a/application/symfony/src/Entity/Meta/Relation/AbstractRelation.php +++ b/application/symfony/src/Entity/Meta/Relation/AbstractRelation.php @@ -2,9 +2,9 @@ namespace Infinito\Entity\Meta\Relation; +use Doctrine\ORM\Mapping as ORM; use Infinito\Entity\Meta\AbstractMeta; use Infinito\Entity\Source\SourceInterface; -use Doctrine\ORM\Mapping as ORM; /** * @author kevinfrantz diff --git a/application/symfony/src/Entity/Meta/Relation/Member/MemberRelation.php b/application/symfony/src/Entity/Meta/Relation/Member/MemberRelation.php index c93bcd8..64626be 100644 --- a/application/symfony/src/Entity/Meta/Relation/Member/MemberRelation.php +++ b/application/symfony/src/Entity/Meta/Relation/Member/MemberRelation.php @@ -2,12 +2,12 @@ namespace Infinito\Entity\Meta\Relation\Member; -use Infinito\Entity\Meta\Relation\AbstractRelation; -use Infinito\Attribut\MembersAttribut; -use Infinito\Attribut\MembershipsAttribut; +use Doctrine\Common\Collections\ArrayCollection; use Doctrine\Common\Collections\Collection; use Doctrine\ORM\Mapping as ORM; -use Doctrine\Common\Collections\ArrayCollection; +use Infinito\Attribut\MembersAttribut; +use Infinito\Attribut\MembershipsAttribut; +use Infinito\Entity\Meta\Relation\AbstractRelation; /** * @author kevinfrantz diff --git a/application/symfony/src/Entity/Meta/Relation/Member/MemberRelationInterface.php b/application/symfony/src/Entity/Meta/Relation/Member/MemberRelationInterface.php index 8e686c4..772a451 100644 --- a/application/symfony/src/Entity/Meta/Relation/Member/MemberRelationInterface.php +++ b/application/symfony/src/Entity/Meta/Relation/Member/MemberRelationInterface.php @@ -2,9 +2,9 @@ namespace Infinito\Entity\Meta\Relation\Member; -use Infinito\Entity\Meta\Relation\RelationInterface; use Infinito\Attribut\MembersAttributInterface; use Infinito\Attribut\MembershipsAttributInterface; +use Infinito\Entity\Meta\Relation\RelationInterface; interface MemberRelationInterface extends RelationInterface, MembersAttributInterface, MembershipsAttributInterface { diff --git a/application/symfony/src/Entity/Meta/Relation/Parent/AbstractParentRelation.php b/application/symfony/src/Entity/Meta/Relation/Parent/AbstractParentRelation.php index 58dfd5c..1e131fc 100644 --- a/application/symfony/src/Entity/Meta/Relation/Parent/AbstractParentRelation.php +++ b/application/symfony/src/Entity/Meta/Relation/Parent/AbstractParentRelation.php @@ -2,10 +2,10 @@ namespace Infinito\Entity\Meta\Relation\Parent; +use Doctrine\Common\Collections\ArrayCollection; +use Infinito\Attribut\ChildsAttribut; use Infinito\Attribut\IdAttribut; use Infinito\Attribut\ParentsAttribut; -use Infinito\Attribut\ChildsAttribut; -use Doctrine\Common\Collections\ArrayCollection; use Infinito\Entity\Meta\Relation\AbstractRelation; /** diff --git a/application/symfony/src/Entity/Meta/Relation/Parent/CreatorRelation.php b/application/symfony/src/Entity/Meta/Relation/Parent/CreatorRelation.php index 7e94829..90b2989 100644 --- a/application/symfony/src/Entity/Meta/Relation/Parent/CreatorRelation.php +++ b/application/symfony/src/Entity/Meta/Relation/Parent/CreatorRelation.php @@ -2,8 +2,8 @@ namespace Infinito\Entity\Meta\Relation\Parent; -use Doctrine\ORM\Mapping as ORM; use Doctrine\Common\Collections\Collection; +use Doctrine\ORM\Mapping as ORM; /** * @author kevinfrantz diff --git a/application/symfony/src/Entity/Meta/Relation/Parent/ParentRelationInterface.php b/application/symfony/src/Entity/Meta/Relation/Parent/ParentRelationInterface.php index ad4e6ea..ff21b45 100644 --- a/application/symfony/src/Entity/Meta/Relation/Parent/ParentRelationInterface.php +++ b/application/symfony/src/Entity/Meta/Relation/Parent/ParentRelationInterface.php @@ -2,8 +2,8 @@ namespace Infinito\Entity\Meta\Relation\Parent; -use Infinito\Attribut\ParentsAttributInterface; use Infinito\Attribut\ChildsAttributInterface; +use Infinito\Attribut\ParentsAttributInterface; use Infinito\Entity\Meta\Relation\RelationInterface; interface ParentRelationInterface extends RelationInterface, ParentsAttributInterface, ChildsAttributInterface diff --git a/application/symfony/src/Entity/Meta/Right.php b/application/symfony/src/Entity/Meta/Right.php index c31220a..75bd500 100644 --- a/application/symfony/src/Entity/Meta/Right.php +++ b/application/symfony/src/Entity/Meta/Right.php @@ -4,15 +4,15 @@ namespace Infinito\Entity\Meta; use Doctrine\ORM\Mapping as ORM; use Fresh\DoctrineEnumBundle\Validator\Constraints as DoctrineAssert; -use Infinito\Attribut\LawAttribut; -use Infinito\Attribut\GrantAttribut; -use Infinito\Logic\Operation\OperationInterface; +use Infinito\Attribut\ActionTypeAttribut; use Infinito\Attribut\ConditionAttribut; -use Infinito\Attribut\RecieverAttribut; +use Infinito\Attribut\GrantAttribut; +use Infinito\Attribut\LawAttribut; use Infinito\Attribut\LayerAttribut; use Infinito\Attribut\PriorityAttribut; +use Infinito\Attribut\RecieverAttribut; use Infinito\Entity\Source\SourceInterface; -use Infinito\Attribut\ActionTypeAttribut; +use Infinito\Logic\Operation\OperationInterface; /** * @author kevinfrantz diff --git a/application/symfony/src/Entity/Meta/RightInterface.php b/application/symfony/src/Entity/Meta/RightInterface.php index caa71ec..8062b32 100644 --- a/application/symfony/src/Entity/Meta/RightInterface.php +++ b/application/symfony/src/Entity/Meta/RightInterface.php @@ -2,13 +2,13 @@ namespace Infinito\Entity\Meta; -use Infinito\Attribut\LawAttributInterface; -use Infinito\Attribut\RecieverAttributInterface; -use Infinito\Attribut\GrantAttributInterface; +use Infinito\Attribut\ActionTypeAttributInterface; use Infinito\Attribut\ConditionAttributInterface; +use Infinito\Attribut\GrantAttributInterface; +use Infinito\Attribut\LawAttributInterface; use Infinito\Attribut\LayerAttributInterface; use Infinito\Attribut\PriorityAttributInterface; -use Infinito\Attribut\ActionTypeAttributInterface; +use Infinito\Attribut\RecieverAttributInterface; /** * @author kevinfrantz diff --git a/application/symfony/src/Entity/Source/AbstractSource.php b/application/symfony/src/Entity/Source/AbstractSource.php index 82057d7..ff54723 100644 --- a/application/symfony/src/Entity/Source/AbstractSource.php +++ b/application/symfony/src/Entity/Source/AbstractSource.php @@ -3,19 +3,19 @@ namespace Infinito\Entity\Source; use Doctrine\ORM\Mapping as ORM; -use JMS\Serializer\Annotation\Exclude; -use Infinito\Entity\AbstractEntity; -use Infinito\Attribut\LawAttribut; -use Infinito\Entity\Meta\LawInterface; -use Infinito\Entity\Meta\Law; -use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity; use Infinito\Attribut\CreatorRelationAttribut; -use Infinito\Entity\Meta\Relation\Parent\CreatorRelationInterface; -use Infinito\Entity\Meta\Relation\Parent\CreatorRelation; +use Infinito\Attribut\LawAttribut; use Infinito\Attribut\MemberRelationAttribut; +use Infinito\Attribut\SlugAttribut; +use Infinito\Entity\AbstractEntity; +use Infinito\Entity\Meta\Law; +use Infinito\Entity\Meta\LawInterface; use Infinito\Entity\Meta\Relation\Member\MemberRelation; use Infinito\Entity\Meta\Relation\Member\MemberRelationInterface; -use Infinito\Attribut\SlugAttribut; +use Infinito\Entity\Meta\Relation\Parent\CreatorRelation; +use Infinito\Entity\Meta\Relation\Parent\CreatorRelationInterface; +use JMS\Serializer\Annotation\Exclude; +use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity; use Symfony\Component\Validator\Constraints as Assert; /** diff --git a/application/symfony/src/Entity/Source/Complex/Collection/AbstractCollectionSource.php b/application/symfony/src/Entity/Source/Complex/Collection/AbstractCollectionSource.php index e75bec3..2f108df 100644 --- a/application/symfony/src/Entity/Source/Complex/Collection/AbstractCollectionSource.php +++ b/application/symfony/src/Entity/Source/Complex/Collection/AbstractCollectionSource.php @@ -2,12 +2,12 @@ namespace Infinito\Entity\Source\Complex\Collection; -use Infinito\Entity\Source\AbstractSource; -use Infinito\Attribut\CollectionAttribut; -use Doctrine\Common\Collections\Collection; -use Infinito\Entity\Source\SourceInterface; -use Doctrine\ORM\Mapping as ORM; use Doctrine\Common\Collections\ArrayCollection; +use Doctrine\Common\Collections\Collection; +use Doctrine\ORM\Mapping as ORM; +use Infinito\Attribut\CollectionAttribut; +use Infinito\Entity\Source\AbstractSource; +use Infinito\Entity\Source\SourceInterface; /** * @author kevinfrantz diff --git a/application/symfony/src/Entity/Source/Complex/Collection/CollectionSourceInterface.php b/application/symfony/src/Entity/Source/Complex/Collection/CollectionSourceInterface.php index 6e165e2..5841ed8 100644 --- a/application/symfony/src/Entity/Source/Complex/Collection/CollectionSourceInterface.php +++ b/application/symfony/src/Entity/Source/Complex/Collection/CollectionSourceInterface.php @@ -2,8 +2,8 @@ namespace Infinito\Entity\Source\Complex\Collection; -use Infinito\Entity\Source\SourceInterface; use Infinito\Attribut\CollectionAttributInterface; +use Infinito\Entity\Source\SourceInterface; interface CollectionSourceInterface extends SourceInterface, CollectionAttributInterface { diff --git a/application/symfony/src/Entity/Source/Complex/FullPersonNameSource.php b/application/symfony/src/Entity/Source/Complex/FullPersonNameSource.php index 26b25ee..01700d1 100644 --- a/application/symfony/src/Entity/Source/Complex/FullPersonNameSource.php +++ b/application/symfony/src/Entity/Source/Complex/FullPersonNameSource.php @@ -2,13 +2,13 @@ namespace Infinito\Entity\Source\Complex; +use Doctrine\ORM\Mapping as ORM; use Infinito\Attribut\FirstNameSourceAttribut; use Infinito\Attribut\SurnameSourceAttribut; -use Infinito\Entity\Source\Primitive\Name\SurnameSource; use Infinito\Entity\Source\Primitive\Name\FirstNameSource; -use Doctrine\ORM\Mapping as ORM; -use Infinito\Entity\Source\Primitive\Name\SurnameSourceInterface; use Infinito\Entity\Source\Primitive\Name\FirstNameSourceInterface; +use Infinito\Entity\Source\Primitive\Name\SurnameSource; +use Infinito\Entity\Source\Primitive\Name\SurnameSourceInterface; /** * @author kevinfrantz diff --git a/application/symfony/src/Entity/Source/Complex/PersonIdentitySource.php b/application/symfony/src/Entity/Source/Complex/PersonIdentitySource.php index 369bb10..dd0ddaa 100644 --- a/application/symfony/src/Entity/Source/Complex/PersonIdentitySource.php +++ b/application/symfony/src/Entity/Source/Complex/PersonIdentitySource.php @@ -2,8 +2,8 @@ namespace Infinito\Entity\Source\Complex; -use Infinito\Attribut\FullPersonNameSourceAttribut; use Doctrine\ORM\Mapping as ORM; +use Infinito\Attribut\FullPersonNameSourceAttribut; /** * @author kevinfrantz diff --git a/application/symfony/src/Entity/Source/Complex/UserSource.php b/application/symfony/src/Entity/Source/Complex/UserSource.php index ca80286..b8688c7 100644 --- a/application/symfony/src/Entity/Source/Complex/UserSource.php +++ b/application/symfony/src/Entity/Source/Complex/UserSource.php @@ -3,11 +3,11 @@ namespace Infinito\Entity\Source\Complex; use Doctrine\ORM\Mapping as ORM; -use Infinito\Attribut\UserAttribut; -use Infinito\Entity\UserInterface; use Infinito\Attribut\PersonIdentitySourceAttribut; -use Infinito\Entity\Meta\Right; +use Infinito\Attribut\UserAttribut; use Infinito\Domain\User\UserSourceStandartRightMapInterface; +use Infinito\Entity\Meta\Right; +use Infinito\Entity\UserInterface; /** * @author kevinfrantz diff --git a/application/symfony/src/Entity/Source/Complex/UserSourceInterface.php b/application/symfony/src/Entity/Source/Complex/UserSourceInterface.php index e821c58..595d66a 100644 --- a/application/symfony/src/Entity/Source/Complex/UserSourceInterface.php +++ b/application/symfony/src/Entity/Source/Complex/UserSourceInterface.php @@ -2,8 +2,8 @@ namespace Infinito\Entity\Source\Complex; -use Infinito\Attribut\UserAttributInterface; use Infinito\Attribut\PersonIdentitySourceAttributInterface; +use Infinito\Attribut\UserAttributInterface; /** * @author kevinfrantz @@ -12,8 +12,6 @@ interface UserSourceInterface extends ComplexSourceInterface, UserAttributInterf { /** * Checks if the user has an identity source. - * - * @return bool */ public function hasPersonIdentitySource(): bool; } diff --git a/application/symfony/src/Entity/Source/Operation/AbstractOperation.php b/application/symfony/src/Entity/Source/Operation/AbstractOperation.php index 710fe71..e7eb6a6 100644 --- a/application/symfony/src/Entity/Source/Operation/AbstractOperation.php +++ b/application/symfony/src/Entity/Source/Operation/AbstractOperation.php @@ -2,13 +2,13 @@ namespace Infinito\Entity\Source\Operation; -use Infinito\Logic\Result\ResultInterface; -use Infinito\Logic\Operation\OperandInterface; use Doctrine\Common\Collections\ArrayCollection; use Doctrine\ORM\Mapping as ORM; use Infinito\Entity\Source\AbstractSource; use Infinito\Entity\Source\Operation\Attribut\OperandsAttribut; use Infinito\Exception\Deprecated\NotProcessedException; +use Infinito\Logic\Operation\OperandInterface; +use Infinito\Logic\Result\ResultInterface; /** * @author kevinfrantz diff --git a/application/symfony/src/Entity/Source/Operation/AndOperation.php b/application/symfony/src/Entity/Source/Operation/AndOperation.php index d50f625..2c3b8a9 100644 --- a/application/symfony/src/Entity/Source/Operation/AndOperation.php +++ b/application/symfony/src/Entity/Source/Operation/AndOperation.php @@ -2,9 +2,9 @@ namespace Infinito\Entity\Source\Operation; -use Infinito\Logic\Result\Result; use Doctrine\ORM\Mapping as ORM; use Infinito\Exception\Attribut\UndefinedAttributException; +use Infinito\Logic\Result\Result; /** * @author kevinfrantz diff --git a/application/symfony/src/Entity/Source/Operation/Attribut/OperandsAttribut.php b/application/symfony/src/Entity/Source/Operation/Attribut/OperandsAttribut.php index c2de9cd..98172b1 100644 --- a/application/symfony/src/Entity/Source/Operation/Attribut/OperandsAttribut.php +++ b/application/symfony/src/Entity/Source/Operation/Attribut/OperandsAttribut.php @@ -19,9 +19,6 @@ trait OperandsAttribut $this->operands = $operands; } - /** - * @return Collection - */ public function getOperands(): Collection { return $this->operands; diff --git a/application/symfony/src/Entity/Source/Operation/Attribut/OperandsAttributInterface.php b/application/symfony/src/Entity/Source/Operation/Attribut/OperandsAttributInterface.php index 154fce5..a10d191 100644 --- a/application/symfony/src/Entity/Source/Operation/Attribut/OperandsAttributInterface.php +++ b/application/symfony/src/Entity/Source/Operation/Attribut/OperandsAttributInterface.php @@ -11,8 +11,5 @@ interface OperandsAttributInterface */ public function setOperands(Collection $operands): void; - /** - * @return Collection - */ public function getOperands(): Collection; } diff --git a/application/symfony/src/Entity/Source/Primitive/Name/AbstractNameSource.php b/application/symfony/src/Entity/Source/Primitive/Name/AbstractNameSource.php index ccd92c8..1261164 100644 --- a/application/symfony/src/Entity/Source/Primitive/Name/AbstractNameSource.php +++ b/application/symfony/src/Entity/Source/Primitive/Name/AbstractNameSource.php @@ -2,9 +2,9 @@ namespace Infinito\Entity\Source\Primitive\Name; -use Infinito\Entity\Source\Primitive\AbstractPrimitiveSource; -use Infinito\Attribut\NameAttribut; use Doctrine\ORM\Mapping as ORM; +use Infinito\Attribut\NameAttribut; +use Infinito\Entity\Source\Primitive\AbstractPrimitiveSource; use Symfony\Component\Validator\Constraints as Assert; /** diff --git a/application/symfony/src/Entity/Source/Primitive/Name/NameSourceInterface.php b/application/symfony/src/Entity/Source/Primitive/Name/NameSourceInterface.php index 0c8b219..9560c8b 100644 --- a/application/symfony/src/Entity/Source/Primitive/Name/NameSourceInterface.php +++ b/application/symfony/src/Entity/Source/Primitive/Name/NameSourceInterface.php @@ -2,8 +2,8 @@ namespace Infinito\Entity\Source\Primitive\Name; -use Infinito\Entity\Source\Primitive\PrimitiveSourceInterface; use Infinito\Attribut\NameAttributInterface; +use Infinito\Entity\Source\Primitive\PrimitiveSourceInterface; interface NameSourceInterface extends PrimitiveSourceInterface, NameAttributInterface { diff --git a/application/symfony/src/Entity/Source/Primitive/Text/TextSource.php b/application/symfony/src/Entity/Source/Primitive/Text/TextSource.php index a2cf23c..d026b76 100644 --- a/application/symfony/src/Entity/Source/Primitive/Text/TextSource.php +++ b/application/symfony/src/Entity/Source/Primitive/Text/TextSource.php @@ -2,9 +2,9 @@ namespace Infinito\Entity\Source\Primitive\Text; -use Infinito\Entity\Source\Primitive\AbstractPrimitiveSource; -use Infinito\Attribut\TextAttribut; use Doctrine\ORM\Mapping as ORM; +use Infinito\Attribut\TextAttribut; +use Infinito\Entity\Source\Primitive\AbstractPrimitiveSource; /** * @author kevinfrantz diff --git a/application/symfony/src/Entity/Source/Primitive/Text/TextSourceInterface.php b/application/symfony/src/Entity/Source/Primitive/Text/TextSourceInterface.php index 873a20c..cbd4464 100644 --- a/application/symfony/src/Entity/Source/Primitive/Text/TextSourceInterface.php +++ b/application/symfony/src/Entity/Source/Primitive/Text/TextSourceInterface.php @@ -2,8 +2,8 @@ namespace Infinito\Entity\Source\Primitive\Text; -use Infinito\Entity\Source\Primitive\PrimitiveSourceInterface; use Infinito\Attribut\TextAttributInterface; +use Infinito\Entity\Source\Primitive\PrimitiveSourceInterface; interface TextSourceInterface extends PrimitiveSourceInterface, TextAttributInterface { diff --git a/application/symfony/src/Entity/Source/SourceInterface.php b/application/symfony/src/Entity/Source/SourceInterface.php index 0553a1f..ef89fc5 100644 --- a/application/symfony/src/Entity/Source/SourceInterface.php +++ b/application/symfony/src/Entity/Source/SourceInterface.php @@ -2,12 +2,12 @@ namespace Infinito\Entity\Source; -use Infinito\Attribut\IdAttributInterface; -use Infinito\Entity\EntityInterface; -use Infinito\Attribut\LawAttributInterface; use Infinito\Attribut\CreatorRelationAttributInterface; +use Infinito\Attribut\IdAttributInterface; +use Infinito\Attribut\LawAttributInterface; use Infinito\Attribut\MemberRelationAttributInterface; use Infinito\Attribut\SlugAttributInterface; +use Infinito\Entity\EntityInterface; /** * @author kevinfrantz diff --git a/application/symfony/src/Entity/User.php b/application/symfony/src/Entity/User.php index e3321dd..b19b19d 100644 --- a/application/symfony/src/Entity/User.php +++ b/application/symfony/src/Entity/User.php @@ -4,11 +4,11 @@ namespace Infinito\Entity; use Doctrine\ORM\Mapping as ORM; use FOS\UserBundle\Model\User as BaseUser; -use Infinito\Attribut\SourceAttribut; use Infinito\Attribut\IdAttribut; -use Infinito\Entity\Source\Complex\UserSourceInterface; -use Infinito\Entity\Source\Complex\UserSource; +use Infinito\Attribut\SourceAttribut; use Infinito\Attribut\VersionAttribut; +use Infinito\Entity\Source\Complex\UserSource; +use Infinito\Entity\Source\Complex\UserSourceInterface; /** * @author kevinfrantz diff --git a/application/symfony/src/Event/Menu/MenuEvent.php b/application/symfony/src/Event/Menu/MenuEvent.php index 80910ab..fbbb6c1 100644 --- a/application/symfony/src/Event/Menu/MenuEvent.php +++ b/application/symfony/src/Event/Menu/MenuEvent.php @@ -34,25 +34,16 @@ class MenuEvent extends Event $this->request = $request; } - /** - * @return FactoryInterface - */ public function getFactory(): FactoryInterface { return $this->factory; } - /** - * @return ItemInterface - */ public function getItem(): ItemInterface { return $this->item; } - /** - * @return RequestStack - */ public function getRequest(): RequestStack { return $this->request; diff --git a/application/symfony/src/Form/Entity/Source/Primitive/Text/TextSourceCreateType.php b/application/symfony/src/Form/Entity/Source/Primitive/Text/TextSourceCreateType.php index ac406af..9929c0b 100644 --- a/application/symfony/src/Form/Entity/Source/Primitive/Text/TextSourceCreateType.php +++ b/application/symfony/src/Form/Entity/Source/Primitive/Text/TextSourceCreateType.php @@ -2,11 +2,11 @@ namespace Infinito\Form\Entity\Source\Primitive\Text; -use Symfony\Component\Form\FormBuilderInterface; -use Symfony\Component\OptionsResolver\OptionsResolver; -use Symfony\Component\Form\Extension\Core\Type\TextType; use Infinito\Entity\Source\Primitive\Text\TextSource; use Infinito\Form\Entity\Source\SourceFormType; +use Symfony\Component\Form\Extension\Core\Type\TextType; +use Symfony\Component\Form\FormBuilderInterface; +use Symfony\Component\OptionsResolver\OptionsResolver; /** * @author kevinfrantz diff --git a/application/symfony/src/Form/Entity/Source/PureSourceCreateType.php b/application/symfony/src/Form/Entity/Source/PureSourceCreateType.php index 248da85..893a428 100644 --- a/application/symfony/src/Form/Entity/Source/PureSourceCreateType.php +++ b/application/symfony/src/Form/Entity/Source/PureSourceCreateType.php @@ -2,11 +2,11 @@ namespace Infinito\Form\Entity\Source; +use Infinito\Attribut\ClassAttributInterface; +use Infinito\Attribut\SlugAttributInterface; +use Infinito\Entity\Source\PureSource; use Symfony\Component\Form\FormBuilderInterface; use Symfony\Component\OptionsResolver\OptionsResolver; -use Infinito\Entity\Source\PureSource; -use Infinito\Attribut\SlugAttributInterface; -use Infinito\Attribut\ClassAttributInterface; /** * @author kevinfrantz diff --git a/application/symfony/src/Form/Type/SourceType.php b/application/symfony/src/Form/Type/SourceType.php index e1c0af8..1c59a3a 100644 --- a/application/symfony/src/Form/Type/SourceType.php +++ b/application/symfony/src/Form/Type/SourceType.php @@ -2,10 +2,10 @@ namespace Infinito\Form\Type; -use Infinito\Form\AbstractType; -use Symfony\Component\OptionsResolver\OptionsResolver; -use Symfony\Component\Form\Extension\Core\Type\ChoiceType; use Infinito\Domain\Source\SourceClassInformationService; +use Infinito\Form\AbstractType; +use Symfony\Component\Form\Extension\Core\Type\ChoiceType; +use Symfony\Component\OptionsResolver\OptionsResolver; /** * @author kevinfrantz @@ -15,8 +15,6 @@ final class SourceType extends AbstractType implements SourceTypeInterface const UNUSED_PRAEFIX = 'Infinito\\Entity\\Source'; /** - * @param string $class - * * @return string Key which can be used in choice selection */ private function getChoiceKey(string $class): string @@ -24,9 +22,6 @@ final class SourceType extends AbstractType implements SourceTypeInterface return str_replace(self::UNUSED_PRAEFIX, '', $class); } - /** - * @return array - */ private function getChoices(): array { $choices = []; diff --git a/application/symfony/src/Form/UserType.php b/application/symfony/src/Form/UserType.php index b139380..73a330a 100644 --- a/application/symfony/src/Form/UserType.php +++ b/application/symfony/src/Form/UserType.php @@ -3,11 +3,11 @@ namespace Infinito\Form; use Infinito\Entity\User; +use Symfony\Component\Form\Extension\Core\Type\PasswordType; +use Symfony\Component\Form\Extension\Core\Type\RepeatedType; +use Symfony\Component\Form\Extension\Core\Type\TextType; use Symfony\Component\Form\FormBuilderInterface; use Symfony\Component\OptionsResolver\OptionsResolver; -use Symfony\Component\Form\Extension\Core\Type\TextType; -use Symfony\Component\Form\Extension\Core\Type\RepeatedType; -use Symfony\Component\Form\Extension\Core\Type\PasswordType; class UserType extends AbstractType { diff --git a/application/symfony/src/Logic/Operation/OperandInterface.php b/application/symfony/src/Logic/Operation/OperandInterface.php index cc7ada1..7fa3fe9 100644 --- a/application/symfony/src/Logic/Operation/OperandInterface.php +++ b/application/symfony/src/Logic/Operation/OperandInterface.php @@ -11,8 +11,6 @@ interface OperandInterface { /** * Returns the result of the Operation. - * - * @return ResultInterface */ public function getResult(): ResultInterface; } diff --git a/application/symfony/src/Logic/Result/ResultInterface.php b/application/symfony/src/Logic/Result/ResultInterface.php index 646f853..392ad82 100644 --- a/application/symfony/src/Logic/Result/ResultInterface.php +++ b/application/symfony/src/Logic/Result/ResultInterface.php @@ -20,8 +20,6 @@ interface ResultInterface /** * Returns if the result is true. - * - * @return bool */ public function getBool(): bool; diff --git a/application/symfony/src/Menu/Menu.php b/application/symfony/src/Menu/Menu.php index efbd880..2d06638 100644 --- a/application/symfony/src/Menu/Menu.php +++ b/application/symfony/src/Menu/Menu.php @@ -2,12 +2,12 @@ namespace Infinito\Menu; +use Infinito\DBAL\Types\MenuEventType; +use Infinito\Event\Menu\MenuEvent; use Knp\Menu\FactoryInterface; use Knp\Menu\ItemInterface; use Symfony\Component\EventDispatcher\EventDispatcherInterface; use Symfony\Component\HttpFoundation\RequestStack; -use Infinito\Event\Menu\MenuEvent; -use Infinito\DBAL\Types\MenuEventType; class Menu { @@ -21,32 +21,17 @@ class Menu */ private $factory; - /** - * @param FactoryInterface $factory - * @param EventDispatcherInterface $dispatcher - */ public function __construct(FactoryInterface $factory, EventDispatcherInterface $dispatcher) { $this->dispatcher = $dispatcher; $this->factory = $factory; } - /** - * @param RequestStack $request - * - * @return ItemInterface - */ public function userTopbar(RequestStack $request): ItemInterface { return $this->createMenu(MenuEventType::USER, $request); } - /** - * @param string $type - * @param RequestStack $request - * - * @return ItemInterface - */ private function createMenu(string $type, RequestStack $request): ItemInterface { $menu = $this->createBasicMenuItem(); @@ -55,9 +40,6 @@ class Menu return $menu; } - /** - * @return ItemInterface - */ private function createBasicMenuItem(): ItemInterface { return $this->factory->createItem('root', [ diff --git a/application/symfony/src/Repository/RepositoryInterface.php b/application/symfony/src/Repository/RepositoryInterface.php index c1e9df6..3c3b679 100644 --- a/application/symfony/src/Repository/RepositoryInterface.php +++ b/application/symfony/src/Repository/RepositoryInterface.php @@ -2,8 +2,8 @@ namespace Infinito\Repository; -use Doctrine\Common\Persistence\ObjectRepository; use Doctrine\Common\Collections\Selectable; +use Doctrine\Common\Persistence\ObjectRepository; /** * @author kevinfrantz diff --git a/application/symfony/src/Repository/Source/SourceRepository.php b/application/symfony/src/Repository/Source/SourceRepository.php index 5fdae15..a4350f7 100644 --- a/application/symfony/src/Repository/Source/SourceRepository.php +++ b/application/symfony/src/Repository/Source/SourceRepository.php @@ -2,8 +2,8 @@ namespace Infinito\Repository\Source; -use Infinito\Entity\Source\SourceInterface; use Infinito\Domain\Request\Entity\RequestedEntityInterface; +use Infinito\Entity\Source\SourceInterface; use Infinito\Repository\AbstractRepository; /** diff --git a/application/symfony/src/Repository/Source/SourceRepositoryInterface.php b/application/symfony/src/Repository/Source/SourceRepositoryInterface.php index 23715e5..5ebaaa1 100644 --- a/application/symfony/src/Repository/Source/SourceRepositoryInterface.php +++ b/application/symfony/src/Repository/Source/SourceRepositoryInterface.php @@ -2,8 +2,8 @@ namespace Infinito\Repository\Source; -use Infinito\Entity\Source\SourceInterface; use Infinito\Domain\Request\Entity\RequestedEntityInterface; +use Infinito\Entity\Source\SourceInterface; use Infinito\Repository\RepositoryInterface; /** @@ -13,19 +13,11 @@ interface SourceRepositoryInterface extends RepositoryInterface { /** * Finds an Entity by slug. - * - * @param string $slug - * - * @return SourceInterface|null */ public function findOneBySlug(string $slug): ?SourceInterface; /** * Loads a source by id or if not defined, by slug. - * - * @param RequestedEntityInterface $requestedSource - * - * @return SourceInterface|null */ public function findOneByIdOrSlug(RequestedEntityInterface $requestedSource): ?SourceInterface; } diff --git a/application/symfony/src/Subscriber/AbstractEntityMenuSubscriber.php b/application/symfony/src/Subscriber/AbstractEntityMenuSubscriber.php index c05813b..866703b 100644 --- a/application/symfony/src/Subscriber/AbstractEntityMenuSubscriber.php +++ b/application/symfony/src/Subscriber/AbstractEntityMenuSubscriber.php @@ -2,14 +2,14 @@ namespace Infinito\Subscriber; -use Symfony\Component\EventDispatcher\EventSubscriberInterface; -use Knp\Menu\ItemInterface; -use Symfony\Component\EventDispatcher\Event; -use Symfony\Component\Translation\TranslatorInterface; -use Infinito\DBAL\Types\RESTResponseType; -use Symfony\Component\HttpFoundation\Request; use FOS\RestBundle\Request\ParameterBag; use Infinito\Controller\AbstractController; +use Infinito\DBAL\Types\RESTResponseType; +use Knp\Menu\ItemInterface; +use Symfony\Component\EventDispatcher\Event; +use Symfony\Component\EventDispatcher\EventSubscriberInterface; +use Symfony\Component\HttpFoundation\Request; +use Symfony\Component\Translation\TranslatorInterface; /** * This class is just a result of refactoring. Feel free to replace it. @@ -23,19 +23,11 @@ abstract class AbstractEntityMenuSubscriber implements EventSubscriberInterface */ protected $translator; - /** - * @param TranslatorInterface $translator - */ public function __construct(TranslatorInterface $translator) { $this->translator = $translator; } - /** - * @param ItemInterface $menu - * @param Event $event - * @param string $route - */ protected function generateShowDropdown(ItemInterface $menu, Event $event, string $route): void { $dropdown = $menu->addChild($this->trans('format'), [ @@ -63,30 +55,17 @@ abstract class AbstractEntityMenuSubscriber implements EventSubscriberInterface ]); } - /** - * @param string $id - * @param array $parameter - * - * @return string - */ protected function trans(string $id, array $parameter = []): string { return $this->translator->trans($id, $parameter); } - /** - * @param Event $event - * - * @return Request - */ private function getCurrentRequest(Event $event): Request { return $event->getRequest()->getCurrentRequest(); } /** - * @param Event $event - * * @return ParameterBag */ protected function getRequestAttributs(Event $event): array @@ -95,9 +74,6 @@ abstract class AbstractEntityMenuSubscriber implements EventSubscriberInterface } /** - * @param Event $event - * @param string $format - * * @return number|string */ private function getRequestAttributsSubstitutedFormat(Event $event, string $format): array diff --git a/application/symfony/src/Subscriber/UserMenuSubscriber.php b/application/symfony/src/Subscriber/UserMenuSubscriber.php index 3a32135..1e67bfa 100644 --- a/application/symfony/src/Subscriber/UserMenuSubscriber.php +++ b/application/symfony/src/Subscriber/UserMenuSubscriber.php @@ -2,24 +2,24 @@ namespace Infinito\Subscriber; -use Symfony\Component\EventDispatcher\EventSubscriberInterface; -use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface; -use Symfony\Component\Translation\TranslatorInterface; -use Knp\Menu\ItemInterface; -use Infinito\Event\Menu\MenuEvent; -use Infinito\DBAL\Types\MenuEventType; -use Symfony\Component\Security\Core\Authentication\Token\TokenInterface; -use Symfony\Component\EventDispatcher\Event; -use Infinito\DBAL\Types\RESTResponseType; -use Infinito\DBAL\Types\Meta\Right\LayerType; use Infinito\Controller\API\Rest\LayerController; -use Infinito\Domain\Fixture\FixtureSourceFactory; +use Infinito\DBAL\Types\MenuEventType; +use Infinito\DBAL\Types\Meta\Right\LayerType; +use Infinito\DBAL\Types\RESTResponseType; use Infinito\Domain\Fixture\FixtureSource\FixtureSourceInterface; use Infinito\Domain\Fixture\FixtureSource\GuestUserFixtureSource; +use Infinito\Domain\Fixture\FixtureSource\HelpFixtureSource; use Infinito\Domain\Fixture\FixtureSource\HomepageFixtureSource; use Infinito\Domain\Fixture\FixtureSource\ImpressumFixtureSource; use Infinito\Domain\Fixture\FixtureSource\InformationFixtureSource; -use Infinito\Domain\Fixture\FixtureSource\HelpFixtureSource; +use Infinito\Domain\Fixture\FixtureSourceFactory; +use Infinito\Event\Menu\MenuEvent; +use Knp\Menu\ItemInterface; +use Symfony\Component\EventDispatcher\Event; +use Symfony\Component\EventDispatcher\EventSubscriberInterface; +use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface; +use Symfony\Component\Security\Core\Authentication\Token\TokenInterface; +use Symfony\Component\Translation\TranslatorInterface; /** * @author kevinfrantz @@ -38,10 +38,6 @@ class UserMenuSubscriber extends AbstractEntityMenuSubscriber implements EventSu */ private $fixtureSources; - /** - * @param TokenStorageInterface $tokenStorage - * @param TranslatorInterface $translator - */ public function __construct(TokenStorageInterface $tokenStorage, TranslatorInterface $translator) { $this->fixtureSources = FixtureSourceFactory::getAllFixtureSources(); @@ -49,21 +45,12 @@ class UserMenuSubscriber extends AbstractEntityMenuSubscriber implements EventSu parent::__construct($translator); } - /** - * @param ItemInterface $item - * @param string $slug - */ private function deleteAndAddToItem(ItemInterface $item, string $slug): void { $fixtureSource = $this->getAndDeleteFixtureSource($slug); $this->addFixtureSourceToItem($item, $fixtureSource); } - /** - * @param string $slug - * - * @return FixtureSourceInterface - */ private function getAndDeleteFixtureSource(string $slug): FixtureSourceInterface { $result = clone $this->fixtureSources[$slug]; @@ -72,9 +59,6 @@ class UserMenuSubscriber extends AbstractEntityMenuSubscriber implements EventSu return $result; } - /** - * @param MenuEvent $event - */ public function onUserMenuConfigure(MenuEvent $event): void { $menu = $event->getItem(); @@ -90,10 +74,6 @@ class UserMenuSubscriber extends AbstractEntityMenuSubscriber implements EventSu } } - /** - * @param ItemInterface $item - * @param FixtureSourceInterface $fixtureSource - */ private function addFixtureSourceToItem(ItemInterface $item, FixtureSourceInterface $fixtureSource): void { $slug = $fixtureSource::getSlug(); @@ -103,9 +83,6 @@ class UserMenuSubscriber extends AbstractEntityMenuSubscriber implements EventSu } /** - * @param string $identity - * @param string $icon - * * @return [] */ private function getSourceItemConfigurationArray(string $identity, string $icon) @@ -123,17 +100,11 @@ class UserMenuSubscriber extends AbstractEntityMenuSubscriber implements EventSu ]; } - /** - * @return TokenInterface|null - */ private function getToken(): ?TokenInterface { return $this->tokenStorage->getToken(); } - /** - * @return string - */ private function getUsername(): string { $token = $this->getToken(); @@ -141,9 +112,6 @@ class UserMenuSubscriber extends AbstractEntityMenuSubscriber implements EventSu return ($token) ? $token->getUsername() : $this->trans('user'); } - /** - * @return array|null - */ private function getRoles(): ?array { $token = $this->getToken(); @@ -151,9 +119,6 @@ class UserMenuSubscriber extends AbstractEntityMenuSubscriber implements EventSu return ($token) ? $token->getRoles() : null; } - /** - * @param ItemInterface $menu - */ private function generateUserDropdown(ItemInterface $menu): void { $dropdown = $menu->addChild($this->getUsername(), [ @@ -201,9 +166,6 @@ class UserMenuSubscriber extends AbstractEntityMenuSubscriber implements EventSu } } - /** - * @return array - */ public static function getSubscribedEvents(): array { return [ @@ -211,11 +173,6 @@ class UserMenuSubscriber extends AbstractEntityMenuSubscriber implements EventSu ]; } - /** - * @param Event $event - * - * @return bool - */ private function shouldShowFormatSelection(Event $event): bool { foreach ([ diff --git a/application/symfony/tests/AbstractTestCase.php b/application/symfony/tests/AbstractTestCase.php index 35cb18e..126682e 100644 --- a/application/symfony/tests/AbstractTestCase.php +++ b/application/symfony/tests/AbstractTestCase.php @@ -32,9 +32,7 @@ abstract class AbstractTestCase extends TestCase } /** - * @param object $object - * @param string $property - * @param mixed $value + * @param mixed $value */ public function setProperty(object &$object, string $property, $value): void { @@ -44,11 +42,6 @@ abstract class AbstractTestCase extends TestCase $reflectionProperty->setValue($object, $value); } - /** - * @param object $object - * - * @return \ReflectionClass - */ private function getReflectionClassByObject(object &$object): \ReflectionClass { return new \ReflectionClass(get_class($object)); diff --git a/application/symfony/tests/Functional/FormatFunctionTest.php b/application/symfony/tests/Functional/FormatFunctionTest.php index a1f4175..6ae6e44 100644 --- a/application/symfony/tests/Functional/FormatFunctionTest.php +++ b/application/symfony/tests/Functional/FormatFunctionTest.php @@ -2,10 +2,10 @@ namespace Tests\Functional; -use Symfony\Component\HttpFoundation\Request; -use Symfony\Bundle\FrameworkBundle\Test\WebTestCase; -use Symfony\Bundle\FrameworkBundle\Client; use Infinito\Domain\Fixture\FixtureSource\HomepageFixtureSource; +use Symfony\Bundle\FrameworkBundle\Client; +use Symfony\Bundle\FrameworkBundle\Test\WebTestCase; +use Symfony\Component\HttpFoundation\Request; /** * @author kevinfrantz diff --git a/application/symfony/tests/Functional/FrameFunctionTest.php b/application/symfony/tests/Functional/FrameFunctionTest.php index 48eabe7..db1d99f 100644 --- a/application/symfony/tests/Functional/FrameFunctionTest.php +++ b/application/symfony/tests/Functional/FrameFunctionTest.php @@ -2,8 +2,8 @@ namespace Tests\Functional; -use Symfony\Component\HttpFoundation\Request; use Symfony\Bundle\FrameworkBundle\Test\WebTestCase; +use Symfony\Component\HttpFoundation\Request; /** * @author kevinfrantz diff --git a/application/symfony/tests/Functional/RoutesReachableFunctionTest.php b/application/symfony/tests/Functional/RoutesReachableFunctionTest.php index 9143f98..547165e 100644 --- a/application/symfony/tests/Functional/RoutesReachableFunctionTest.php +++ b/application/symfony/tests/Functional/RoutesReachableFunctionTest.php @@ -36,10 +36,6 @@ class RoutesReachableFunctionTest extends KernelTestCase } } - /** - * @param string $url - * @param int $status - */ private function parameterlesGetRouteTest(string $url, int $status): void { $request = new Request([], [], [], [], [], ['REQUEST_URI' => $url, null]); diff --git a/application/symfony/tests/Integration/Attribut/AttributIntegrationTest.php b/application/symfony/tests/Integration/Attribut/AttributIntegrationTest.php index 0780217..dbf90a5 100644 --- a/application/symfony/tests/Integration/Attribut/AttributIntegrationTest.php +++ b/application/symfony/tests/Integration/Attribut/AttributIntegrationTest.php @@ -60,19 +60,11 @@ class AttributIntegrationTest extends TestCase return $interface->isInterface(); } - /** - * @param \ReflectionClass $interface - * - * @return string - */ private function getTraitName(\ReflectionClass $interface): string { return substr($interface->getName(), 0, -strlen(self::INTERFACE_SUFFIX)); } - /** - * @param \ReflectionClass $interface - */ private function validateHasTrait(\ReflectionClass $interface): void { $interfaceName = $interface->getName(); @@ -80,9 +72,6 @@ class AttributIntegrationTest extends TestCase $this->assertTrue(trait_exists($trait), "Trait <<$trait>> for interface <<$interfaceName>> MUST exist!"); } - /** - * @param \ReflectionClass $trait - */ private function validateHasInterface(\ReflectionClass $trait): void { $traitName = $trait->getName(); @@ -90,21 +79,11 @@ class AttributIntegrationTest extends TestCase $this->assertTrue(interface_exists($interface), "Interface <<$interface>> for trait <<$traitName>> does not exist!"); } - /** - * @param \ReflectionClass $interface - * - * @return string - */ private function getAttributName(\ReflectionClass $interface): string { return substr($interface->getShortName(), 0, -strlen(self::CONCAT_INTERFACE_SUFFIX)); } - /** - * @param \ReflectionClass $interface - * - * @return string - */ private function getConstantName(\ReflectionClass $interface): string { $name = strtoupper($this->getAttributName($interface)); @@ -112,9 +91,6 @@ class AttributIntegrationTest extends TestCase return $name.'_ATTRIBUT_NAME'; } - /** - * @param \ReflectionClass $interface - */ private function validateConstants(\ReflectionClass $interface): void { $constants = $interface->getConstants(); @@ -125,9 +101,6 @@ class AttributIntegrationTest extends TestCase } } - /** - * @param \ReflectionClass $interface - */ private function validateMethods(\ReflectionClass $interface): void { $methods = get_class_methods($interface->getName()); @@ -141,11 +114,6 @@ class AttributIntegrationTest extends TestCase } } - /** - * @param \ReflectionClass $interface - * - * @return array - */ private function getNeccessaryMethods(\ReflectionClass $interface): array { $possibleMethods = []; @@ -157,11 +125,6 @@ class AttributIntegrationTest extends TestCase return $possibleMethods; } - /** - * @param \ReflectionClass $interface - * - * @return array - */ private function getPossibleMethods(\ReflectionClass $interface): array { $possibleMethods = []; @@ -173,11 +136,6 @@ class AttributIntegrationTest extends TestCase return $possibleMethods; } - /** - * @param string $file - * - * @return \ReflectionClass - */ private function getReflectionClass(string $file): \ReflectionClass { $shortName = substr($file, 0, -strlen('.php')); @@ -186,9 +144,6 @@ class AttributIntegrationTest extends TestCase return new \ReflectionClass($name); } - /** - * @param \ReflectionClass $interface - */ private function validateTraitSchema(\ReflectionClass $interface): void { $trait = $this->getTraitName($interface); diff --git a/application/symfony/tests/Integration/Controller/API/Rest/RestRoutesReachableIntegrationTest.php b/application/symfony/tests/Integration/Controller/API/Rest/RestRoutesReachableIntegrationTest.php index 486dedf..581462f 100644 --- a/application/symfony/tests/Integration/Controller/API/Rest/RestRoutesReachableIntegrationTest.php +++ b/application/symfony/tests/Integration/Controller/API/Rest/RestRoutesReachableIntegrationTest.php @@ -2,13 +2,13 @@ namespace Tests\Integration\Controller; -use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase; +use Infinito\DBAL\Types\ActionType; use Infinito\DBAL\Types\Meta\Right\LayerType; use Infinito\DBAL\Types\RESTResponseType; -use Symfony\Component\HttpFoundation\Request; use Infinito\Domain\Layer\LayerActionMap; -use Infinito\DBAL\Types\ActionType; use Infinito\Domain\Map\ActionHttpMethodMap; +use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase; +use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; /** @@ -60,10 +60,6 @@ class RestRoutesReachableIntegrationTest extends KernelTestCase } } - /** - * @param string $url - * @param string $method - */ private function routeAssert(string $url, string $method): void { $request = new Request([], [], [], [], [], [ @@ -74,11 +70,6 @@ class RestRoutesReachableIntegrationTest extends KernelTestCase $this->assertTrue($this->isResponseValid($response), "Route $url with Method $method sends an 404 response and doesn't throw an EntityNotFoundException!"); } - /** - * @param Response $response - * - * @return bool - */ private function isResponseValid(Response $response): bool { $is404 = 404 === $response->getStatusCode(); diff --git a/application/symfony/tests/Integration/DataFixtures/SourceFixturesIntegrationTest.php b/application/symfony/tests/Integration/DataFixtures/SourceFixturesIntegrationTest.php index 3df28d2..9165f4e 100644 --- a/application/symfony/tests/Integration/DataFixtures/SourceFixturesIntegrationTest.php +++ b/application/symfony/tests/Integration/DataFixtures/SourceFixturesIntegrationTest.php @@ -2,12 +2,12 @@ namespace Tests\Integration\DataFixtures; -use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase; use Doctrine\ORM\EntityManager; +use Infinito\Domain\Fixture\FixtureSource\GuestUserFixtureSource; +use Infinito\Domain\Fixture\FixtureSource\ImpressumFixtureSource; use Infinito\Entity\Source\AbstractSource; use Infinito\Entity\Source\Complex\UserSourceInterface; -use Infinito\Domain\Fixture\FixtureSource\ImpressumFixtureSource; -use Infinito\Domain\Fixture\FixtureSource\GuestUserFixtureSource; +use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase; class SourceFixturesIntegrationTest extends KernelTestCase { diff --git a/application/symfony/tests/Integration/Domain/AccessDataManagement/ActionViewsDAOServiceIntegrationTest.php b/application/symfony/tests/Integration/Domain/AccessDataManagement/ActionViewsDAOServiceIntegrationTest.php index 13cd841..87de8f4 100644 --- a/application/symfony/tests/Integration/Domain/AccessDataManagement/ActionViewsDAOServiceIntegrationTest.php +++ b/application/symfony/tests/Integration/Domain/AccessDataManagement/ActionViewsDAOServiceIntegrationTest.php @@ -2,18 +2,18 @@ namespace tests\Unit\Domain\AccessDataManagement; -use PHPUnit\Framework\TestCase; use Infinito\DBAL\Types\ActionType; -use Infinito\Domain\DataAccess\ActionsViewsDAOServiceInterface; use Infinito\Domain\DataAccess\ActionsResultsDAOService; use Infinito\Domain\DataAccess\ActionsViewsDAOService; -use Infinito\Entity\EntityInterface; -use Infinito\Logic\Result\ResultInterface; +use Infinito\Domain\DataAccess\ActionsViewsDAOServiceInterface; use Infinito\Domain\Form\RequestedActionFormBuilderServiceInterface; -use Infinito\Exception\Type\InvalidChoiceTypeException; -use Infinito\Exception\Collection\NotSetElementException; +use Infinito\Entity\EntityInterface; use Infinito\Exception\Collection\ContainsElementException; +use Infinito\Exception\Collection\NotSetElementException; +use Infinito\Exception\Type\InvalidChoiceTypeException; use Infinito\Exception\Validation\ValueInvalidException; +use Infinito\Logic\Result\ResultInterface; +use PHPUnit\Framework\TestCase; /** * @author kevinfrantz @@ -89,10 +89,6 @@ class ActionViewsDAOServiceIntegrationTest extends TestCase /** * @todo implement test! - * - * @param string $actionType - * - * @return string */ private function getActionTypeViewDataMock(string $actionType): string { diff --git a/application/symfony/tests/Integration/Domain/Action/ActionHandlerServiceIntegrationTest.php b/application/symfony/tests/Integration/Domain/Action/ActionHandlerServiceIntegrationTest.php index bc5208e..fe776b3 100644 --- a/application/symfony/tests/Integration/Domain/Action/ActionHandlerServiceIntegrationTest.php +++ b/application/symfony/tests/Integration/Domain/Action/ActionHandlerServiceIntegrationTest.php @@ -2,13 +2,13 @@ namespace tests\Integration\Domain\Action; -use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase; -use Infinito\Domain\Action\ActionHandlerServiceInterface; -use Infinito\Domain\Request\Action\RequestedActionServiceInterface; -use Infinito\Domain\Fixture\FixtureSource\ImpressumFixtureSource; -use Infinito\Entity\Source\SourceInterface; use Infinito\DBAL\Types\ActionType; use Infinito\DBAL\Types\Meta\Right\LayerType; +use Infinito\Domain\Action\ActionHandlerServiceInterface; +use Infinito\Domain\Fixture\FixtureSource\ImpressumFixtureSource; +use Infinito\Domain\Request\Action\RequestedActionServiceInterface; +use Infinito\Entity\Source\SourceInterface; +use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase; /** * @author kevinfrantz diff --git a/application/symfony/tests/Integration/Domain/Action/ActionServiceIntegrationTest.php b/application/symfony/tests/Integration/Domain/Action/ActionServiceIntegrationTest.php index 904a8c3..707c8ee 100644 --- a/application/symfony/tests/Integration/Domain/Action/ActionServiceIntegrationTest.php +++ b/application/symfony/tests/Integration/Domain/Action/ActionServiceIntegrationTest.php @@ -2,9 +2,9 @@ namespace tests\Integration\Domain\Action; -use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase; -use Infinito\Domain\Action\ActionDependenciesDAOServiceInterface; use Doctrine\ORM\EntityManagerInterface; +use Infinito\Domain\Action\ActionDependenciesDAOServiceInterface; +use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase; /** * @author kevinfrantz diff --git a/application/symfony/tests/Integration/Domain/Fixture/EntityTemplateFactoryIntegrationTest.php b/application/symfony/tests/Integration/Domain/Fixture/EntityTemplateFactoryIntegrationTest.php index 978d8cb..a8f9e78 100644 --- a/application/symfony/tests/Integration/Domain/Fixture/EntityTemplateFactoryIntegrationTest.php +++ b/application/symfony/tests/Integration/Domain/Fixture/EntityTemplateFactoryIntegrationTest.php @@ -2,14 +2,14 @@ namespace tests\Integration\Domain\Fixture; -use PHPUnit\Framework\TestCase; -use Infinito\Entity\Source\AbstractSource; -use Infinito\Domain\Fixture\EntityTemplateFactory; -use Infinito\Entity\Source\Complex\UserSource; -use Infinito\Entity\Meta\Right; -use Infinito\DBAL\Types\Meta\Right\LayerType; use Infinito\DBAL\Types\ActionType; +use Infinito\DBAL\Types\Meta\Right\LayerType; +use Infinito\Domain\Fixture\EntityTemplateFactory; use Infinito\Domain\Law\LawPermissionChecker; +use Infinito\Entity\Meta\Right; +use Infinito\Entity\Source\AbstractSource; +use Infinito\Entity\Source\Complex\UserSource; +use PHPUnit\Framework\TestCase; /** * @author kevinfrantz diff --git a/application/symfony/tests/Integration/Domain/Fixture/FixtureSourceFactoryIntegrationTest.php b/application/symfony/tests/Integration/Domain/Fixture/FixtureSourceFactoryIntegrationTest.php index db3e265..99994fc 100644 --- a/application/symfony/tests/Integration/Domain/Fixture/FixtureSourceFactoryIntegrationTest.php +++ b/application/symfony/tests/Integration/Domain/Fixture/FixtureSourceFactoryIntegrationTest.php @@ -2,10 +2,10 @@ namespace tests\Integration\Domain\Fixture; -use PHPUnit\Framework\TestCase; -use Infinito\Domain\Fixture\FixtureSourceFactory; use Infinito\Domain\Fixture\FixtureSource\FixtureSourceInterface; +use Infinito\Domain\Fixture\FixtureSourceFactory; use Infinito\Entity\Source\SourceInterface; +use PHPUnit\Framework\TestCase; /** * @author kevinfrantz diff --git a/application/symfony/tests/Integration/Domain/Fixture/ImprintFixtureSourceIntegrationTest.php b/application/symfony/tests/Integration/Domain/Fixture/ImprintFixtureSourceIntegrationTest.php index 265cee2..fcf45ce 100644 --- a/application/symfony/tests/Integration/Domain/Fixture/ImprintFixtureSourceIntegrationTest.php +++ b/application/symfony/tests/Integration/Domain/Fixture/ImprintFixtureSourceIntegrationTest.php @@ -2,9 +2,9 @@ namespace tests\Integration\Domain\Fixture; +use Infinito\Domain\Fixture\FixtureSource\ImpressumFixtureSource; use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase; use Symfony\Component\HttpFoundation\Request; -use Infinito\Domain\Fixture\FixtureSource\ImpressumFixtureSource; /** * @author kevinfrantz diff --git a/application/symfony/tests/Integration/Domain/Form/RequestedActionFormBuilderServiceIntegrationTest.php b/application/symfony/tests/Integration/Domain/Form/RequestedActionFormBuilderServiceIntegrationTest.php index beb3305..92d8116 100644 --- a/application/symfony/tests/Integration/Domain/Form/RequestedActionFormBuilderServiceIntegrationTest.php +++ b/application/symfony/tests/Integration/Domain/Form/RequestedActionFormBuilderServiceIntegrationTest.php @@ -2,16 +2,16 @@ namespace tests\Integration\Domain\Form; -use Symfony\Component\Form\FormBuilderInterface; -use Infinito\Domain\Request\Entity\RequestedEntityInterface; -use Infinito\Entity\Source\PureSource; -use Infinito\Domain\Form\RequestedActionFormBuilderService; -use Infinito\Domain\Request\Action\RequestedActionServiceInterface; -use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase; use Infinito\DBAL\Types\ActionType; -use Symfony\Component\Form\Form; +use Infinito\Domain\Form\RequestedActionFormBuilderService; use Infinito\Domain\Form\RequestedActionFormBuilderServiceInterface; +use Infinito\Domain\Request\Action\RequestedActionServiceInterface; +use Infinito\Domain\Request\Entity\RequestedEntityInterface; use Infinito\Domain\Request\Entity\RequestedEntityServiceInterface; +use Infinito\Entity\Source\PureSource; +use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase; +use Symfony\Component\Form\Form; +use Symfony\Component\Form\FormBuilderInterface; /** * @author kevinfrantz diff --git a/application/symfony/tests/Integration/Domain/Parameter/Parameter/VersionParameterIntegrationTest.php b/application/symfony/tests/Integration/Domain/Parameter/Parameter/VersionParameterIntegrationTest.php index e708a3b..657b971 100644 --- a/application/symfony/tests/Integration/Domain/Parameter/Parameter/VersionParameterIntegrationTest.php +++ b/application/symfony/tests/Integration/Domain/Parameter/Parameter/VersionParameterIntegrationTest.php @@ -2,9 +2,9 @@ namespace tests\Integration\Domain\Parameter\Parameter; +use Infinito\Domain\Parameter\Parameter\VersionParameter; use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase; use Symfony\Component\Validator\Validator\ValidatorInterface; -use Infinito\Domain\Parameter\Parameter\VersionParameter; /** * @author kevinfrantz diff --git a/application/symfony/tests/Integration/Domain/Parameter/Parameter/ViewParameterIntegrationTest.php b/application/symfony/tests/Integration/Domain/Parameter/Parameter/ViewParameterIntegrationTest.php index 4691af1..b7ee3a8 100644 --- a/application/symfony/tests/Integration/Domain/Parameter/Parameter/ViewParameterIntegrationTest.php +++ b/application/symfony/tests/Integration/Domain/Parameter/Parameter/ViewParameterIntegrationTest.php @@ -2,10 +2,10 @@ namespace tests\Integration\Domain\Parameter\Parameter; +use Infinito\DBAL\Types\ActionType; +use Infinito\Domain\Parameter\Parameter\ViewParameter; use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase; use Symfony\Component\Validator\Validator\ValidatorInterface; -use Infinito\Domain\Parameter\Parameter\ViewParameter; -use Infinito\DBAL\Types\ActionType; /** * @author kevinfrantz diff --git a/application/symfony/tests/Integration/Domain/Parameter/ValidGetParameterServiceIntegrationTest.php b/application/symfony/tests/Integration/Domain/Parameter/ValidGetParameterServiceIntegrationTest.php index ca91374..ef71780 100644 --- a/application/symfony/tests/Integration/Domain/Parameter/ValidGetParameterServiceIntegrationTest.php +++ b/application/symfony/tests/Integration/Domain/Parameter/ValidGetParameterServiceIntegrationTest.php @@ -2,18 +2,18 @@ namespace tests\Integration\Domain\Parameter; +use Infinito\Domain\Parameter\Parameter\VersionParameter; use Infinito\Domain\Parameter\ParameterFactory; +use Infinito\Domain\Parameter\ParameterFactoryInterface; +use Infinito\Domain\Parameter\ValidGetParameterServiceInterface; use Infinito\Domain\Parameter\ValidGetParametersService; +use Infinito\Exception\Collection\NotSetElementException; +use Infinito\Exception\Core\NotImplementedCoreException; +use Infinito\Exception\Validation\GetParameterInvalidException; use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\RequestStack; use Symfony\Component\Validator\Validator\ValidatorInterface; -use Infinito\Domain\Parameter\ValidGetParameterServiceInterface; -use Infinito\Domain\Parameter\Parameter\VersionParameter; -use Infinito\Domain\Parameter\ParameterFactoryInterface; -use Infinito\Exception\Validation\GetParameterInvalidException; -use Infinito\Exception\Collection\NotSetElementException; -use Infinito\Exception\Core\NotImplementedCoreException; /** * @author kevinfrantz diff --git a/application/symfony/tests/Integration/Domain/Repository/LayerRepositoryFactoryServiceIntegrationTest.php b/application/symfony/tests/Integration/Domain/Repository/LayerRepositoryFactoryServiceIntegrationTest.php index acf3e1c..3e6ae41 100644 --- a/application/symfony/tests/Integration/Domain/Repository/LayerRepositoryFactoryServiceIntegrationTest.php +++ b/application/symfony/tests/Integration/Domain/Repository/LayerRepositoryFactoryServiceIntegrationTest.php @@ -2,10 +2,10 @@ namespace tests\Integration\Domain\Request\Right; -use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase; -use Infinito\Domain\Repository\LayerRepositoryFactoryServiceInterface; use Infinito\DBAL\Types\Meta\Right\LayerType; +use Infinito\Domain\Repository\LayerRepositoryFactoryServiceInterface; use Infinito\Repository\Meta\LawRepository; +use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase; /** * @author kevinfrantz diff --git a/application/symfony/tests/Integration/Domain/Request/Action/RequestedActionServiceIntegrationTest.php b/application/symfony/tests/Integration/Domain/Request/Action/RequestedActionServiceIntegrationTest.php index 7f255af..7e186a8 100644 --- a/application/symfony/tests/Integration/Domain/Request/Action/RequestedActionServiceIntegrationTest.php +++ b/application/symfony/tests/Integration/Domain/Request/Action/RequestedActionServiceIntegrationTest.php @@ -2,10 +2,10 @@ namespace tests\Integration\Domain\Request\Action; -use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase; -use Infinito\Domain\Request\Action\RequestedActionServiceInterface; use Infinito\DBAL\Types\ActionType; +use Infinito\Domain\Request\Action\RequestedActionServiceInterface; use Infinito\Domain\Request\Entity\LazyRequestedEntity; +use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase; /** * @author kevinfrantz diff --git a/application/symfony/tests/Integration/Domain/Request/Entity/RequestedEntityServiceIntegrationTest.php b/application/symfony/tests/Integration/Domain/Request/Entity/RequestedEntityServiceIntegrationTest.php index 8f92adc..dbf0f94 100644 --- a/application/symfony/tests/Integration/Domain/Request/Entity/RequestedEntityServiceIntegrationTest.php +++ b/application/symfony/tests/Integration/Domain/Request/Entity/RequestedEntityServiceIntegrationTest.php @@ -2,9 +2,9 @@ namespace tests\Integration\Domain\Request\Entity; -use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase; use Infinito\Domain\Request\Entity\RequestedEntityServiceInterface; use Infinito\Entity\Source\AbstractSource; +use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase; /** * @author kevinfrantz diff --git a/application/symfony/tests/Integration/Domain/Request/Right/RequestedRightServiceIntegrationTest.php b/application/symfony/tests/Integration/Domain/Request/Right/RequestedRightServiceIntegrationTest.php index a876ac4..4af44c1 100644 --- a/application/symfony/tests/Integration/Domain/Request/Right/RequestedRightServiceIntegrationTest.php +++ b/application/symfony/tests/Integration/Domain/Request/Right/RequestedRightServiceIntegrationTest.php @@ -2,9 +2,9 @@ namespace tests\Integration\Domain\Request\Right; -use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase; -use Infinito\Domain\Request\Right\RequestedRightServiceInterface; use Infinito\DBAL\Types\Meta\Right\CRUDType; +use Infinito\Domain\Request\Right\RequestedRightServiceInterface; +use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase; /** * @author kevinfrantz diff --git a/application/symfony/tests/Integration/Domain/Request/User/RequestedUserServiceIntegrationTest.php b/application/symfony/tests/Integration/Domain/Request/User/RequestedUserServiceIntegrationTest.php index fad1bb3..843704e 100644 --- a/application/symfony/tests/Integration/Domain/Request/User/RequestedUserServiceIntegrationTest.php +++ b/application/symfony/tests/Integration/Domain/Request/User/RequestedUserServiceIntegrationTest.php @@ -2,9 +2,9 @@ namespace tests\Integration\Domain\Request\Right; -use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase; use Infinito\DBAL\Types\Meta\Right\CRUDType; use Infinito\Domain\Request\User\RequestedUserServiceInterface; +use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase; /** * @author kevinfrantz diff --git a/application/symfony/tests/Integration/Domain/Secure/SecureRequestedRightCheckerIntegrationTest.php b/application/symfony/tests/Integration/Domain/Secure/SecureRequestedRightCheckerIntegrationTest.php index 621e1a1..fec139d 100644 --- a/application/symfony/tests/Integration/Domain/Secure/SecureRequestedRightCheckerIntegrationTest.php +++ b/application/symfony/tests/Integration/Domain/Secure/SecureRequestedRightCheckerIntegrationTest.php @@ -2,14 +2,14 @@ namespace tests\Integration\Domain\Secure; -use Infinito\Entity\Source\AbstractSource; -use Infinito\DBAL\Types\Meta\Right\LayerType; use Infinito\DBAL\Types\Meta\Right\CRUDType; -use Infinito\Entity\Meta\Right; -use Infinito\Domain\Request\Right\RequestedRight; +use Infinito\DBAL\Types\Meta\Right\LayerType; use Infinito\Domain\Request\Entity\RequestedEntityInterface; -use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase; +use Infinito\Domain\Request\Right\RequestedRight; use Infinito\Domain\Secure\SecureRequestedRightCheckerServiceInterface; +use Infinito\Entity\Meta\Right; +use Infinito\Entity\Source\AbstractSource; +use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase; /** * @author kevinfrantz diff --git a/application/symfony/tests/Integration/Domain/Source/SourceMemberManagerIntegrationTest.php b/application/symfony/tests/Integration/Domain/Source/SourceMemberManagerIntegrationTest.php index 0ff0881..ee3089e 100644 --- a/application/symfony/tests/Integration/Domain/Source/SourceMemberManagerIntegrationTest.php +++ b/application/symfony/tests/Integration/Domain/Source/SourceMemberManagerIntegrationTest.php @@ -2,13 +2,13 @@ namespace Tests\Integration\Domain\Source; -use PHPUnit\Framework\TestCase; -use Infinito\Entity\Source\SourceInterface; -use Infinito\Domain\Source\SourceMemberManagerInterface; -use Infinito\Domain\Source\SourceMemberManager; use Infinito\Domain\Source\SourceMemberInformation; +use Infinito\Domain\Source\SourceMemberManager; +use Infinito\Domain\Source\SourceMemberManagerInterface; use Infinito\Domain\Source\SourceMembershipInformation; use Infinito\Entity\Source\PureSource; +use Infinito\Entity\Source\SourceInterface; +use PHPUnit\Framework\TestCase; class SourceMemberManagerIntegrationTest extends TestCase { diff --git a/application/symfony/tests/Integration/Domain/User/UserSourceDirectorServiceIntegrationTest.php b/application/symfony/tests/Integration/Domain/User/UserSourceDirectorServiceIntegrationTest.php index 1129003..3b69e3d 100644 --- a/application/symfony/tests/Integration/Domain/User/UserSourceDirectorServiceIntegrationTest.php +++ b/application/symfony/tests/Integration/Domain/User/UserSourceDirectorServiceIntegrationTest.php @@ -2,9 +2,9 @@ namespace tests\Integration\Domain\User; -use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase; use Infinito\Domain\User\UserSourceDirectorServiceInterface; use Infinito\Entity\UserInterface; +use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase; /** * @author kevinfrantz diff --git a/application/symfony/tests/Integration/Entity/Source/PureSourceIntegrationTest.php b/application/symfony/tests/Integration/Entity/Source/PureSourceIntegrationTest.php index de05e25..66b76df 100644 --- a/application/symfony/tests/Integration/Entity/Source/PureSourceIntegrationTest.php +++ b/application/symfony/tests/Integration/Entity/Source/PureSourceIntegrationTest.php @@ -3,10 +3,10 @@ namespace Integration\Entity\Source; use Doctrine\ORM\EntityManagerInterface; -use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase; -use Infinito\Repository\Source\SourceRepository; -use Infinito\Entity\Source\PureSourceInterface; use Infinito\Entity\Source\PureSource; +use Infinito\Entity\Source\PureSourceInterface; +use Infinito\Repository\Source\SourceRepository; +use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase; /** * @author kevinfrantz diff --git a/application/symfony/tests/Integration/Entity/Source/SourceIntegrationTest.php b/application/symfony/tests/Integration/Entity/Source/SourceIntegrationTest.php index 25270a8..f9953a0 100644 --- a/application/symfony/tests/Integration/Entity/Source/SourceIntegrationTest.php +++ b/application/symfony/tests/Integration/Entity/Source/SourceIntegrationTest.php @@ -2,8 +2,8 @@ namespace Tests\Integration\Entity\Source; -use PHPUnit\Framework\TestCase; use Doctrine\Common\Collections\ArrayCollection; +use PHPUnit\Framework\TestCase; /** * This class tests if all needed Depencies for a source are implemented! @@ -22,9 +22,6 @@ class SourceIntegrationTest extends TestCase */ protected $sources; - /** - * @param string $path - */ private function iterate(string $path): void { $directoryIterator = new \DirectoryIterator($path); @@ -55,11 +52,6 @@ class SourceIntegrationTest extends TestCase $this->iterate(self::SOURCE_DIRECTORY); } - /** - * @param string $path - * - * @return string - */ private function filterSourcePath(string $path): string { $path = str_replace('/Abstract', '/', $path); @@ -68,11 +60,6 @@ class SourceIntegrationTest extends TestCase return $path; } - /** - * @param string $path - * - * @return string - */ private function getInterfacePath(string $path): string { return $this->filterSourcePath($path).'Interface.php'; diff --git a/application/symfony/tests/Integration/Repository/Meta/RightRepositoryIntegrationTest.php b/application/symfony/tests/Integration/Repository/Meta/RightRepositoryIntegrationTest.php index 1139427..5b940e8 100644 --- a/application/symfony/tests/Integration/Repository/Meta/RightRepositoryIntegrationTest.php +++ b/application/symfony/tests/Integration/Repository/Meta/RightRepositoryIntegrationTest.php @@ -2,15 +2,15 @@ namespace tests\Integration\Repository\Meta; -use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase; +use Doctrine\ORM\EntityManagerInterface; use Doctrine\ORM\EntityRepository; -use Infinito\Entity\Meta\RightInterface; -use Infinito\Entity\Meta\Right; -use Infinito\DBAL\Types\Meta\Right\LayerType; use Infinito\DBAL\Types\Meta\Right\CRUDType; +use Infinito\DBAL\Types\Meta\Right\LayerType; use Infinito\Entity\Meta\Law; use Infinito\Entity\Meta\LawInterface; -use Doctrine\ORM\EntityManagerInterface; +use Infinito\Entity\Meta\Right; +use Infinito\Entity\Meta\RightInterface; +use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase; /** * @todo specify tests for all attributes diff --git a/application/symfony/tests/Integration/Subscriber/UserMenuSubscriberIntegrationTest.php b/application/symfony/tests/Integration/Subscriber/UserMenuSubscriberIntegrationTest.php index 4eff570..922bc13 100644 --- a/application/symfony/tests/Integration/Subscriber/UserMenuSubscriberIntegrationTest.php +++ b/application/symfony/tests/Integration/Subscriber/UserMenuSubscriberIntegrationTest.php @@ -2,19 +2,19 @@ namespace Tests\Integration\Entity\Subscriber; -use Symfony\Component\Translation\Translator; +use Infinito\Domain\Fixture\FixtureSource\GuestUserFixtureSource; +use Infinito\Entity\User; use Infinito\Event\Menu\MenuEvent; -use Symfony\Component\HttpFoundation\RequestStack; -use Symfony\Component\HttpFoundation\Request; -use Knp\Menu\MenuItem; -use Knp\Menu\MenuFactory; use Infinito\Subscriber\UserMenuSubscriber; +use Knp\Menu\MenuFactory; +use Knp\Menu\MenuItem; use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase; +use Symfony\Component\HttpFoundation\Request; +use Symfony\Component\HttpFoundation\RequestStack; use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface; use Symfony\Component\Security\Core\Authentication\Token\TokenInterface; use Symfony\Component\Security\Core\Role\Role; -use Infinito\Domain\Fixture\FixtureSource\GuestUserFixtureSource; -use Infinito\Entity\User; +use Symfony\Component\Translation\Translator; /** * @author kevinfrantz diff --git a/application/symfony/tests/Unit/Attribut/ActionTypeAttributTest.php b/application/symfony/tests/Unit/Attribut/ActionTypeAttributTest.php index 78ede09..d9894bf 100644 --- a/application/symfony/tests/Unit/Attribut/ActionTypeAttributTest.php +++ b/application/symfony/tests/Unit/Attribut/ActionTypeAttributTest.php @@ -2,11 +2,11 @@ namespace Tests\Unit\Attribut; -use PHPUnit\Framework\TestCase; -use Infinito\Attribut\ActionTypeAttributInterface; use Infinito\Attribut\ActionTypeAttribut; +use Infinito\Attribut\ActionTypeAttributInterface; use Infinito\DBAL\Types\ActionType; use Infinito\Exception\Type\InvalidChoiceTypeException; +use PHPUnit\Framework\TestCase; /** * @author kevinfrantz diff --git a/application/symfony/tests/Unit/Attribut/ChildsAttributTest.php b/application/symfony/tests/Unit/Attribut/ChildsAttributTest.php index 1e3efd2..21a8832 100644 --- a/application/symfony/tests/Unit/Attribut/ChildsAttributTest.php +++ b/application/symfony/tests/Unit/Attribut/ChildsAttributTest.php @@ -2,10 +2,10 @@ namespace Attribut; -use PHPUnit\Framework\TestCase; -use Infinito\Attribut\ChildsAttributInterface; -use Infinito\Attribut\ChildsAttribut; use Doctrine\Common\Collections\ArrayCollection; +use Infinito\Attribut\ChildsAttribut; +use Infinito\Attribut\ChildsAttributInterface; +use PHPUnit\Framework\TestCase; class ChildsAttributTest extends TestCase { diff --git a/application/symfony/tests/Unit/Attribut/ClassAttributTest.php b/application/symfony/tests/Unit/Attribut/ClassAttributTest.php index 2686ed1..52c0a2b 100644 --- a/application/symfony/tests/Unit/Attribut/ClassAttributTest.php +++ b/application/symfony/tests/Unit/Attribut/ClassAttributTest.php @@ -2,10 +2,10 @@ namespace Attribut; -use PHPUnit\Framework\TestCase; -use Infinito\Attribut\ClassAttributInterface; use Infinito\Attribut\ClassAttribut; +use Infinito\Attribut\ClassAttributInterface; use Infinito\Entity\Source\AbstractSource; +use PHPUnit\Framework\TestCase; use Symfony\Component\HttpKernel\Exception\NotFoundHttpException; class ClassAttributTest extends TestCase diff --git a/application/symfony/tests/Unit/Attribut/CollectionAttributTest.php b/application/symfony/tests/Unit/Attribut/CollectionAttributTest.php index 4943c0f..de71a86 100644 --- a/application/symfony/tests/Unit/Attribut/CollectionAttributTest.php +++ b/application/symfony/tests/Unit/Attribut/CollectionAttributTest.php @@ -2,10 +2,10 @@ namespace Tests\Unit\Attribut; -use PHPUnit\Framework\TestCase; -use Infinito\Attribut\CollectionAttributInterface; -use Infinito\Attribut\CollectionAttribut; use Doctrine\Common\Collections\ArrayCollection; +use Infinito\Attribut\CollectionAttribut; +use Infinito\Attribut\CollectionAttributInterface; +use PHPUnit\Framework\TestCase; class CollectionAttributTest extends TestCase { diff --git a/application/symfony/tests/Unit/Attribut/ConditionAttributTest.php b/application/symfony/tests/Unit/Attribut/ConditionAttributTest.php index 7b9cc7b..8183458 100644 --- a/application/symfony/tests/Unit/Attribut/ConditionAttributTest.php +++ b/application/symfony/tests/Unit/Attribut/ConditionAttributTest.php @@ -2,10 +2,10 @@ namespace Attribut; -use PHPUnit\Framework\TestCase; -use Infinito\Attribut\ConditionAttributInterface; use Infinito\Attribut\ConditionAttribut; +use Infinito\Attribut\ConditionAttributInterface; use Infinito\Logic\Operation\OperationInterface; +use PHPUnit\Framework\TestCase; class ConditionAttributTest extends TestCase { diff --git a/application/symfony/tests/Unit/Attribut/CreatorRelationAttributTest.php b/application/symfony/tests/Unit/Attribut/CreatorRelationAttributTest.php index 0e0317d..b8e7c62 100644 --- a/application/symfony/tests/Unit/Attribut/CreatorRelationAttributTest.php +++ b/application/symfony/tests/Unit/Attribut/CreatorRelationAttributTest.php @@ -2,10 +2,10 @@ namespace Infinito\Tests\Unit\Attribut; -use PHPUnit\Framework\TestCase; -use Infinito\Attribut\CreatorRelationAttributInterface; use Infinito\Attribut\CreatorRelationAttribut; +use Infinito\Attribut\CreatorRelationAttributInterface; use Infinito\Entity\Meta\Relation\Parent\CreatorRelationInterface; +use PHPUnit\Framework\TestCase; class CreatorRelationAttributTest extends TestCase { diff --git a/application/symfony/tests/Unit/Attribut/CrudAttributTest.php b/application/symfony/tests/Unit/Attribut/CrudAttributTest.php index eb0b14a..7578585 100644 --- a/application/symfony/tests/Unit/Attribut/CrudAttributTest.php +++ b/application/symfony/tests/Unit/Attribut/CrudAttributTest.php @@ -2,11 +2,11 @@ namespace Tests\Unit\Attribut; -use PHPUnit\Framework\TestCase; -use Infinito\Attribut\CrudAttributInterface; use Infinito\Attribut\CrudAttribut; +use Infinito\Attribut\CrudAttributInterface; use Infinito\DBAL\Types\Meta\Right\CRUDType; use Infinito\Exception\Type\InvalidChoiceTypeException; +use PHPUnit\Framework\TestCase; /** * @author kevinfrantz diff --git a/application/symfony/tests/Unit/Attribut/FirstNameSourceAttributTest.php b/application/symfony/tests/Unit/Attribut/FirstNameSourceAttributTest.php index 876228b..052f61a 100644 --- a/application/symfony/tests/Unit/Attribut/FirstNameSourceAttributTest.php +++ b/application/symfony/tests/Unit/Attribut/FirstNameSourceAttributTest.php @@ -2,10 +2,10 @@ namespace Tests\Unit\Attribut; -use PHPUnit\Framework\TestCase; use Infinito\Attribut\FirstNameSourceAttribut; use Infinito\Attribut\FirstNameSourceAttributInterface; use Infinito\Entity\Source\Primitive\Name\FirstNameSourceInterface; +use PHPUnit\Framework\TestCase; /** * @author kevinfrantz diff --git a/application/symfony/tests/Unit/Attribut/FullPersonNameSourceAttributTest.php b/application/symfony/tests/Unit/Attribut/FullPersonNameSourceAttributTest.php index b2f0048..20da75d 100644 --- a/application/symfony/tests/Unit/Attribut/FullPersonNameSourceAttributTest.php +++ b/application/symfony/tests/Unit/Attribut/FullPersonNameSourceAttributTest.php @@ -2,10 +2,10 @@ namespace Tests\Unit\Attribut; -use PHPUnit\Framework\TestCase; -use Infinito\Entity\Source\Complex\FullPersonNameSourceInterface; -use Infinito\Attribut\FullPersonNameSourceAttributInterface; use Infinito\Attribut\FullPersonNameSourceAttribut; +use Infinito\Attribut\FullPersonNameSourceAttributInterface; +use Infinito\Entity\Source\Complex\FullPersonNameSourceInterface; +use PHPUnit\Framework\TestCase; /** * @author kevinfrantz diff --git a/application/symfony/tests/Unit/Attribut/GrantAttributTest.php b/application/symfony/tests/Unit/Attribut/GrantAttributTest.php index 0e565cd..750aedc 100644 --- a/application/symfony/tests/Unit/Attribut/GrantAttributTest.php +++ b/application/symfony/tests/Unit/Attribut/GrantAttributTest.php @@ -2,9 +2,9 @@ namespace Tests\Unit\Attribut; -use PHPUnit\Framework\TestCase; use Infinito\Attribut\GrantAttribut; use Infinito\Attribut\GrantAttributInterface; +use PHPUnit\Framework\TestCase; class GrantAttributTest extends TestCase { diff --git a/application/symfony/tests/Unit/Attribut/IdAttributTest.php b/application/symfony/tests/Unit/Attribut/IdAttributTest.php index 8bc4400..e1a7d54 100644 --- a/application/symfony/tests/Unit/Attribut/IdAttributTest.php +++ b/application/symfony/tests/Unit/Attribut/IdAttributTest.php @@ -2,9 +2,9 @@ namespace Tests\Unit\Attribut; -use PHPUnit\Framework\TestCase; use Infinito\Attribut\IdAttribut; use Infinito\Attribut\IdAttributInterface; +use PHPUnit\Framework\TestCase; /** * @author kevinfrantz diff --git a/application/symfony/tests/Unit/Attribut/LayerAttributTest.php b/application/symfony/tests/Unit/Attribut/LayerAttributTest.php index 0996682..7b02d49 100644 --- a/application/symfony/tests/Unit/Attribut/LayerAttributTest.php +++ b/application/symfony/tests/Unit/Attribut/LayerAttributTest.php @@ -2,11 +2,11 @@ namespace Tests\Unit\Attribut; -use PHPUnit\Framework\TestCase; -use Infinito\Attribut\LayerAttributInterface; use Infinito\Attribut\LayerAttribut; +use Infinito\Attribut\LayerAttributInterface; use Infinito\DBAL\Types\Meta\Right\LayerType; use Infinito\Exception\Type\InvalidChoiceTypeException; +use PHPUnit\Framework\TestCase; /** * @author kevinfrantz diff --git a/application/symfony/tests/Unit/Attribut/LayerRepositoryFactoryServiceAttributTest.php b/application/symfony/tests/Unit/Attribut/LayerRepositoryFactoryServiceAttributTest.php index ee303c3..dc170dd 100644 --- a/application/symfony/tests/Unit/Attribut/LayerRepositoryFactoryServiceAttributTest.php +++ b/application/symfony/tests/Unit/Attribut/LayerRepositoryFactoryServiceAttributTest.php @@ -2,10 +2,10 @@ namespace Tests\Unit\Attribut; -use PHPUnit\Framework\TestCase; -use Infinito\Attribut\LayerRepositoryFactoryServiceAttributInterface; use Infinito\Attribut\LayerRepositoryFactoryServiceAttribut; +use Infinito\Attribut\LayerRepositoryFactoryServiceAttributInterface; use Infinito\Domain\Repository\LayerRepositoryFactoryServiceInterface; +use PHPUnit\Framework\TestCase; /** * @author kevinfrantz diff --git a/application/symfony/tests/Unit/Attribut/MemberRelationAttributTest.php b/application/symfony/tests/Unit/Attribut/MemberRelationAttributTest.php index dad598a..f2f1266 100644 --- a/application/symfony/tests/Unit/Attribut/MemberRelationAttributTest.php +++ b/application/symfony/tests/Unit/Attribut/MemberRelationAttributTest.php @@ -2,10 +2,10 @@ namespace Tests\Unit\Attribut; -use PHPUnit\Framework\TestCase; -use Infinito\Attribut\MemberRelationAttributInterface; use Infinito\Attribut\MemberRelationAttribut; +use Infinito\Attribut\MemberRelationAttributInterface; use Infinito\Entity\Meta\Relation\Member\MemberRelationInterface; +use PHPUnit\Framework\TestCase; class MemberRelationAttributTest extends TestCase { diff --git a/application/symfony/tests/Unit/Attribut/MembersAttributTest.php b/application/symfony/tests/Unit/Attribut/MembersAttributTest.php index de32798..176ba17 100644 --- a/application/symfony/tests/Unit/Attribut/MembersAttributTest.php +++ b/application/symfony/tests/Unit/Attribut/MembersAttributTest.php @@ -2,11 +2,11 @@ namespace Tests\Unit\Attribut; -use PHPUnit\Framework\TestCase; use Doctrine\Common\Collections\ArrayCollection; +use Infinito\Attribut\MembersAttribut; use Infinito\Attribut\MembersAttributInterface; use Infinito\Entity\Source\SourceInterface; -use Infinito\Attribut\MembersAttribut; +use PHPUnit\Framework\TestCase; class MembersAttributTest extends TestCase { diff --git a/application/symfony/tests/Unit/Attribut/MembershipsAttributTest.php b/application/symfony/tests/Unit/Attribut/MembershipsAttributTest.php index 52d6657..267b516 100644 --- a/application/symfony/tests/Unit/Attribut/MembershipsAttributTest.php +++ b/application/symfony/tests/Unit/Attribut/MembershipsAttributTest.php @@ -2,11 +2,11 @@ namespace Tests\Unit\Attribut; -use PHPUnit\Framework\TestCase; -use Infinito\Attribut\MembershipsAttributInterface; -use Infinito\Attribut\MembershipsAttribut; use Doctrine\Common\Collections\ArrayCollection; +use Infinito\Attribut\MembershipsAttribut; +use Infinito\Attribut\MembershipsAttributInterface; use Infinito\Entity\Source\Complex\Collection\TreeCollectionSourceInterface; +use PHPUnit\Framework\TestCase; class MembershipsAttributTest extends TestCase { diff --git a/application/symfony/tests/Unit/Attribut/NameSourceAttributTest.php b/application/symfony/tests/Unit/Attribut/NameSourceAttributTest.php index b3c7e4d..e62cbc4 100644 --- a/application/symfony/tests/Unit/Attribut/NameSourceAttributTest.php +++ b/application/symfony/tests/Unit/Attribut/NameSourceAttributTest.php @@ -2,10 +2,10 @@ namespace tests\unit\Attribut; -use PHPUnit\Framework\TestCase; -use Infinito\Attribut\NameSourceAttributInterface; use Infinito\Attribut\NameSourceAttribut; +use Infinito\Attribut\NameSourceAttributInterface; use Infinito\Entity\Source\Primitive\Name\NameSourceInterface; +use PHPUnit\Framework\TestCase; class NameSourceAttributTest extends TestCase { diff --git a/application/symfony/tests/Unit/Attribut/ParentRelationAttributTest.php b/application/symfony/tests/Unit/Attribut/ParentRelationAttributTest.php index f45e2b6..916f45f 100644 --- a/application/symfony/tests/Unit/Attribut/ParentRelationAttributTest.php +++ b/application/symfony/tests/Unit/Attribut/ParentRelationAttributTest.php @@ -2,10 +2,10 @@ namespace Infinito\Tests\Unit\Attribut; -use PHPUnit\Framework\TestCase; -use Infinito\Attribut\ParentRelationAttributInterface; use Infinito\Attribut\ParentRelationAttribut; +use Infinito\Attribut\ParentRelationAttributInterface; use Infinito\Entity\Meta\Relation\Parent\ParentRelationInterface; +use PHPUnit\Framework\TestCase; class ParentRelationAttributTest extends TestCase { diff --git a/application/symfony/tests/Unit/Attribut/ParentsAttributTest.php b/application/symfony/tests/Unit/Attribut/ParentsAttributTest.php index 321c62f..dd93db3 100644 --- a/application/symfony/tests/Unit/Attribut/ParentsAttributTest.php +++ b/application/symfony/tests/Unit/Attribut/ParentsAttributTest.php @@ -2,10 +2,10 @@ namespace Attribut; -use PHPUnit\Framework\TestCase; -use Infinito\Attribut\ParentsAttributInterface; -use Infinito\Attribut\ParentsAttribut; use Doctrine\Common\Collections\ArrayCollection; +use Infinito\Attribut\ParentsAttribut; +use Infinito\Attribut\ParentsAttributInterface; +use PHPUnit\Framework\TestCase; class ParentsAttributTest extends TestCase { diff --git a/application/symfony/tests/Unit/Attribut/PersonIdentitySourceAttributTest.php b/application/symfony/tests/Unit/Attribut/PersonIdentitySourceAttributTest.php index 28901e2..d4b09a5 100644 --- a/application/symfony/tests/Unit/Attribut/PersonIdentitySourceAttributTest.php +++ b/application/symfony/tests/Unit/Attribut/PersonIdentitySourceAttributTest.php @@ -2,10 +2,10 @@ namespace Tests\Unit\Attribut; -use PHPUnit\Framework\TestCase; -use Infinito\Attribut\PersonIdentitySourceAttributInterface; use Infinito\Attribut\PersonIdentitySourceAttribut; +use Infinito\Attribut\PersonIdentitySourceAttributInterface; use Infinito\Entity\Source\Complex\PersonIdentitySourceInterface; +use PHPUnit\Framework\TestCase; /** * @todo Implement abstract test class for entity attributs diff --git a/application/symfony/tests/Unit/Attribut/PriorityAttributTest.php b/application/symfony/tests/Unit/Attribut/PriorityAttributTest.php index a0b1c42..06b5366 100644 --- a/application/symfony/tests/Unit/Attribut/PriorityAttributTest.php +++ b/application/symfony/tests/Unit/Attribut/PriorityAttributTest.php @@ -2,9 +2,9 @@ namespace Tests\Unit\Attribut; -use PHPUnit\Framework\TestCase; -use Infinito\Attribut\PriorityAttributInterface; use Infinito\Attribut\PriorityAttribut; +use Infinito\Attribut\PriorityAttributInterface; +use PHPUnit\Framework\TestCase; /** * @author kevinfrantz diff --git a/application/symfony/tests/Unit/Attribut/RecieverAttributTest.php b/application/symfony/tests/Unit/Attribut/RecieverAttributTest.php index d42c32b..01c4705 100644 --- a/application/symfony/tests/Unit/Attribut/RecieverAttributTest.php +++ b/application/symfony/tests/Unit/Attribut/RecieverAttributTest.php @@ -2,10 +2,10 @@ namespace Tests\Unit\Attribut; -use PHPUnit\Framework\TestCase; -use Infinito\Attribut\RecieverAttributInterface; use Infinito\Attribut\RecieverAttribut; +use Infinito\Attribut\RecieverAttributInterface; use Infinito\Entity\Source\AbstractSource; +use PHPUnit\Framework\TestCase; class RecieverAttributTest extends TestCase { diff --git a/application/symfony/tests/Unit/Attribut/RelationAttributTest.php b/application/symfony/tests/Unit/Attribut/RelationAttributTest.php index 39a0e99..5211b7a 100644 --- a/application/symfony/tests/Unit/Attribut/RelationAttributTest.php +++ b/application/symfony/tests/Unit/Attribut/RelationAttributTest.php @@ -2,10 +2,10 @@ namespace Infinito\Tests\Unit\Attribut; -use PHPUnit\Framework\TestCase; -use Infinito\Entity\Meta\Relation\RelationInterface; -use Infinito\Attribut\RelationAttributInterface; use Infinito\Attribut\RelationAttribut; +use Infinito\Attribut\RelationAttributInterface; +use Infinito\Entity\Meta\Relation\RelationInterface; +use PHPUnit\Framework\TestCase; class RelationAttributTest extends TestCase { diff --git a/application/symfony/tests/Unit/Attribut/RequestAttributTest.php b/application/symfony/tests/Unit/Attribut/RequestAttributTest.php index b800151..81d26ec 100644 --- a/application/symfony/tests/Unit/Attribut/RequestAttributTest.php +++ b/application/symfony/tests/Unit/Attribut/RequestAttributTest.php @@ -2,9 +2,9 @@ namespace Tests\Unit\Attribut; -use PHPUnit\Framework\TestCase; -use Infinito\Attribut\RequestAttributInterface; use Infinito\Attribut\RequestAttribut; +use Infinito\Attribut\RequestAttributInterface; +use PHPUnit\Framework\TestCase; use Symfony\Component\HttpFoundation\Request; /** diff --git a/application/symfony/tests/Unit/Attribut/RequestedEntityAttributTest.php b/application/symfony/tests/Unit/Attribut/RequestedEntityAttributTest.php index c9d41a5..539419a 100644 --- a/application/symfony/tests/Unit/Attribut/RequestedEntityAttributTest.php +++ b/application/symfony/tests/Unit/Attribut/RequestedEntityAttributTest.php @@ -2,10 +2,10 @@ namespace Tests\Unit\Attribut; -use PHPUnit\Framework\TestCase; use Infinito\Attribut\RequestedEntityAttribut; use Infinito\Attribut\RequestedEntityAttributInterface; use Infinito\Domain\Request\Entity\RequestedEntityInterface; +use PHPUnit\Framework\TestCase; /** * @author kevinfrantz diff --git a/application/symfony/tests/Unit/Attribut/RequestedRightAttributTest.php b/application/symfony/tests/Unit/Attribut/RequestedRightAttributTest.php index 4649638..35f00fa 100644 --- a/application/symfony/tests/Unit/Attribut/RequestedRightAttributTest.php +++ b/application/symfony/tests/Unit/Attribut/RequestedRightAttributTest.php @@ -2,10 +2,10 @@ namespace Tests\Unit\Attribut; -use PHPUnit\Framework\TestCase; -use Infinito\Domain\Request\Right\RequestedRightInterface; -use Infinito\Attribut\RequestedRightAttributInterface; use Infinito\Attribut\RequestedRightAttribut; +use Infinito\Attribut\RequestedRightAttributInterface; +use Infinito\Domain\Request\Right\RequestedRightInterface; +use PHPUnit\Framework\TestCase; /** * @author kevinfrantz diff --git a/application/symfony/tests/Unit/Attribut/RightAttributTest.php b/application/symfony/tests/Unit/Attribut/RightAttributTest.php index 4f29f93..70701c4 100644 --- a/application/symfony/tests/Unit/Attribut/RightAttributTest.php +++ b/application/symfony/tests/Unit/Attribut/RightAttributTest.php @@ -2,10 +2,10 @@ namespace Infinito\Tests\Unit\Attribut; -use PHPUnit\Framework\TestCase; -use Infinito\Attribut\RightAttributInterface; use Infinito\Attribut\RightAttribut; +use Infinito\Attribut\RightAttributInterface; use Infinito\Entity\Meta\RightInterface; +use PHPUnit\Framework\TestCase; /** * @author kevinfrantz diff --git a/application/symfony/tests/Unit/Attribut/SlugAttributTest.php b/application/symfony/tests/Unit/Attribut/SlugAttributTest.php index eb85572..fbe40c0 100644 --- a/application/symfony/tests/Unit/Attribut/SlugAttributTest.php +++ b/application/symfony/tests/Unit/Attribut/SlugAttributTest.php @@ -2,10 +2,10 @@ namespace Tests\Attribut; -use PHPUnit\Framework\TestCase; -use Infinito\Attribut\SlugAttributInterface; use Infinito\Attribut\SlugAttribut; +use Infinito\Attribut\SlugAttributInterface; use Infinito\Exception\Validation\ValueInvalidException; +use PHPUnit\Framework\TestCase; /** * @author kevinfrantz diff --git a/application/symfony/tests/Unit/Attribut/TextAttributTest.php b/application/symfony/tests/Unit/Attribut/TextAttributTest.php index a74faca..cbaa8fb 100644 --- a/application/symfony/tests/Unit/Attribut/TextAttributTest.php +++ b/application/symfony/tests/Unit/Attribut/TextAttributTest.php @@ -2,9 +2,9 @@ namespace Tests\Unit\Attribut; -use PHPUnit\Framework\TestCase; -use Infinito\Attribut\TextAttributInterface; use Infinito\Attribut\TextAttribut; +use Infinito\Attribut\TextAttributInterface; +use PHPUnit\Framework\TestCase; /** * @author kevinfrantz diff --git a/application/symfony/tests/Unit/Attribut/UserAttributTest.php b/application/symfony/tests/Unit/Attribut/UserAttributTest.php index 7ab795b..74c131e 100644 --- a/application/symfony/tests/Unit/Attribut/UserAttributTest.php +++ b/application/symfony/tests/Unit/Attribut/UserAttributTest.php @@ -2,10 +2,10 @@ namespace Tests\Unit\Attribut; -use PHPUnit\Framework\TestCase; -use Infinito\Attribut\UserAttributInterface; use Infinito\Attribut\UserAttribut; +use Infinito\Attribut\UserAttributInterface; use Infinito\Entity\UserInterface; +use PHPUnit\Framework\TestCase; /** * @author kevinfrantz diff --git a/application/symfony/tests/Unit/Controller/DefaultControllerTest.php b/application/symfony/tests/Unit/Controller/DefaultControllerTest.php index 11dd8fa..d65aa84 100644 --- a/application/symfony/tests/Unit/Controller/DefaultControllerTest.php +++ b/application/symfony/tests/Unit/Controller/DefaultControllerTest.php @@ -2,10 +2,10 @@ namespace Infinito\Tests\Unit\Controller; -use Symfony\Bundle\FrameworkBundle\Test\WebTestCase; use Infinito\Controller\DefaultController; use Infinito\DBAL\Types\RESTResponseType; use Infinito\Domain\Fixture\FixtureSource\ImpressumFixtureSource; +use Symfony\Bundle\FrameworkBundle\Test\WebTestCase; /** * @author kevinfrantz diff --git a/application/symfony/tests/Unit/DBAL/Types/ActionTypeTest.php b/application/symfony/tests/Unit/DBAL/Types/ActionTypeTest.php index 37f0402..5786781 100644 --- a/application/symfony/tests/Unit/DBAL/Types/ActionTypeTest.php +++ b/application/symfony/tests/Unit/DBAL/Types/ActionTypeTest.php @@ -2,8 +2,8 @@ namespace tests\Unit\DBAL\Types; -use PHPUnit\Framework\TestCase; use Infinito\DBAL\Types\ActionType; +use PHPUnit\Framework\TestCase; /** * @author kevinfrantz diff --git a/application/symfony/tests/Unit/Domain/AccessData/ActionResultsDAOServiceTest.php b/application/symfony/tests/Unit/Domain/AccessData/ActionResultsDAOServiceTest.php index 677141c..2460c01 100644 --- a/application/symfony/tests/Unit/Domain/AccessData/ActionResultsDAOServiceTest.php +++ b/application/symfony/tests/Unit/Domain/AccessData/ActionResultsDAOServiceTest.php @@ -4,14 +4,14 @@ namespace tests\Integration\Domain\AccessManagement; use Infinito\DBAL\Types\ActionType; use Infinito\Domain\DataAccess\ActionsResultsDAOService; +use Infinito\Domain\DataAccess\ActionsResultsDAOServiceInterface; use Infinito\Entity\EntityInterface; -use Infinito\Logic\Result\ResultInterface; -use PHPUnit\Framework\TestCase; use Infinito\Exception\Collection\ContainsElementException; use Infinito\Exception\Collection\NotSetElementException; use Infinito\Exception\Type\InvalidChoiceTypeException; -use Infinito\Domain\DataAccess\ActionsResultsDAOServiceInterface; use Infinito\Exception\Validation\ValueInvalidException; +use Infinito\Logic\Result\ResultInterface; +use PHPUnit\Framework\TestCase; /** * @author kevinfrantz diff --git a/application/symfony/tests/Unit/Domain/Action/ActionFactoryServiceTest.php b/application/symfony/tests/Unit/Domain/Action/ActionFactoryServiceTest.php index c3a822a..bad274d 100644 --- a/application/symfony/tests/Unit/Domain/Action/ActionFactoryServiceTest.php +++ b/application/symfony/tests/Unit/Domain/Action/ActionFactoryServiceTest.php @@ -2,15 +2,15 @@ namespace tests\Unit\Domain\Action; -use PHPUnit\Framework\TestCase; -use Infinito\Domain\Action\ActionFactoryService; use Infinito\Domain\Action\ActionDependenciesDAOServiceInterface; +use Infinito\Domain\Action\ActionFactoryService; use Infinito\Domain\Action\ActionInterface; +use Infinito\Domain\Layer\LayerActionMap; use Infinito\Domain\Request\Action\RequestedAction; use Infinito\Domain\Request\Right\RequestedRight; -use Infinito\Domain\Layer\LayerActionMap; use Infinito\Domain\Request\User\RequestedUser; use Infinito\Domain\User\UserSourceDirectorInterface; +use PHPUnit\Framework\TestCase; /** * @author kevinfrantz diff --git a/application/symfony/tests/Unit/Domain/Action/ActionServiceTest.php b/application/symfony/tests/Unit/Domain/Action/ActionServiceTest.php index fe9a232..cbdc194 100644 --- a/application/symfony/tests/Unit/Domain/Action/ActionServiceTest.php +++ b/application/symfony/tests/Unit/Domain/Action/ActionServiceTest.php @@ -2,22 +2,22 @@ namespace tests\Unit\Domain\Action; -use PHPUnit\Framework\TestCase; -use Infinito\Domain\Action\ActionDependenciesDAOService; -use Infinito\Domain\Request\Action\RequestedActionInterface; use Doctrine\ORM\EntityManagerInterface; -use Symfony\Component\HttpFoundation\RequestStack; -use Infinito\Domain\Repository\LayerRepositoryFactoryServiceInterface; +use Infinito\Domain\Action\ActionDependenciesDAOService; use Infinito\Domain\Action\ActionDependenciesDAOServiceInterface; -use Infinito\Repository\RepositoryInterface; -use Symfony\Component\HttpFoundation\Request; -use Infinito\Domain\Request\Entity\RequestedEntityInterface; -use PHPUnit\Framework\MockObject\MockObject; -use Infinito\Entity\EntityInterface; -use Symfony\Component\Form\FormBuilderInterface; use Infinito\Domain\Form\RequestedActionFormBuilderServiceInterface; +use Infinito\Domain\Repository\LayerRepositoryFactoryServiceInterface; +use Infinito\Domain\Request\Action\RequestedActionInterface; use Infinito\Domain\Request\Action\RequestedActionServiceInterface; +use Infinito\Domain\Request\Entity\RequestedEntityInterface; use Infinito\Domain\Secure\SecureRequestedRightCheckerServiceInterface; +use Infinito\Entity\EntityInterface; +use Infinito\Repository\RepositoryInterface; +use PHPUnit\Framework\MockObject\MockObject; +use PHPUnit\Framework\TestCase; +use Symfony\Component\Form\FormBuilderInterface; +use Symfony\Component\HttpFoundation\Request; +use Symfony\Component\HttpFoundation\RequestStack; /** * @author kevinfrantz diff --git a/application/symfony/tests/Unit/Domain/Action/Read/AbstractActionTest.php b/application/symfony/tests/Unit/Domain/Action/Read/AbstractActionTest.php index 894e250..a192f76 100644 --- a/application/symfony/tests/Unit/Domain/Action/Read/AbstractActionTest.php +++ b/application/symfony/tests/Unit/Domain/Action/Read/AbstractActionTest.php @@ -2,12 +2,12 @@ namespace tests\Unit\Domain\Action\Read; -use PHPUnit\Framework\TestCase; -use Infinito\Domain\Action\ActionInterface; use Infinito\Domain\Action\AbstractAction; use Infinito\Domain\Action\ActionDependenciesDAOServiceInterface; -use PHPUnit\Framework\MockObject\MockObject; +use Infinito\Domain\Action\ActionInterface; use Infinito\Exception\Validation\FormInvalidException; +use PHPUnit\Framework\MockObject\MockObject; +use PHPUnit\Framework\TestCase; /** * @author kevinfrantz diff --git a/application/symfony/tests/Unit/Domain/Action/Read/ReadSourceActionTest.php b/application/symfony/tests/Unit/Domain/Action/Read/ReadSourceActionTest.php index 477e2ff..d91194b 100644 --- a/application/symfony/tests/Unit/Domain/Action/Read/ReadSourceActionTest.php +++ b/application/symfony/tests/Unit/Domain/Action/Read/ReadSourceActionTest.php @@ -3,14 +3,14 @@ namespace tests\Unit\Domain\SecureCRUDManagement\CRUD\Read; use Doctrine\ORM\EntityManagerInterface; -use PHPUnit\Framework\TestCase; -use Infinito\Domain\Action\Read\ReadAction; use Infinito\Domain\Action\ActionDependenciesDAOServiceInterface; +use Infinito\Domain\Action\Read\ReadAction; use Infinito\Domain\Action\Read\ReadActionInterface; use Infinito\Domain\Request\Action\RequestedActionInterface; use Infinito\Domain\Request\Entity\RequestedEntityInterface; use Infinito\Entity\Source\SourceInterface; use Infinito\Exception\Permission\NoPermissionException; +use PHPUnit\Framework\TestCase; /** * @author kevinfrantz diff --git a/application/symfony/tests/Unit/Domain/Dom/EntityDomServiceTest.php b/application/symfony/tests/Unit/Domain/Dom/EntityDomServiceTest.php index d0f1dc3..9b7547b 100644 --- a/application/symfony/tests/Unit/Domain/Dom/EntityDomServiceTest.php +++ b/application/symfony/tests/Unit/Domain/Dom/EntityDomServiceTest.php @@ -2,28 +2,28 @@ namespace tests\Unit\Domain\Dom; -use PHPUnit\Framework\TestCase; +use Infinito\Attribut\GrantAttributInterface; +use Infinito\Attribut\IdAttribut; +use Infinito\Attribut\IdAttributInterface; +use Infinito\Attribut\RightsAttributInterface; +use Infinito\Attribut\SlugAttributInterface; +use Infinito\Attribut\SourceAttributInterface; +use Infinito\Attribut\UserAttributInterface; +use Infinito\Attribut\VersionAttribut; +use Infinito\Attribut\VersionAttributInterface; +use Infinito\DBAL\Types\Meta\Right\LayerType; +use Infinito\Domain\Dom\EntityDomService; use Infinito\Domain\Dom\EntityDomServiceInterface; use Infinito\Domain\Request\Entity\RequestedEntityServiceInterface; -use Infinito\Domain\Dom\EntityDomService; -use Infinito\Entity\Source\AbstractSource; -use Infinito\Attribut\SlugAttributInterface; -use Infinito\Attribut\IdAttributInterface; -use Infinito\DBAL\Types\Meta\Right\LayerType; -use Infinito\Attribut\VersionAttributInterface; -use Infinito\Entity\Meta\Law; -use Infinito\Entity\Source\SourceInterface; -use Infinito\Entity\Meta\RightInterface; -use Infinito\Attribut\SourceAttributInterface; -use Infinito\Attribut\GrantAttributInterface; -use Infinito\Attribut\RightsAttributInterface; use Infinito\Entity\EntityInterface; -use Infinito\Attribut\VersionAttribut; -use Infinito\Attribut\IdAttribut; +use Infinito\Entity\Meta\Law; +use Infinito\Entity\Meta\RightInterface; +use Infinito\Entity\Source\AbstractSource; use Infinito\Entity\Source\Complex\UserSource; +use Infinito\Entity\Source\SourceInterface; use Infinito\Entity\User; -use Infinito\Attribut\UserAttributInterface; use Infinito\Exception\Core\NotCorrectInstanceCoreException; +use PHPUnit\Framework\TestCase; /** * @author kevinfrantz diff --git a/application/symfony/tests/Unit/Domain/Fixture/FixtureSource/GuestUserFixtureSourceTest.php b/application/symfony/tests/Unit/Domain/Fixture/FixtureSource/GuestUserFixtureSourceTest.php index cfc23ea..e6f348a 100644 --- a/application/symfony/tests/Unit/Domain/Fixture/FixtureSource/GuestUserFixtureSourceTest.php +++ b/application/symfony/tests/Unit/Domain/Fixture/FixtureSource/GuestUserFixtureSourceTest.php @@ -2,8 +2,8 @@ namespace tests\Unit\Domain\Fixture; -use PHPUnit\Framework\TestCase; use Infinito\Domain\Fixture\FixtureSource\GuestUserFixtureSource; +use PHPUnit\Framework\TestCase; /** * @author kevinfrantz diff --git a/application/symfony/tests/Unit/Domain/Form/FormClassNameServiceTest.php b/application/symfony/tests/Unit/Domain/Form/FormClassNameServiceTest.php index 5c86881..693a5db 100644 --- a/application/symfony/tests/Unit/Domain/Form/FormClassNameServiceTest.php +++ b/application/symfony/tests/Unit/Domain/Form/FormClassNameServiceTest.php @@ -2,10 +2,10 @@ namespace tests\Unit\Domain\Form; -use PHPUnit\Framework\TestCase; +use Infinito\DBAL\Types\ActionType; use Infinito\Domain\Form\FormClassNameService; use Infinito\Entity\Source\PureSource; -use Infinito\DBAL\Types\ActionType; +use PHPUnit\Framework\TestCase; /** * @author kevinfrantz diff --git a/application/symfony/tests/Unit/Domain/Form/RequestedActionFormBuilderTest.php b/application/symfony/tests/Unit/Domain/Form/RequestedActionFormBuilderTest.php index 9032dff..190cdfa 100644 --- a/application/symfony/tests/Unit/Domain/Form/RequestedActionFormBuilderTest.php +++ b/application/symfony/tests/Unit/Domain/Form/RequestedActionFormBuilderTest.php @@ -2,12 +2,12 @@ namespace tests\Unit\Domain\Form; -use PHPUnit\Framework\TestCase; -use Infinito\Domain\Request\Action\RequestedActionInterface; -use Infinito\Domain\Form\RequestedActionFormBuilder; use Infinito\Domain\Form\FormClassNameServiceInterface; -use Symfony\Component\Form\FormFactoryInterface; +use Infinito\Domain\Form\RequestedActionFormBuilder; +use Infinito\Domain\Request\Action\RequestedActionInterface; use Infinito\Exception\Attribut\UndefinedAttributException; +use PHPUnit\Framework\TestCase; +use Symfony\Component\Form\FormFactoryInterface; /** * @author kevinfrantz diff --git a/application/symfony/tests/Unit/Domain/Law/LawPermissionCheckerTest.php b/application/symfony/tests/Unit/Domain/Law/LawPermissionCheckerTest.php index cf4f3a9..e01b5f4 100644 --- a/application/symfony/tests/Unit/Domain/Law/LawPermissionCheckerTest.php +++ b/application/symfony/tests/Unit/Domain/Law/LawPermissionCheckerTest.php @@ -2,19 +2,19 @@ namespace Unit\Domain\Law; -use PHPUnit\Framework\TestCase; +use Doctrine\Common\Collections\ArrayCollection; +use Infinito\DBAL\Types\Meta\Right\CRUDType; +use Infinito\DBAL\Types\Meta\Right\LayerType; use Infinito\Domain\Law\LawPermissionChecker; use Infinito\Domain\Law\LawPermissionCheckerInterface; -use Infinito\Entity\Source\SourceInterface; -use Infinito\Entity\Meta\Right; -use Infinito\DBAL\Types\Meta\Right\LayerType; -use Infinito\DBAL\Types\Meta\Right\CRUDType; +use Infinito\Domain\Source\SourceMemberManager; use Infinito\Entity\Meta\Law; use Infinito\Entity\Meta\LawInterface; +use Infinito\Entity\Meta\Right; use Infinito\Entity\Meta\RightInterface; -use Doctrine\Common\Collections\ArrayCollection; -use Infinito\Domain\Source\SourceMemberManager; use Infinito\Entity\Source\PureSource; +use Infinito\Entity\Source\SourceInterface; +use PHPUnit\Framework\TestCase; /** * @author kevinfrantz diff --git a/application/symfony/tests/Unit/Domain/Layer/LayerActionMapTest.php b/application/symfony/tests/Unit/Domain/Layer/LayerActionMapTest.php index 5235fd1..6b7b7a2 100644 --- a/application/symfony/tests/Unit/Domain/Layer/LayerActionMapTest.php +++ b/application/symfony/tests/Unit/Domain/Layer/LayerActionMapTest.php @@ -2,10 +2,10 @@ namespace tests\Unit\Domain\Layer; -use PHPUnit\Framework\TestCase; use Infinito\DBAL\Types\ActionType; -use Infinito\Domain\Layer\LayerActionMap; use Infinito\DBAL\Types\Meta\Right\LayerType; +use Infinito\Domain\Layer\LayerActionMap; +use PHPUnit\Framework\TestCase; /** * @author kevinfrantz diff --git a/application/symfony/tests/Unit/Domain/Layer/LayerInterfaceMapTest.php b/application/symfony/tests/Unit/Domain/Layer/LayerInterfaceMapTest.php index eeb0c26..82381e6 100644 --- a/application/symfony/tests/Unit/Domain/Layer/LayerInterfaceMapTest.php +++ b/application/symfony/tests/Unit/Domain/Layer/LayerInterfaceMapTest.php @@ -2,8 +2,8 @@ namespace tests\Unit\Domain\Layer; -use PHPUnit\Framework\TestCase; use Infinito\Domain\Layer\LayerInterfaceMap; +use PHPUnit\Framework\TestCase; /** * @author kevinfrantz diff --git a/application/symfony/tests/Unit/Domain/Map/ActionHttpMethodTest.php b/application/symfony/tests/Unit/Domain/Map/ActionHttpMethodTest.php index 5e846c2..d57efce 100644 --- a/application/symfony/tests/Unit/Domain/Map/ActionHttpMethodTest.php +++ b/application/symfony/tests/Unit/Domain/Map/ActionHttpMethodTest.php @@ -2,10 +2,10 @@ namespace tests\Unit\Domain\Map; +use Infinito\DBAL\Types\ActionType; +use Infinito\Domain\Map\ActionHttpMethodMap; use PHPUnit\Framework\TestCase; use Symfony\Component\HttpFoundation\Request; -use Infinito\Domain\Map\ActionHttpMethodMap; -use Infinito\DBAL\Types\ActionType; /** * @author kevinfrantz diff --git a/application/symfony/tests/Unit/Domain/Member/MemberManagerTest.php b/application/symfony/tests/Unit/Domain/Member/MemberManagerTest.php index 4b37e34..5746d46 100644 --- a/application/symfony/tests/Unit/Domain/Member/MemberManagerTest.php +++ b/application/symfony/tests/Unit/Domain/Member/MemberManagerTest.php @@ -2,11 +2,11 @@ namespace Tests\Unit\Domain\Member; -use PHPUnit\Framework\TestCase; -use Infinito\Domain\Member\MemberManagerInterface; -use Infinito\Entity\Meta\Relation\Member\MemberRelationInterface; -use Infinito\Entity\Meta\Relation\Member\MemberRelation; use Infinito\Domain\Member\MemberManager; +use Infinito\Domain\Member\MemberManagerInterface; +use Infinito\Entity\Meta\Relation\Member\MemberRelation; +use Infinito\Entity\Meta\Relation\Member\MemberRelationInterface; +use PHPUnit\Framework\TestCase; class MemberManagerTest extends TestCase { diff --git a/application/symfony/tests/Unit/Domain/Parameter/Parameter/VersionParameterTest.php b/application/symfony/tests/Unit/Domain/Parameter/Parameter/VersionParameterTest.php index 8bce105..091d547 100644 --- a/application/symfony/tests/Unit/Domain/Parameter/Parameter/VersionParameterTest.php +++ b/application/symfony/tests/Unit/Domain/Parameter/Parameter/VersionParameterTest.php @@ -2,8 +2,8 @@ namespace tests\Unit\Domain\Parameter\Parameter; -use PHPUnit\Framework\TestCase; use Infinito\Domain\Parameter\Parameter\VersionParameter; +use PHPUnit\Framework\TestCase; /** * @author kevinfrantz diff --git a/application/symfony/tests/Unit/Domain/Parameter/Parameter/ViewParameterTest.php b/application/symfony/tests/Unit/Domain/Parameter/Parameter/ViewParameterTest.php index 785484b..464cb3e 100644 --- a/application/symfony/tests/Unit/Domain/Parameter/Parameter/ViewParameterTest.php +++ b/application/symfony/tests/Unit/Domain/Parameter/Parameter/ViewParameterTest.php @@ -2,9 +2,9 @@ namespace tests\Unit\Domain\Parameter\Parameter; -use PHPUnit\Framework\TestCase; -use Infinito\Domain\Parameter\Parameter\ViewParameter; use Infinito\DBAL\Types\ActionType; +use Infinito\Domain\Parameter\Parameter\ViewParameter; +use PHPUnit\Framework\TestCase; /** * @author kevinfrantz diff --git a/application/symfony/tests/Unit/Domain/Parameter/ParameterFactoryTest.php b/application/symfony/tests/Unit/Domain/Parameter/ParameterFactoryTest.php index bef6351..a38a50c 100644 --- a/application/symfony/tests/Unit/Domain/Parameter/ParameterFactoryTest.php +++ b/application/symfony/tests/Unit/Domain/Parameter/ParameterFactoryTest.php @@ -2,10 +2,10 @@ namespace tests\Unit\Domain\Parameter; -use PHPUnit\Framework\TestCase; -use Infinito\Domain\Parameter\ParameterFactory; use Infinito\Domain\Parameter\Parameter\VersionParameter; +use Infinito\Domain\Parameter\ParameterFactory; use Infinito\Exception\Core\NotImplementedCoreException; +use PHPUnit\Framework\TestCase; /** * @author kevinfrantz diff --git a/application/symfony/tests/Unit/Domain/Parameter/ValidGetParameterServiceTest.php b/application/symfony/tests/Unit/Domain/Parameter/ValidGetParameterServiceTest.php index 0f9c196..f00fb3c 100644 --- a/application/symfony/tests/Unit/Domain/Parameter/ValidGetParameterServiceTest.php +++ b/application/symfony/tests/Unit/Domain/Parameter/ValidGetParameterServiceTest.php @@ -2,18 +2,18 @@ namespace tests\Unit\Domain\Parameter; -use Symfony\Component\HttpFoundation\Request; -use Symfony\Component\HttpFoundation\RequestStack; -use Infinito\Domain\Parameter\Parameter\VersionParameter; -use Infinito\Domain\Parameter\ParameterFactory; -use Infinito\Domain\Parameter\ValidGetParametersService; -use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase; -use Symfony\Component\Validator\Validator\ValidatorInterface; -use Infinito\Domain\Parameter\ValidGetParameterServiceInterface; -use Infinito\Domain\Parameter\Parameter\ViewParameter; use Infinito\DBAL\Types\ActionType; +use Infinito\Domain\Parameter\Parameter\VersionParameter; +use Infinito\Domain\Parameter\Parameter\ViewParameter; +use Infinito\Domain\Parameter\ParameterFactory; +use Infinito\Domain\Parameter\ValidGetParameterServiceInterface; +use Infinito\Domain\Parameter\ValidGetParametersService; use Infinito\Exception\Collection\NotSetElementException; use Infinito\Exception\Core\NotImplementedCoreException; +use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase; +use Symfony\Component\HttpFoundation\Request; +use Symfony\Component\HttpFoundation\RequestStack; +use Symfony\Component\Validator\Validator\ValidatorInterface; /** * This class is a bit messed up because it is an recycled class of an other unit. diff --git a/application/symfony/tests/Unit/Domain/Path/NamespacePathMapTest.php b/application/symfony/tests/Unit/Domain/Path/NamespacePathMapTest.php index a9e60b3..7820aa1 100644 --- a/application/symfony/tests/Unit/Domain/Path/NamespacePathMapTest.php +++ b/application/symfony/tests/Unit/Domain/Path/NamespacePathMapTest.php @@ -2,9 +2,9 @@ namespace tests\Unit\Domain\Path; -use PHPUnit\Framework\TestCase; -use Infinito\Domain\Path\NamespacePathMapInterface; use Infinito\Domain\Path\NamespacePathMap; +use Infinito\Domain\Path\NamespacePathMapInterface; +use PHPUnit\Framework\TestCase; /** * @author kevinfrantz diff --git a/application/symfony/tests/Unit/Domain/Repository/LayerRepositoryFactoryServiceTest.php b/application/symfony/tests/Unit/Domain/Repository/LayerRepositoryFactoryServiceTest.php index 97a5ced..125b663 100644 --- a/application/symfony/tests/Unit/Domain/Repository/LayerRepositoryFactoryServiceTest.php +++ b/application/symfony/tests/Unit/Domain/Repository/LayerRepositoryFactoryServiceTest.php @@ -2,12 +2,12 @@ namespace tests\Unit\Domain\Repository; -use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase; -use Infinito\Domain\Repository\LayerRepositoryFactoryServiceInterface; -use Infinito\Domain\Repository\LayerRepositoryFactoryService; -use Infinito\Repository\RepositoryInterface; use Infinito\Domain\Layer\LayerClassMap; +use Infinito\Domain\Repository\LayerRepositoryFactoryService; +use Infinito\Domain\Repository\LayerRepositoryFactoryServiceInterface; use Infinito\Exception\Collection\NotSetElementException; +use Infinito\Repository\RepositoryInterface; +use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase; /** * @author kevinfrantz diff --git a/application/symfony/tests/Unit/Domain/Request/Action/RequestedActionServiceTest.php b/application/symfony/tests/Unit/Domain/Request/Action/RequestedActionServiceTest.php index d1b9fb3..3cce179 100644 --- a/application/symfony/tests/Unit/Domain/Request/Action/RequestedActionServiceTest.php +++ b/application/symfony/tests/Unit/Domain/Request/Action/RequestedActionServiceTest.php @@ -2,11 +2,11 @@ namespace tests\Unit\Domain\Request\Action; -use PHPUnit\Framework\TestCase; use Infinito\Domain\Request\Action\RequestedActionService; use Infinito\Domain\Request\Action\RequestedActionServiceInterface; use Infinito\Domain\Request\User\RequestedUserServiceInterface; use Infinito\Domain\User\UserSourceDirectorInterface; +use PHPUnit\Framework\TestCase; /** * @author kevinfrantz diff --git a/application/symfony/tests/Unit/Domain/Request/Action/RequestedActionTest.php b/application/symfony/tests/Unit/Domain/Request/Action/RequestedActionTest.php index e752866..c9a396d 100644 --- a/application/symfony/tests/Unit/Domain/Request/Action/RequestedActionTest.php +++ b/application/symfony/tests/Unit/Domain/Request/Action/RequestedActionTest.php @@ -2,17 +2,17 @@ namespace tests\Unit\Domain\Request\Action; -use PHPUnit\Framework\TestCase; -use Infinito\Domain\Request\Right\RequestedRightInterface; +use Infinito\DBAL\Types\ActionType; +use Infinito\DBAL\Types\Meta\Right\LayerType; +use Infinito\Domain\Request\Action\RequestedAction; use Infinito\Domain\Request\Action\RequestedActionInterface; use Infinito\Domain\Request\Right\RequestedRight; -use Infinito\Domain\Request\Action\RequestedAction; -use Infinito\DBAL\Types\ActionType; -use Infinito\Repository\Source\SourceRepositoryInterface; -use Infinito\DBAL\Types\Meta\Right\LayerType; -use Infinito\Domain\User\UserSourceDirector; +use Infinito\Domain\Request\Right\RequestedRightInterface; use Infinito\Domain\Request\User\RequestedUser; +use Infinito\Domain\User\UserSourceDirector; use Infinito\Entity\Source\Complex\UserSourceInterface; +use Infinito\Repository\Source\SourceRepositoryInterface; +use PHPUnit\Framework\TestCase; /** * @author kevinfrantz diff --git a/application/symfony/tests/Unit/Domain/Request/Entity/LazyRequestedEntityTest.php b/application/symfony/tests/Unit/Domain/Request/Entity/LazyRequestedEntityTest.php index 5abab5e..b65810e 100644 --- a/application/symfony/tests/Unit/Domain/Request/Entity/LazyRequestedEntityTest.php +++ b/application/symfony/tests/Unit/Domain/Request/Entity/LazyRequestedEntityTest.php @@ -2,15 +2,15 @@ namespace tests\Unit\Domain\Request\Entity; -use PHPUnit\Framework\TestCase; -use Infinito\Domain\Request\Entity\RequestedEntityInterface; -use Infinito\Domain\Request\Entity\LazyRequestedEntity; -use Infinito\Domain\Repository\LayerRepositoryFactoryServiceInterface; -use Infinito\Repository\RepositoryInterface; -use Infinito\Entity\Source\PureSource; -use Infinito\Repository\Source\SourceRepositoryInterface; use Infinito\DBAL\Types\Meta\Right\LayerType; +use Infinito\Domain\Repository\LayerRepositoryFactoryServiceInterface; +use Infinito\Domain\Request\Entity\LazyRequestedEntity; +use Infinito\Domain\Request\Entity\RequestedEntityInterface; use Infinito\Domain\Request\Right\RequestedRightInterface; +use Infinito\Entity\Source\PureSource; +use Infinito\Repository\RepositoryInterface; +use Infinito\Repository\Source\SourceRepositoryInterface; +use PHPUnit\Framework\TestCase; class LazyRequestedEntityTest extends TestCase { diff --git a/application/symfony/tests/Unit/Domain/Request/Entity/RequestedEntityTest.php b/application/symfony/tests/Unit/Domain/Request/Entity/RequestedEntityTest.php index f34aa64..a36ad9e 100644 --- a/application/symfony/tests/Unit/Domain/Request/Entity/RequestedEntityTest.php +++ b/application/symfony/tests/Unit/Domain/Request/Entity/RequestedEntityTest.php @@ -2,18 +2,18 @@ namespace tests\Unit\Domain\Request\Entity; -use PHPUnit\Framework\TestCase; -use Infinito\Domain\Request\Entity\RequestedEntity; -use Infinito\Domain\Repository\LayerRepositoryFactoryServiceInterface; -use Infinito\Domain\Request\Right\RequestedRightInterface; use Infinito\DBAL\Types\Meta\Right\LayerType; -use Infinito\Repository\RepositoryInterface; +use Infinito\Domain\Repository\LayerRepositoryFactoryServiceInterface; +use Infinito\Domain\Request\Entity\RequestedEntity; +use Infinito\Domain\Request\Right\RequestedRightInterface; use Infinito\Entity\EntityInterface; use Infinito\Entity\Source\AbstractSource; +use Infinito\Exception\Attribut\AllreadyDefinedAttributException; use Infinito\Exception\Attribut\UndefinedAttributException; use Infinito\Exception\Core\NoIdentityCoreException; -use Infinito\Exception\Attribut\AllreadyDefinedAttributException; use Infinito\Exception\Core\NotCorrectInstanceCoreException; +use Infinito\Repository\RepositoryInterface; +use PHPUnit\Framework\TestCase; /** * @author kevinfrantz diff --git a/application/symfony/tests/Unit/Domain/Request/Right/AbstractRequestedRightFacadeTest.php b/application/symfony/tests/Unit/Domain/Request/Right/AbstractRequestedRightFacadeTest.php index 09aab3a..7563d3b 100644 --- a/application/symfony/tests/Unit/Domain/Request/Right/AbstractRequestedRightFacadeTest.php +++ b/application/symfony/tests/Unit/Domain/Request/Right/AbstractRequestedRightFacadeTest.php @@ -2,31 +2,26 @@ namespace tests\Unit\Domain\Right\User; -use PHPUnit\Framework\TestCase; -use Infinito\Entity\User; -use Infinito\Domain\Request\User\RequestedUser; -use Infinito\DBAL\Types\Meta\Right\LayerType; use Infinito\DBAL\Types\Meta\Right\CRUDType; -use Infinito\Entity\Source\AbstractSource; -use Infinito\Domain\User\UserSourceDirectorInterface; -use Infinito\Domain\Request\Right\RequestedRightInterface; -use Infinito\Domain\Request\Right\RequestedRight; -use Infinito\Domain\Request\Entity\RequestedEntityInterface; -use Infinito\Entity\Source\SourceInterface; -use Infinito\Domain\Request\Right\AbstractRequestedRightFacade; +use Infinito\DBAL\Types\Meta\Right\LayerType; use Infinito\Domain\Fixture\FixtureSource\ImpressumFixtureSource; +use Infinito\Domain\Request\Entity\RequestedEntityInterface; +use Infinito\Domain\Request\Right\AbstractRequestedRightFacade; +use Infinito\Domain\Request\Right\RequestedRight; +use Infinito\Domain\Request\Right\RequestedRightInterface; +use Infinito\Domain\Request\User\RequestedUser; +use Infinito\Domain\User\UserSourceDirectorInterface; +use Infinito\Entity\Source\AbstractSource; +use Infinito\Entity\Source\SourceInterface; +use Infinito\Entity\User; use Infinito\Exception\Collection\NotPossibleSetElementException; +use PHPUnit\Framework\TestCase; /** * @author kevinfrantz */ class AbstractRequestedRightFacadeTest extends TestCase { - /** - * @param RequestedRightInterface $requestedRight - * - * @return AbstractRequestedRightFacade - */ private function getRequestedRightFacade(RequestedRightInterface $requestedRight): AbstractRequestedRightFacade { return new class($requestedRight) extends AbstractRequestedRightFacade { diff --git a/application/symfony/tests/Unit/Domain/Request/Right/RequestedRightTest.php b/application/symfony/tests/Unit/Domain/Request/Right/RequestedRightTest.php index e2014ab..da0b2cb 100644 --- a/application/symfony/tests/Unit/Domain/Request/Right/RequestedRightTest.php +++ b/application/symfony/tests/Unit/Domain/Request/Right/RequestedRightTest.php @@ -2,22 +2,22 @@ namespace tests\Unit\Domain\Request\Right; -use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase; -use Infinito\Domain\Request\Right\RequestedRightInterface; -use Infinito\Domain\Request\Right\RequestedRight; +use Infinito\DBAL\Types\ActionType; use Infinito\DBAL\Types\Meta\Right\LayerType; +use Infinito\Domain\Fixture\FixtureSource\ImpressumFixtureSource; +use Infinito\Domain\Repository\LayerRepositoryFactoryService; +use Infinito\Domain\Repository\LayerRepositoryFactoryServiceInterface; use Infinito\Domain\Request\Entity\RequestedEntity; use Infinito\Domain\Request\Entity\RequestedEntityInterface; -use Infinito\Entity\Source\PureSource; -use Infinito\Domain\Repository\LayerRepositoryFactoryServiceInterface; -use Infinito\Domain\Repository\LayerRepositoryFactoryService; -use Symfony\Component\HttpKernel\Exception\NotFoundHttpException; +use Infinito\Domain\Request\Right\RequestedRight; +use Infinito\Domain\Request\Right\RequestedRightInterface; use Infinito\Entity\Meta\Law; +use Infinito\Entity\Source\PureSource; use Infinito\Entity\Source\SourceInterface; -use Infinito\DBAL\Types\ActionType; -use Infinito\Domain\Fixture\FixtureSource\ImpressumFixtureSource; -use Infinito\Exception\Core\NoIdentityCoreException; use Infinito\Exception\Collection\ContainsElementException; +use Infinito\Exception\Core\NoIdentityCoreException; +use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase; +use Symfony\Component\HttpKernel\Exception\NotFoundHttpException; /** * @author kevinfrantz diff --git a/application/symfony/tests/Unit/Domain/Request/User/RequestedUserRightServiceTest.php b/application/symfony/tests/Unit/Domain/Request/User/RequestedUserRightServiceTest.php index 44cdd35..00ab62e 100644 --- a/application/symfony/tests/Unit/Domain/Request/User/RequestedUserRightServiceTest.php +++ b/application/symfony/tests/Unit/Domain/Request/User/RequestedUserRightServiceTest.php @@ -2,11 +2,11 @@ namespace tests\Unit\Domain\Request\User; -use PHPUnit\Framework\TestCase; -use Infinito\Domain\Request\User\RequestedUserService; -use Infinito\Domain\User\UserSourceDirectorServiceInterface; -use Infinito\Domain\Request\User\RequestedUserServiceInterface; use Infinito\Domain\Request\Right\RequestedRightServiceInterface; +use Infinito\Domain\Request\User\RequestedUserService; +use Infinito\Domain\Request\User\RequestedUserServiceInterface; +use Infinito\Domain\User\UserSourceDirectorServiceInterface; +use PHPUnit\Framework\TestCase; /** * @author kevinfrantz diff --git a/application/symfony/tests/Unit/Domain/Request/User/RequestedUserRightTest.php b/application/symfony/tests/Unit/Domain/Request/User/RequestedUserRightTest.php index 99d438e..4ac12d3 100644 --- a/application/symfony/tests/Unit/Domain/Request/User/RequestedUserRightTest.php +++ b/application/symfony/tests/Unit/Domain/Request/User/RequestedUserRightTest.php @@ -2,21 +2,21 @@ namespace tests\Unit\Domain\Right\User; -use PHPUnit\Framework\TestCase; -use Infinito\Entity\User; -use Infinito\Domain\Request\User\RequestedUser; -use Infinito\DBAL\Types\Meta\Right\LayerType; use Infinito\DBAL\Types\Meta\Right\CRUDType; -use Infinito\Entity\Source\AbstractSource; -use Infinito\Domain\User\UserSourceDirectorInterface; -use Infinito\Domain\Request\Right\RequestedRightInterface; -use Infinito\Domain\Request\Right\RequestedRight; -use Infinito\Domain\User\UserSourceDirector; -use Infinito\Repository\Source\SourceRepositoryInterface; -use Infinito\Domain\Request\Entity\RequestedEntityInterface; +use Infinito\DBAL\Types\Meta\Right\LayerType; use Infinito\Domain\Fixture\FixtureSource\ImpressumFixtureSource; -use Infinito\Exception\Core\NotCorrectInstanceCoreException; +use Infinito\Domain\Request\Entity\RequestedEntityInterface; +use Infinito\Domain\Request\Right\RequestedRight; +use Infinito\Domain\Request\Right\RequestedRightInterface; +use Infinito\Domain\Request\User\RequestedUser; +use Infinito\Domain\User\UserSourceDirector; +use Infinito\Domain\User\UserSourceDirectorInterface; +use Infinito\Entity\Source\AbstractSource; +use Infinito\Entity\User; use Infinito\Exception\Collection\NotPossibleSetElementException; +use Infinito\Exception\Core\NotCorrectInstanceCoreException; +use Infinito\Repository\Source\SourceRepositoryInterface; +use PHPUnit\Framework\TestCase; /** * @author kevinfrantz diff --git a/application/symfony/tests/Unit/Domain/Right/RightCheckerTest.php b/application/symfony/tests/Unit/Domain/Right/RightCheckerTest.php index 198b02b..021dabe 100644 --- a/application/symfony/tests/Unit/Domain/Right/RightCheckerTest.php +++ b/application/symfony/tests/Unit/Domain/Right/RightCheckerTest.php @@ -2,15 +2,15 @@ namespace Tests\Unit\Domain\Right; -use PHPUnit\Framework\TestCase; -use Infinito\Entity\Meta\RightInterface; -use Infinito\Entity\Meta\Right; -use Infinito\Entity\Source\SourceInterface; -use Infinito\DBAL\Types\Meta\Right\LayerType; -use Infinito\Domain\Right\RightCheckerInterface; -use Infinito\Domain\Right\RightChecker; use Infinito\DBAL\Types\Meta\Right\CRUDType; +use Infinito\DBAL\Types\Meta\Right\LayerType; +use Infinito\Domain\Right\RightChecker; +use Infinito\Domain\Right\RightCheckerInterface; +use Infinito\Entity\Meta\Right; +use Infinito\Entity\Meta\RightInterface; use Infinito\Entity\Source\PureSource; +use Infinito\Entity\Source\SourceInterface; +use PHPUnit\Framework\TestCase; /** * @author kevinfrantz diff --git a/application/symfony/tests/Unit/Domain/Right/RightLayerCombinationServiceTest.php b/application/symfony/tests/Unit/Domain/Right/RightLayerCombinationServiceTest.php index 24fb705..87d6d70 100644 --- a/application/symfony/tests/Unit/Domain/Right/RightLayerCombinationServiceTest.php +++ b/application/symfony/tests/Unit/Domain/Right/RightLayerCombinationServiceTest.php @@ -2,11 +2,11 @@ namespace tests\Unit\Domain\Right; -use PHPUnit\Framework\TestCase; -use Infinito\Domain\Right\RightLayerCombinationServiceInterface; -use Infinito\Domain\Right\RightLayerCombinationService; use Infinito\DBAL\Types\Meta\Right\CRUDType; use Infinito\DBAL\Types\Meta\Right\LayerType; +use Infinito\Domain\Right\RightLayerCombinationService; +use Infinito\Domain\Right\RightLayerCombinationServiceInterface; +use PHPUnit\Framework\TestCase; /** * @author kevinfrantz diff --git a/application/symfony/tests/Unit/Domain/Right/RightTransformerServiceTest.php b/application/symfony/tests/Unit/Domain/Right/RightTransformerServiceTest.php index 0a84242..d8038ff 100644 --- a/application/symfony/tests/Unit/Domain/Right/RightTransformerServiceTest.php +++ b/application/symfony/tests/Unit/Domain/Right/RightTransformerServiceTest.php @@ -2,13 +2,13 @@ namespace tests\Unit\Domain\Right; -use PHPUnit\Framework\TestCase; -use Infinito\Domain\Request\Right\RequestedRight; use Infinito\DBAL\Types\Meta\Right\CRUDType; use Infinito\DBAL\Types\Meta\Right\LayerType; -use Infinito\Entity\Source\SourceInterface; -use Infinito\Domain\Right\RightTransformerService; use Infinito\Domain\Request\Entity\RequestedEntityInterface; +use Infinito\Domain\Request\Right\RequestedRight; +use Infinito\Domain\Right\RightTransformerService; +use Infinito\Entity\Source\SourceInterface; +use PHPUnit\Framework\TestCase; /** * @author kevinfrantz diff --git a/application/symfony/tests/Unit/Domain/Secure/SecureRequestedRightCheckerTest.php b/application/symfony/tests/Unit/Domain/Secure/SecureRequestedRightCheckerTest.php index 13a6539..3f28ae9 100644 --- a/application/symfony/tests/Unit/Domain/Secure/SecureRequestedRightCheckerTest.php +++ b/application/symfony/tests/Unit/Domain/Secure/SecureRequestedRightCheckerTest.php @@ -2,16 +2,16 @@ namespace tests\Unit\Domain\Secure; -use PHPUnit\Framework\TestCase; -use Infinito\Entity\Source\AbstractSource; -use Infinito\DBAL\Types\Meta\Right\LayerType; use Infinito\DBAL\Types\Meta\Right\CRUDType; -use Infinito\Entity\Meta\Right; -use Infinito\Domain\Request\Right\RequestedRight; +use Infinito\DBAL\Types\Meta\Right\LayerType; use Infinito\Domain\Request\Entity\RequestedEntityInterface; -use Infinito\Domain\Secure\SecureRequestedRightCheckerService; -use Infinito\Domain\Right\RightTransformerService; +use Infinito\Domain\Request\Right\RequestedRight; use Infinito\Domain\Request\Right\RequestedRightInterface; +use Infinito\Domain\Right\RightTransformerService; +use Infinito\Domain\Secure\SecureRequestedRightCheckerService; +use Infinito\Entity\Meta\Right; +use Infinito\Entity\Source\AbstractSource; +use PHPUnit\Framework\TestCase; /** * @author kevinfrantz diff --git a/application/symfony/tests/Unit/Domain/Secure/SecureSourceCheckerTest.php b/application/symfony/tests/Unit/Domain/Secure/SecureSourceCheckerTest.php index 7e4c14b..f712e3c 100644 --- a/application/symfony/tests/Unit/Domain/Secure/SecureSourceCheckerTest.php +++ b/application/symfony/tests/Unit/Domain/Secure/SecureSourceCheckerTest.php @@ -2,17 +2,17 @@ namespace Tests\Unit\Domain\Secure; -use PHPUnit\Framework\TestCase; -use Infinito\Entity\Source\SourceInterface; -use Infinito\Domain\Secure\SecureSourceCheckerInterface; -use Infinito\Entity\Source\AbstractSource; -use Infinito\Domain\Secure\SecureSourceChecker; -use Infinito\Entity\Meta\Right; -use Infinito\DBAL\Types\Meta\Right\LayerType; -use Infinito\DBAL\Types\Meta\Right\CRUDType; use Infinito\Attribut\SourceAttribut; use Infinito\Attribut\SourceAttributInterface; +use Infinito\DBAL\Types\Meta\Right\CRUDType; +use Infinito\DBAL\Types\Meta\Right\LayerType; +use Infinito\Domain\Secure\SecureSourceChecker; +use Infinito\Domain\Secure\SecureSourceCheckerInterface; +use Infinito\Entity\Meta\Right; +use Infinito\Entity\Source\AbstractSource; +use Infinito\Entity\Source\SourceInterface; use Infinito\Exception\Permission\NoSourcePermissionException; +use PHPUnit\Framework\TestCase; /** * @author kevinfrantz @@ -34,9 +34,6 @@ class SecureSourceCheckerTest extends TestCase */ private $securerSourceChecker; - /** - * @return SourceInterface - */ private function createSourceMock(): SourceInterface { return new class() extends AbstractSource implements SourceAttributInterface { diff --git a/application/symfony/tests/Unit/Domain/Source/SourceClassInformationServiceTest.php b/application/symfony/tests/Unit/Domain/Source/SourceClassInformationServiceTest.php index 7c50dfc..46948cf 100644 --- a/application/symfony/tests/Unit/Domain/Source/SourceClassInformationServiceTest.php +++ b/application/symfony/tests/Unit/Domain/Source/SourceClassInformationServiceTest.php @@ -2,11 +2,11 @@ namespace tests\Unit\Domain\Source; -use Infinito\Domain\Source\SourceClassInformationServiceInterface; use Infinito\Domain\Source\SourceClassInformationService; -use PHPUnit\Framework\TestCase; -use Infinito\Entity\Source\PureSource; +use Infinito\Domain\Source\SourceClassInformationServiceInterface; use Infinito\Entity\Source\Complex\AbstractComplexSource; +use Infinito\Entity\Source\PureSource; +use PHPUnit\Framework\TestCase; /** * @author kevinfrantz diff --git a/application/symfony/tests/Unit/Domain/Source/SourceMemberInformationTest.php b/application/symfony/tests/Unit/Domain/Source/SourceMemberInformationTest.php index 115b712..0a8ed15 100644 --- a/application/symfony/tests/Unit/Domain/Source/SourceMemberInformationTest.php +++ b/application/symfony/tests/Unit/Domain/Source/SourceMemberInformationTest.php @@ -2,16 +2,16 @@ namespace Tests\Unit\Domain\Source; -use PHPUnit\Framework\TestCase; -use Infinito\Entity\Source\SourceInterface; -use Infinito\Entity\Source\Complex\UserSource; -use Infinito\Entity\Source\Primitive\Text\TextSource; -use Infinito\Entity\Source\Primitive\Name\FirstNameSource; use Doctrine\Common\Collections\ArrayCollection; -use Infinito\Entity\Source\Complex\FullPersonNameSource; use Infinito\Domain\Source\SourceMemberInformation; use Infinito\Domain\Source\SourceMemberInformationInterface; +use Infinito\Entity\Source\Complex\FullPersonNameSource; +use Infinito\Entity\Source\Complex\UserSource; +use Infinito\Entity\Source\Primitive\Name\FirstNameSource; +use Infinito\Entity\Source\Primitive\Text\TextSource; use Infinito\Entity\Source\PureSource; +use Infinito\Entity\Source\SourceInterface; +use PHPUnit\Framework\TestCase; class SourceMemberInformationTest extends TestCase { diff --git a/application/symfony/tests/Unit/Domain/Source/SourceMemberManagerTest.php b/application/symfony/tests/Unit/Domain/Source/SourceMemberManagerTest.php index b4b6e82..b6b449b 100644 --- a/application/symfony/tests/Unit/Domain/Source/SourceMemberManagerTest.php +++ b/application/symfony/tests/Unit/Domain/Source/SourceMemberManagerTest.php @@ -2,11 +2,11 @@ namespace Tests\Unit\Domain\Source; -use PHPUnit\Framework\TestCase; -use Infinito\Entity\Source\SourceInterface; -use Infinito\Domain\Source\SourceMemberManagerInterface; use Infinito\Domain\Source\SourceMemberManager; +use Infinito\Domain\Source\SourceMemberManagerInterface; use Infinito\Entity\Source\PureSource; +use Infinito\Entity\Source\SourceInterface; +use PHPUnit\Framework\TestCase; class SourceMemberManagerTest extends TestCase { diff --git a/application/symfony/tests/Unit/Domain/Source/SourceMembershipInformationTest.php b/application/symfony/tests/Unit/Domain/Source/SourceMembershipInformationTest.php index 0d0018c..166289e 100644 --- a/application/symfony/tests/Unit/Domain/Source/SourceMembershipInformationTest.php +++ b/application/symfony/tests/Unit/Domain/Source/SourceMembershipInformationTest.php @@ -2,15 +2,15 @@ namespace Tests\Unit\Domain\Source; -use PHPUnit\Framework\TestCase; -use Infinito\Domain\Source\SourceMembershipInformationInterface; -use Infinito\Domain\Source\SourceMembershipInformation; -use Infinito\Entity\Source\SourceInterface; -use Infinito\Entity\Source\Complex\UserSource; -use Infinito\Entity\Source\Primitive\Text\TextSource; -use Infinito\Entity\Source\Primitive\Name\FirstNameSource; use Doctrine\Common\Collections\ArrayCollection; +use Infinito\Domain\Source\SourceMembershipInformation; +use Infinito\Domain\Source\SourceMembershipInformationInterface; use Infinito\Entity\Source\Complex\FullPersonNameSource; +use Infinito\Entity\Source\Complex\UserSource; +use Infinito\Entity\Source\Primitive\Name\FirstNameSource; +use Infinito\Entity\Source\Primitive\Text\TextSource; +use Infinito\Entity\Source\SourceInterface; +use PHPUnit\Framework\TestCase; class SourceMembershipInformationTest extends TestCase { diff --git a/application/symfony/tests/Unit/Domain/Source/SourceRightManagerTest.php b/application/symfony/tests/Unit/Domain/Source/SourceRightManagerTest.php index a99f811..161535b 100644 --- a/application/symfony/tests/Unit/Domain/Source/SourceRightManagerTest.php +++ b/application/symfony/tests/Unit/Domain/Source/SourceRightManagerTest.php @@ -2,17 +2,17 @@ namespace Unit\Domain\Source; -use PHPUnit\Framework\TestCase; -use Infinito\Entity\Source\SourceInterface; -use Infinito\Domain\Source\SourceRightManagerInterface; use Infinito\Domain\Source\SourceRightManager; -use Infinito\Entity\Meta\RightInterface; -use Infinito\Entity\Meta\Right; +use Infinito\Domain\Source\SourceRightManagerInterface; use Infinito\Entity\Meta\Law; +use Infinito\Entity\Meta\Right; +use Infinito\Entity\Meta\RightInterface; use Infinito\Entity\Source\PureSource; -use Infinito\Exception\Collection\ContainsElementException; +use Infinito\Entity\Source\SourceInterface; use Infinito\Exception\Attribut\AllreadyDefinedAttributException; +use Infinito\Exception\Collection\ContainsElementException; use Infinito\Exception\Collection\NotSetElementException; +use PHPUnit\Framework\TestCase; /** * @author kevinfrantz diff --git a/application/symfony/tests/Unit/Domain/Source/TreeSourceServiceTest.php b/application/symfony/tests/Unit/Domain/Source/TreeSourceServiceTest.php index aae190a..7f9a2cd 100644 --- a/application/symfony/tests/Unit/Domain/Source/TreeSourceServiceTest.php +++ b/application/symfony/tests/Unit/Domain/Source/TreeSourceServiceTest.php @@ -2,12 +2,12 @@ namespace Tests\Unit\Domain\Source; -use PHPUnit\Framework\TestCase; +use Doctrine\Common\Collections\ArrayCollection; +use Infinito\Domain\Source\TreeSourceInformation; +use Infinito\Domain\Source\TreeSourceInformationInterface; use Infinito\Entity\Source\Complex\Collection\TreeCollectionSource; use Infinito\Entity\Source\SourceInterface; -use Doctrine\Common\Collections\ArrayCollection; -use Infinito\Domain\Source\TreeSourceInformationInterface; -use Infinito\Domain\Source\TreeSourceInformation; +use PHPUnit\Framework\TestCase; class TreeSourceInformationTest extends TestCase { diff --git a/application/symfony/tests/Unit/Domain/Template/TemplateNameServiceTest.php b/application/symfony/tests/Unit/Domain/Template/TemplateNameServiceTest.php index 5920ea3..5c5156e 100644 --- a/application/symfony/tests/Unit/Domain/Template/TemplateNameServiceTest.php +++ b/application/symfony/tests/Unit/Domain/Template/TemplateNameServiceTest.php @@ -2,11 +2,11 @@ namespace tests\Unit\Domain\Template; -use PHPUnit\Framework\TestCase; -use Infinito\Domain\Template\TemplateNameServiceInterface; -use Infinito\Domain\Template\TemplateNameService; -use Infinito\Domain\Request\Entity\RequestedEntityServiceInterface; use Infinito\Domain\Request\Action\RequestedActionServiceInterface; +use Infinito\Domain\Request\Entity\RequestedEntityServiceInterface; +use Infinito\Domain\Template\TemplateNameService; +use Infinito\Domain\Template\TemplateNameServiceInterface; +use PHPUnit\Framework\TestCase; /** * @author kevinfrantz diff --git a/application/symfony/tests/Unit/Domain/Twig/ActionIconClassMapTest.php b/application/symfony/tests/Unit/Domain/Twig/ActionIconClassMapTest.php index 14a29f3..209162a 100644 --- a/application/symfony/tests/Unit/Domain/Twig/ActionIconClassMapTest.php +++ b/application/symfony/tests/Unit/Domain/Twig/ActionIconClassMapTest.php @@ -2,11 +2,11 @@ namespace tests\Unit\Domain\Twig; -use PHPUnit\Framework\TestCase; -use Infinito\Domain\Twig\ActionIconClassMapInterface; -use Infinito\Domain\Twig\ActionIconClassMap; use Infinito\DBAL\Types\ActionType; +use Infinito\Domain\Twig\ActionIconClassMap; +use Infinito\Domain\Twig\ActionIconClassMapInterface; use Infinito\Exception\Collection\NotSetElementException; +use PHPUnit\Framework\TestCase; /** * @author kevinfrantz diff --git a/application/symfony/tests/Unit/Domain/Twig/LayerIconClassMapTest.php b/application/symfony/tests/Unit/Domain/Twig/LayerIconClassMapTest.php index 79507b4..991f372 100644 --- a/application/symfony/tests/Unit/Domain/Twig/LayerIconClassMapTest.php +++ b/application/symfony/tests/Unit/Domain/Twig/LayerIconClassMapTest.php @@ -2,10 +2,10 @@ namespace tests\Unit\Domain\Twig; -use PHPUnit\Framework\TestCase; -use Infinito\Domain\Twig\LayerIconClassMap; use Infinito\DBAL\Types\Meta\Right\LayerType; +use Infinito\Domain\Twig\LayerIconClassMap; use Infinito\Exception\Collection\NotSetElementException; +use PHPUnit\Framework\TestCase; /** * @author kevinfrantz diff --git a/application/symfony/tests/Unit/Domain/User/UserSourceDirectorServiceTest.php b/application/symfony/tests/Unit/Domain/User/UserSourceDirectorServiceTest.php index 7664b5f..df1f3ef 100644 --- a/application/symfony/tests/Unit/Domain/User/UserSourceDirectorServiceTest.php +++ b/application/symfony/tests/Unit/Domain/User/UserSourceDirectorServiceTest.php @@ -4,8 +4,8 @@ namespace tests\Unit\Domain\User; use Infinito\Domain\User\UserSourceDirectorInterface; use Infinito\Domain\User\UserSourceDirectorService; -use Infinito\Entity\User; use Infinito\Entity\Source\SourceInterface; +use Infinito\Entity\User; use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase; use Symfony\Component\Security\Core\Security; diff --git a/application/symfony/tests/Unit/Domain/User/UserSourceDirectorTest.php b/application/symfony/tests/Unit/Domain/User/UserSourceDirectorTest.php index b89af5d..16e9c87 100644 --- a/application/symfony/tests/Unit/Domain/User/UserSourceDirectorTest.php +++ b/application/symfony/tests/Unit/Domain/User/UserSourceDirectorTest.php @@ -2,12 +2,12 @@ namespace Tests\Unit\Domain\User; -use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase; -use Infinito\Entity\User; -use Infinito\Domain\User\UserSourceDirector; -use Infinito\Repository\Source\SourceRepository; -use Infinito\Entity\Source\AbstractSource; use Infinito\Domain\Fixture\FixtureSource\GuestUserFixtureSource; +use Infinito\Domain\User\UserSourceDirector; +use Infinito\Entity\Source\AbstractSource; +use Infinito\Entity\User; +use Infinito\Repository\Source\SourceRepository; +use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase; /** * @author kevinfrantz diff --git a/application/symfony/tests/Unit/Entity/AbstractEntityTest.php b/application/symfony/tests/Unit/Entity/AbstractEntityTest.php index 44bef1a..96de140 100644 --- a/application/symfony/tests/Unit/Entity/AbstractEntityTest.php +++ b/application/symfony/tests/Unit/Entity/AbstractEntityTest.php @@ -2,9 +2,9 @@ namespace tests\unit\Entity; -use PHPUnit\Framework\TestCase; -use Infinito\Entity\EntityInterface; use Infinito\Entity\AbstractEntity; +use Infinito\Entity\EntityInterface; +use PHPUnit\Framework\TestCase; class AbstractEntityTest extends TestCase { diff --git a/application/symfony/tests/Unit/Entity/Meta/LawTest.php b/application/symfony/tests/Unit/Entity/Meta/LawTest.php index b296d25..12c4fac 100644 --- a/application/symfony/tests/Unit/Entity/Meta/LawTest.php +++ b/application/symfony/tests/Unit/Entity/Meta/LawTest.php @@ -2,12 +2,12 @@ namespace tests\unit\Entity\Meta; -use PHPUnit\Framework\TestCase; -use Doctrine\Common\Collections\Collection; use Doctrine\Common\Collections\ArrayCollection; -use Infinito\Entity\Meta\LawInterface; +use Doctrine\Common\Collections\Collection; use Infinito\Entity\Meta\Law; +use Infinito\Entity\Meta\LawInterface; use Infinito\Entity\Meta\Right; +use PHPUnit\Framework\TestCase; class LawTest extends TestCase { diff --git a/application/symfony/tests/Unit/Entity/Meta/Relation/Member/MemberRelationTest.php b/application/symfony/tests/Unit/Entity/Meta/Relation/Member/MemberRelationTest.php index b109926..6d68718 100644 --- a/application/symfony/tests/Unit/Entity/Meta/Relation/Member/MemberRelationTest.php +++ b/application/symfony/tests/Unit/Entity/Meta/Relation/Member/MemberRelationTest.php @@ -2,10 +2,10 @@ namespace Tests\Unit\Entity\Meta\Relation\Member; -use PHPUnit\Framework\TestCase; +use Doctrine\Common\Collections\Collection; use Infinito\Entity\Meta\Relation\Member\MemberRelation; use Infinito\Entity\Meta\Relation\Member\MemberRelationInterface; -use Doctrine\Common\Collections\Collection; +use PHPUnit\Framework\TestCase; class MemberRelationTest extends TestCase { diff --git a/application/symfony/tests/Unit/Entity/Meta/Relation/Parent/AbstractParentRelationTest.php b/application/symfony/tests/Unit/Entity/Meta/Relation/Parent/AbstractParentRelationTest.php index 13c75f0..4a7ddad 100644 --- a/application/symfony/tests/Unit/Entity/Meta/Relation/Parent/AbstractParentRelationTest.php +++ b/application/symfony/tests/Unit/Entity/Meta/Relation/Parent/AbstractParentRelationTest.php @@ -2,10 +2,10 @@ namespace tests\Unit\Entity\Meta; -use PHPUnit\Framework\TestCase; use Doctrine\Common\Collections\Collection; use Infinito\Entity\Meta\Relation\Parent\AbstractParentRelation; use Infinito\Entity\Meta\Relation\Parent\ParentRelationInterface; +use PHPUnit\Framework\TestCase; class AbstractParentRelationTest extends TestCase { diff --git a/application/symfony/tests/Unit/Entity/Meta/RightTest.php b/application/symfony/tests/Unit/Entity/Meta/RightTest.php index 53abc34..dd8910e 100644 --- a/application/symfony/tests/Unit/Entity/Meta/RightTest.php +++ b/application/symfony/tests/Unit/Entity/Meta/RightTest.php @@ -2,14 +2,14 @@ namespace tests\unit\Entity; -use PHPUnit\Framework\TestCase; use Infinito\DBAL\Types\Meta\Right\CRUDType; -use Infinito\Entity\Meta\RightInterface; -use Infinito\Entity\Meta\Right; -use Infinito\Entity\Meta\Law; use Infinito\DBAL\Types\Meta\Right\LayerType; +use Infinito\Entity\Meta\Law; +use Infinito\Entity\Meta\Right; +use Infinito\Entity\Meta\RightInterface; use Infinito\Entity\Source\AbstractSource; use Infinito\Exception\Type\InvalidChoiceTypeException; +use PHPUnit\Framework\TestCase; /** * @todo Implement reciever test diff --git a/application/symfony/tests/Unit/Entity/Source/AbstractSourceTest.php b/application/symfony/tests/Unit/Entity/Source/AbstractSourceTest.php index 4c6b3d9..601b844 100644 --- a/application/symfony/tests/Unit/Entity/Source/AbstractSourceTest.php +++ b/application/symfony/tests/Unit/Entity/Source/AbstractSourceTest.php @@ -2,13 +2,13 @@ namespace tests\unit\Entity\Source; -use PHPUnit\Framework\TestCase; -use Infinito\Entity\Source\SourceInterface; -use Infinito\Entity\Meta\LawInterface; use Doctrine\Common\Collections\Collection; use Infinito\Entity\EntityInterface; +use Infinito\Entity\Meta\LawInterface; use Infinito\Entity\Meta\Relation\Parent\CreatorRelationInterface; use Infinito\Entity\Source\PureSource; +use Infinito\Entity\Source\SourceInterface; +use PHPUnit\Framework\TestCase; /** * @author kevinfrantz diff --git a/application/symfony/tests/Unit/Entity/Source/Complex/Collection/AbstractCollectionSourceTest.php b/application/symfony/tests/Unit/Entity/Source/Complex/Collection/AbstractCollectionSourceTest.php index df41744..1fb1f87 100644 --- a/application/symfony/tests/Unit/Entity/Source/Complex/Collection/AbstractCollectionSourceTest.php +++ b/application/symfony/tests/Unit/Entity/Source/Complex/Collection/AbstractCollectionSourceTest.php @@ -2,10 +2,10 @@ namespace Tests\Unit\Entity\Source\Complex\Collection; -use PHPUnit\Framework\TestCase; -use Infinito\Entity\Source\Complex\Collection\CollectionSourceInterface; -use Infinito\Entity\Source\Complex\Collection\AbstractCollectionSource; use Doctrine\Common\Collections\Collection; +use Infinito\Entity\Source\Complex\Collection\AbstractCollectionSource; +use Infinito\Entity\Source\Complex\Collection\CollectionSourceInterface; +use PHPUnit\Framework\TestCase; class AbstractCollectionSourceTest extends TestCase { diff --git a/application/symfony/tests/Unit/Entity/Source/Complex/Collection/TreeCollectionSourceTest.php b/application/symfony/tests/Unit/Entity/Source/Complex/Collection/TreeCollectionSourceTest.php index 2b4d53e..307eac5 100644 --- a/application/symfony/tests/Unit/Entity/Source/Complex/Collection/TreeCollectionSourceTest.php +++ b/application/symfony/tests/Unit/Entity/Source/Complex/Collection/TreeCollectionSourceTest.php @@ -2,12 +2,12 @@ namespace Tests\Unit\Entity\Source\Complex\Collection; -use PHPUnit\Framework\TestCase; -use Doctrine\Common\Collections\Collection; use Doctrine\Common\Collections\ArrayCollection; -use Infinito\Entity\Source\Complex\Collection\TreeCollectionSourceInterface; +use Doctrine\Common\Collections\Collection; use Infinito\Entity\Source\Complex\Collection\TreeCollectionSource; +use Infinito\Entity\Source\Complex\Collection\TreeCollectionSourceInterface; use Infinito\Entity\Source\PureSource; +use PHPUnit\Framework\TestCase; /** * @author kevinfrantz diff --git a/application/symfony/tests/Unit/Entity/Source/Complex/FullPersonNameSourceTest.php b/application/symfony/tests/Unit/Entity/Source/Complex/FullPersonNameSourceTest.php index 0782883..ba7ee9b 100644 --- a/application/symfony/tests/Unit/Entity/Source/Complex/FullPersonNameSourceTest.php +++ b/application/symfony/tests/Unit/Entity/Source/Complex/FullPersonNameSourceTest.php @@ -2,11 +2,11 @@ namespace tests\unit\Entity\Source\Complex; -use PHPUnit\Framework\TestCase; -use Infinito\Entity\Source\Complex\FullPersonNameSourceInterface; use Infinito\Entity\Source\Complex\FullPersonNameSource; -use Infinito\Entity\Source\Primitive\Name\SurnameSourceInterface; +use Infinito\Entity\Source\Complex\FullPersonNameSourceInterface; use Infinito\Entity\Source\Primitive\Name\FirstNameSourceInterface; +use Infinito\Entity\Source\Primitive\Name\SurnameSourceInterface; +use PHPUnit\Framework\TestCase; class FullPersonNameSourceTest extends TestCase { diff --git a/application/symfony/tests/Unit/Entity/Source/Complex/PersonIdentitySourceTest.php b/application/symfony/tests/Unit/Entity/Source/Complex/PersonIdentitySourceTest.php index 0a6bcc4..c714d08 100644 --- a/application/symfony/tests/Unit/Entity/Source/Complex/PersonIdentitySourceTest.php +++ b/application/symfony/tests/Unit/Entity/Source/Complex/PersonIdentitySourceTest.php @@ -2,10 +2,10 @@ namespace tests\unit\Entity\Source\Complex; -use PHPUnit\Framework\TestCase; -use Infinito\Entity\Source\Complex\PersonIdentitySourceInterface; -use Infinito\Entity\Source\Complex\PersonIdentitySource; use Infinito\Entity\Source\Complex\FullPersonNameSourceInterface; +use Infinito\Entity\Source\Complex\PersonIdentitySource; +use Infinito\Entity\Source\Complex\PersonIdentitySourceInterface; +use PHPUnit\Framework\TestCase; class PersonIdentitySourceTest extends TestCase { diff --git a/application/symfony/tests/Unit/Entity/Source/Complex/UserSourceTest.php b/application/symfony/tests/Unit/Entity/Source/Complex/UserSourceTest.php index 364a587..6de4c5a 100644 --- a/application/symfony/tests/Unit/Entity/Source/Complex/UserSourceTest.php +++ b/application/symfony/tests/Unit/Entity/Source/Complex/UserSourceTest.php @@ -2,11 +2,11 @@ namespace tests\unit\Entity\Source\Complex; -use PHPUnit\Framework\TestCase; -use Infinito\Entity\Source\Complex\UserSourceInterface; -use Infinito\Entity\Source\Complex\UserSource; use Doctrine\Common\Collections\Collection; use Infinito\Entity\Source\Complex\PersonIdentitySourceInterface; +use Infinito\Entity\Source\Complex\UserSource; +use Infinito\Entity\Source\Complex\UserSourceInterface; +use PHPUnit\Framework\TestCase; class UserSourceTest extends TestCase { diff --git a/application/symfony/tests/Unit/Entity/Source/Operation/AbstractOperationTest.php b/application/symfony/tests/Unit/Entity/Source/Operation/AbstractOperationTest.php index 411efe5..aab7c00 100644 --- a/application/symfony/tests/Unit/Entity/Source/Operation/AbstractOperationTest.php +++ b/application/symfony/tests/Unit/Entity/Source/Operation/AbstractOperationTest.php @@ -2,15 +2,15 @@ namespace tests\unit\Entity\Source\Operand; -use PHPUnit\Framework\TestCase; +use Doctrine\Common\Collections\ArrayCollection; +use Doctrine\Common\Collections\Collection; use Infinito\Entity\Source\Operation\AbstractOperation; use Infinito\Entity\Source\Operation\OperationInterface; -use Doctrine\Common\Collections\Collection; -use Doctrine\Common\Collections\ArrayCollection; -use Infinito\Logic\Operation\OperandInterface; -use Infinito\Logic\Result\ResultInterface; -use Infinito\Logic\Result\Result; use Infinito\Exception\Deprecated\NotProcessedException; +use Infinito\Logic\Operation\OperandInterface; +use Infinito\Logic\Result\Result; +use Infinito\Logic\Result\ResultInterface; +use PHPUnit\Framework\TestCase; /** * @author kevinfrantz diff --git a/application/symfony/tests/Unit/Entity/Source/Operation/AndOperationTest.php b/application/symfony/tests/Unit/Entity/Source/Operation/AndOperationTest.php index ca777df..b6d4990 100644 --- a/application/symfony/tests/Unit/Entity/Source/Operation/AndOperationTest.php +++ b/application/symfony/tests/Unit/Entity/Source/Operation/AndOperationTest.php @@ -2,14 +2,14 @@ namespace tests\unit\Entity\Source\Operation; -use PHPUnit\Framework\TestCase; -use Infinito\Logic\Result\Result; -use Infinito\Logic\Operation\OperandInterface; -use Infinito\Logic\Result\ResultInterface; use Doctrine\Common\Collections\ArrayCollection; -use Infinito\Entity\Source\Operation\OperationInterface; use Infinito\Entity\Source\Operation\AndOperation; +use Infinito\Entity\Source\Operation\OperationInterface; use Infinito\Exception\Attribut\UndefinedAttributException; +use Infinito\Logic\Operation\OperandInterface; +use Infinito\Logic\Result\Result; +use Infinito\Logic\Result\ResultInterface; +use PHPUnit\Framework\TestCase; class AndOperationTest extends TestCase { diff --git a/application/symfony/tests/Unit/Entity/Source/Primitive/Name/AbstractNameSourceTest.php b/application/symfony/tests/Unit/Entity/Source/Primitive/Name/AbstractNameSourceTest.php index 1c88c45..482d2d2 100644 --- a/application/symfony/tests/Unit/Entity/Source/Primitive/Name/AbstractNameSourceTest.php +++ b/application/symfony/tests/Unit/Entity/Source/Primitive/Name/AbstractNameSourceTest.php @@ -2,9 +2,9 @@ namespace tests\unit\Entity\Source\Primitive; -use PHPUnit\Framework\TestCase; -use Infinito\Entity\Source\Primitive\Name\NameSourceInterface; use Infinito\Entity\Source\Primitive\Name\AbstractNameSource; +use Infinito\Entity\Source\Primitive\Name\NameSourceInterface; +use PHPUnit\Framework\TestCase; /** * @author kevinfrantz diff --git a/application/symfony/tests/Unit/Entity/Source/Primitive/Text/TextSourceTest.php b/application/symfony/tests/Unit/Entity/Source/Primitive/Text/TextSourceTest.php index c3d8a29..cd2356b 100644 --- a/application/symfony/tests/Unit/Entity/Source/Primitive/Text/TextSourceTest.php +++ b/application/symfony/tests/Unit/Entity/Source/Primitive/Text/TextSourceTest.php @@ -2,9 +2,9 @@ namespace Tests\Unit\Entity\Source\Primitive\Text; -use PHPUnit\Framework\TestCase; -use Infinito\Entity\Source\Primitive\Text\TextSourceInterface; use Infinito\Entity\Source\Primitive\Text\TextSource; +use Infinito\Entity\Source\Primitive\Text\TextSourceInterface; +use PHPUnit\Framework\TestCase; class TextSourceTest extends TestCase { diff --git a/application/symfony/tests/Unit/Entity/Source/PureSourceTest.php b/application/symfony/tests/Unit/Entity/Source/PureSourceTest.php index eb82b95..805ba09 100644 --- a/application/symfony/tests/Unit/Entity/Source/PureSourceTest.php +++ b/application/symfony/tests/Unit/Entity/Source/PureSourceTest.php @@ -2,10 +2,10 @@ namespace Tests\Unit\Entity\Source; +use Infinito\Entity\Source\AbstractSource; +use Infinito\Entity\Source\PureSource; use Infinito\Entity\Source\PureSourceInterface; use Infinito\Entity\Source\SourceInterface; -use Infinito\Entity\Source\PureSource; -use Infinito\Entity\Source\AbstractSource; use PHPUnit\Framework\TestCase; /** diff --git a/application/symfony/tests/Unit/Entity/UserTest.php b/application/symfony/tests/Unit/Entity/UserTest.php index 31c5ce4..34fbfe3 100644 --- a/application/symfony/tests/Unit/Entity/UserTest.php +++ b/application/symfony/tests/Unit/Entity/UserTest.php @@ -2,10 +2,10 @@ namespace tests\unit\Entity; -use PHPUnit\Framework\TestCase; -use Infinito\Entity\User; use Infinito\Entity\Source\Complex\UserSource; +use Infinito\Entity\User; use Infinito\Entity\UserInterface; +use PHPUnit\Framework\TestCase; /** * @author kevinfrantz diff --git a/application/symfony/tests/Unit/Event/Menu/MenuEventTest.php b/application/symfony/tests/Unit/Event/Menu/MenuEventTest.php index 00a3a43..91ecb2b 100644 --- a/application/symfony/tests/Unit/Event/Menu/MenuEventTest.php +++ b/application/symfony/tests/Unit/Event/Menu/MenuEventTest.php @@ -2,10 +2,10 @@ namespace Event; -use PHPUnit\Framework\TestCase; use Infinito\Event\Menu\MenuEvent; use Knp\Menu\FactoryInterface; use Knp\Menu\ItemInterface; +use PHPUnit\Framework\TestCase; use Symfony\Component\HttpFoundation\RequestStack; class MenuEventTest extends TestCase diff --git a/application/symfony/tests/Unit/Form/AbstractTypeTest.php b/application/symfony/tests/Unit/Form/AbstractTypeTest.php index e4e7fb4..ff777b0 100644 --- a/application/symfony/tests/Unit/Form/AbstractTypeTest.php +++ b/application/symfony/tests/Unit/Form/AbstractTypeTest.php @@ -2,8 +2,8 @@ namespace Tests\Unit\Form; -use PHPUnit\Framework\TestCase; use Infinito\Form\AbstractType; +use PHPUnit\Framework\TestCase; use Symfony\Component\Form\FormBuilderInterface; use Symfony\Component\OptionsResolver\OptionsResolver; diff --git a/application/symfony/tests/Unit/Form/Source/PureSourceCreateTypeTest.php b/application/symfony/tests/Unit/Form/Source/PureSourceCreateTypeTest.php index bb6d2a8..71fa9b9 100644 --- a/application/symfony/tests/Unit/Form/Source/PureSourceCreateTypeTest.php +++ b/application/symfony/tests/Unit/Form/Source/PureSourceCreateTypeTest.php @@ -2,9 +2,9 @@ namespace tests\Unit\Form\Source; -use Symfony\Component\Form\Test\TypeTestCase; use Infinito\Entity\Source\PureSource; use Infinito\Form\Entity\Source\PureSourceCreateType; +use Symfony\Component\Form\Test\TypeTestCase; /** * @author kevinfrantz diff --git a/application/symfony/tests/Unit/Form/UserSourceTypeTest.php b/application/symfony/tests/Unit/Form/UserSourceTypeTest.php index bf088a4..6aeef4b 100644 --- a/application/symfony/tests/Unit/Form/UserSourceTypeTest.php +++ b/application/symfony/tests/Unit/Form/UserSourceTypeTest.php @@ -2,11 +2,11 @@ namespace Tests\Unit\Form; -use PHPUnit\Framework\TestCase; use Infinito\Form\AbstractType; +use Infinito\Form\UserSourceType; +use PHPUnit\Framework\TestCase; use Symfony\Component\Form\FormBuilderInterface; use Symfony\Component\OptionsResolver\OptionsResolver; -use Infinito\Form\UserSourceType; /** * This class just exists to keep the code coverage high. diff --git a/application/symfony/tests/Unit/Form/UserTypeTest.php b/application/symfony/tests/Unit/Form/UserTypeTest.php index b9dfb84..91bd5a1 100644 --- a/application/symfony/tests/Unit/Form/UserTypeTest.php +++ b/application/symfony/tests/Unit/Form/UserTypeTest.php @@ -2,13 +2,13 @@ namespace Tests\Unit\Form; -use PHPUnit\Framework\TestCase; use Infinito\Form\AbstractType; -use Symfony\Component\OptionsResolver\OptionsResolver; use Infinito\Form\UserType; -use Symfony\Component\Form\FormBuilder; +use PHPUnit\Framework\TestCase; use Symfony\Component\EventDispatcher\EventDispatcherInterface; +use Symfony\Component\Form\FormBuilder; use Symfony\Component\Form\FormFactoryInterface; +use Symfony\Component\OptionsResolver\OptionsResolver; /** * This class just exists to keep the code coverage high. diff --git a/application/symfony/tests/Unit/Logic/ResultTest.php b/application/symfony/tests/Unit/Logic/ResultTest.php index d32fe6b..19c88cf 100644 --- a/application/symfony/tests/Unit/Logic/ResultTest.php +++ b/application/symfony/tests/Unit/Logic/ResultTest.php @@ -2,9 +2,9 @@ namespace Tests\Unit\Logic; -use PHPUnit\Framework\TestCase; -use Infinito\Logic\Result\ResultInterface; use Infinito\Logic\Result\Result; +use Infinito\Logic\Result\ResultInterface; +use PHPUnit\Framework\TestCase; class ResultTest extends TestCase { diff --git a/application/symfony/tests/Unit/Repository/Source/SourceRepositoryTest.php b/application/symfony/tests/Unit/Repository/Source/SourceRepositoryTest.php index e172f13..e37ba57 100644 --- a/application/symfony/tests/Unit/Repository/Source/SourceRepositoryTest.php +++ b/application/symfony/tests/Unit/Repository/Source/SourceRepositoryTest.php @@ -2,12 +2,12 @@ namespace tests\Unit\Repository\Source; -use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase; -use Infinito\Repository\Source\SourceRepositoryInterface; -use Infinito\Entity\Source\AbstractSource; -use Infinito\Domain\Request\Entity\RequestedEntityInterface; -use Infinito\Entity\Source\SourceInterface; use Infinito\Domain\Fixture\FixtureSource\ImpressumFixtureSource; +use Infinito\Domain\Request\Entity\RequestedEntityInterface; +use Infinito\Entity\Source\AbstractSource; +use Infinito\Entity\Source\SourceInterface; +use Infinito\Repository\Source\SourceRepositoryInterface; +use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase; /** * @author kevinfrantz diff --git a/application/symfony/tests/Unit/Repository/Source/UserSourceRepositoryTest.php b/application/symfony/tests/Unit/Repository/Source/UserSourceRepositoryTest.php index d789c41..443d9e7 100644 --- a/application/symfony/tests/Unit/Repository/Source/UserSourceRepositoryTest.php +++ b/application/symfony/tests/Unit/Repository/Source/UserSourceRepositoryTest.php @@ -2,10 +2,10 @@ namespace tests\Unit\Repository\Source; -use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase; use Doctrine\ORM\EntityManager; -use Infinito\Entity\Source\Complex\UserSource; use Infinito\Domain\Source\SourceMemberManager; +use Infinito\Entity\Source\Complex\UserSource; +use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase; /** * @todo refactor this to an integration test! diff --git a/application/symfony/tests/Unit/Repository/UserRepositoryTest.php b/application/symfony/tests/Unit/Repository/UserRepositoryTest.php index 7d2b15b..1164ac6 100644 --- a/application/symfony/tests/Unit/Repository/UserRepositoryTest.php +++ b/application/symfony/tests/Unit/Repository/UserRepositoryTest.php @@ -2,13 +2,13 @@ namespace tests\Unit\Repository; -use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase; use Doctrine\ORM\EntityManager; -use Infinito\Repository\UserRepository; +use Infinito\Entity\Source\Complex\PersonIdentitySource; +use Infinito\Entity\Source\Complex\PersonIdentitySourceInterface; use Infinito\Entity\User; use Infinito\Entity\UserInterface; -use Infinito\Entity\Source\Complex\PersonIdentitySourceInterface; -use Infinito\Entity\Source\Complex\PersonIdentitySource; +use Infinito\Repository\UserRepository; +use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase; class UserRepositoryTest extends KernelTestCase {