@@ -6,8 +6,7 @@ |
||
| 6 | 6 | use Platine\Database\Schema\CreateTable; |
| 7 | 7 | use Platine\Framework\Migration\AbstractMigration; |
| 8 | 8 | |
| 9 | -class AddProductsTable20231207060117 extends AbstractMigration |
|
| 10 | -{ |
|
| 9 | +class AddProductsTable20231207060117 extends AbstractMigration { |
|
| 11 | 10 | |
| 12 | 11 | public function up(): void |
| 13 | 12 | { |
@@ -13,14 +13,12 @@ |
||
| 13 | 13 | * @package Platine\App\Model\Repository |
| 14 | 14 | * @extends Repository<Product> |
| 15 | 15 | */ |
| 16 | -class ProductRepository extends Repository |
|
| 17 | -{ |
|
| 16 | +class ProductRepository extends Repository { |
|
| 18 | 17 | /** |
| 19 | 18 | * Create new instance |
| 20 | 19 | * @param EntityManager<Product> $manager |
| 21 | 20 | */ |
| 22 | - public function __construct(EntityManager $manager) |
|
| 23 | - { |
|
| 21 | + public function __construct(EntityManager $manager) { |
|
| 24 | 22 | parent::__construct($manager, Product::class); |
| 25 | 23 | } |
| 26 | 24 | } |
@@ -13,8 +13,7 @@ |
||
| 13 | 13 | * @package Platine\App\Model\Entity |
| 14 | 14 | * @extends Entity<Product> |
| 15 | 15 | */ |
| 16 | -class Product extends Entity |
|
| 17 | -{ |
|
| 16 | +class Product extends Entity { |
|
| 18 | 17 | /** |
| 19 | 18 | * @param EntityMapperInterface<Product> $mapper |
| 20 | 19 | * @return void |
@@ -26,8 +26,7 @@ |
||
| 26 | 26 | * @class ProductAction |
| 27 | 27 | * @package Platine\App\Http\Action\Product |
| 28 | 28 | */ |
| 29 | -class ProductAction |
|
| 30 | -{ |
|
| 29 | +class ProductAction { |
|
| 31 | 30 | /** |
| 32 | 31 | * The Lang instance |
| 33 | 32 | * @var Lang |
@@ -12,8 +12,7 @@ |
||
| 12 | 12 | * @package Platine\App\Param |
| 13 | 13 | * @template TEntity as Entity |
| 14 | 14 | */ |
| 15 | -class ProductParam extends BaseParam |
|
| 16 | -{ |
|
| 15 | +class ProductParam extends BaseParam { |
|
| 17 | 16 | /** |
| 18 | 17 | * The name field |
| 19 | 18 | * @var string |
@@ -19,8 +19,7 @@ discard block |
||
| 19 | 19 | * @package Platine\App\Validator |
| 20 | 20 | * @template TEntity as \Platine\Orm\Entity |
| 21 | 21 | */ |
| 22 | -class ProductValidator extends AbstractValidator |
|
| 23 | -{ |
|
| 22 | +class ProductValidator extends AbstractValidator { |
|
| 24 | 23 | /** |
| 25 | 24 | * The parameter instance |
| 26 | 25 | * @var ProductParam<TEntity> |
@@ -32,8 +31,7 @@ discard block |
||
| 32 | 31 | * @param ProductParam<TEntity> $param |
| 33 | 32 | * @param Lang $lang |
| 34 | 33 | */ |
| 35 | - public function __construct(ProductParam $param, Lang $lang) |
|
| 36 | - { |
|
| 34 | + public function __construct(ProductParam $param, Lang $lang) { |
|
| 37 | 35 | parent::__construct($lang); |
| 38 | 36 | $this->param = $param; |
| 39 | 37 | } |