@@ -55,8 +55,7 @@ |
||
55 | 55 | * @package Platine\Orm |
56 | 56 | * @template TEntity as Entity |
57 | 57 | */ |
58 | -interface RepositoryInterface |
|
59 | -{ |
|
58 | +interface RepositoryInterface { |
|
60 | 59 | /** |
61 | 60 | * Return the instance of EntityQuery |
62 | 61 | * @param string|array<int, string>|array<string, Closure> $with |
@@ -52,8 +52,7 @@ |
||
52 | 52 | * @template TEntity as \Platine\Orm\Entity |
53 | 53 | * @extends ShareRelation<TEntity> |
54 | 54 | */ |
55 | -class ShareOne extends ShareRelation |
|
56 | -{ |
|
55 | +class ShareOne extends ShareRelation { |
|
57 | 56 | /** |
58 | 57 | * {@inheritedoc} |
59 | 58 | */ |
@@ -52,8 +52,7 @@ |
||
52 | 52 | * @template TEntity as \Platine\Orm\Entity |
53 | 53 | * @extends HasRelation<TEntity> |
54 | 54 | */ |
55 | -class HasOne extends HasRelation |
|
56 | -{ |
|
55 | +class HasOne extends HasRelation { |
|
57 | 56 | /** |
58 | 57 | * {@inheritedoc} |
59 | 58 | */ |
@@ -52,8 +52,7 @@ |
||
52 | 52 | * @template TEntity as \Platine\Orm\Entity |
53 | 53 | * @extends HasRelation<TEntity> |
54 | 54 | */ |
55 | -class HasMany extends HasRelation |
|
56 | -{ |
|
55 | +class HasMany extends HasRelation { |
|
57 | 56 | /** |
58 | 57 | * {@inheritedoc} |
59 | 58 | */ |
@@ -52,8 +52,7 @@ |
||
52 | 52 | * @template TEntity as \Platine\Orm\Entity |
53 | 53 | * @extends ShareRelation<TEntity> |
54 | 54 | */ |
55 | -class ShareMany extends ShareRelation |
|
56 | -{ |
|
55 | +class ShareMany extends ShareRelation { |
|
57 | 56 | /** |
58 | 57 | * {@inheritedoc} |
59 | 58 | */ |
@@ -60,8 +60,7 @@ discard block |
||
60 | 60 | * @package Platine\Orm\Mapper |
61 | 61 | * @template TEntity as Entity |
62 | 62 | */ |
63 | -class Proxy |
|
64 | -{ |
|
63 | +class Proxy { |
|
65 | 64 | /** |
66 | 65 | * The Entity data mapper arguments property |
67 | 66 | * @var ReflectionProperty |
@@ -78,8 +77,7 @@ discard block |
||
78 | 77 | * Create new instance |
79 | 78 | * @throws ReflectionException |
80 | 79 | */ |
81 | - private function __construct() |
|
82 | - { |
|
80 | + private function __construct() { |
|
83 | 81 | $reflection = new ReflectionClass(Entity::class); |
84 | 82 | |
85 | 83 | $this->dataMapperArgs = $reflection->getProperty('dataMapperArgs'); |
@@ -53,8 +53,7 @@ |
||
53 | 53 | * @package Platine\Orm\Mapper |
54 | 54 | * @template TEntity as \Platine\Orm\Entity |
55 | 55 | */ |
56 | -interface EntityMapperInterface |
|
57 | -{ |
|
56 | +interface EntityMapperInterface { |
|
58 | 57 | /** |
59 | 58 | * The name of the entity |
60 | 59 | * @param string $name |
@@ -53,8 +53,7 @@ |
||
53 | 53 | * @package Platine\Orm\Mapper |
54 | 54 | * @template TEntity as Entity |
55 | 55 | */ |
56 | -interface DataMapperInterface |
|
57 | -{ |
|
56 | +interface DataMapperInterface { |
|
58 | 57 | /** |
59 | 58 | * Whether the record is new |
60 | 59 | * @return bool |
@@ -56,8 +56,7 @@ |
||
56 | 56 | * @package Platine\Orm\Relation |
57 | 57 | * @template TEntity as Entity |
58 | 58 | */ |
59 | -class RelationLoader |
|
60 | -{ |
|
59 | +class RelationLoader { |
|
61 | 60 | /** |
62 | 61 | * |
63 | 62 | * @var EntityQuery<TEntity> |