@@ -56,8 +56,7 @@ |
||
56 | 56 | * @class AppServiceProvider |
57 | 57 | * @package Platine\App\Provider |
58 | 58 | */ |
59 | -class AppServiceProvider extends ServiceProvider |
|
60 | -{ |
|
59 | +class AppServiceProvider extends ServiceProvider { |
|
61 | 60 | /** |
62 | 61 | * {@inheritdoc} |
63 | 62 | */ |
@@ -12,8 +12,7 @@ |
||
12 | 12 | * @package Platine\App\Param |
13 | 13 | * @template TEntity as Entity |
14 | 14 | */ |
15 | -class UserParam extends BaseParam |
|
16 | -{ |
|
15 | +class UserParam extends BaseParam { |
|
17 | 16 | /** |
18 | 17 | * The username field |
19 | 18 | * @var string |
@@ -6,8 +6,7 @@ |
||
6 | 6 | use Platine\Database\Schema\CreateTable; |
7 | 7 | use Platine\Framework\Migration\AbstractMigration; |
8 | 8 | |
9 | -class AddProductCategoriesTable20231207053927 extends AbstractMigration |
|
10 | -{ |
|
9 | +class AddProductCategoriesTable20231207053927 extends AbstractMigration { |
|
11 | 10 | |
12 | 11 | public function up(): void |
13 | 12 | { |
@@ -13,8 +13,7 @@ |
||
13 | 13 | * @class ProductServiceProvider |
14 | 14 | * @package Platine\App\Provider |
15 | 15 | */ |
16 | -class ProductServiceProvider extends ServiceProvider |
|
17 | -{ |
|
16 | +class ProductServiceProvider extends ServiceProvider { |
|
18 | 17 | /** |
19 | 18 | * {@inheritdoc} |
20 | 19 | */ |
@@ -13,14 +13,12 @@ |
||
13 | 13 | * @package Platine\App\Model\Repository |
14 | 14 | * @extends Repository<ProductCategory> |
15 | 15 | */ |
16 | -class ProductCategoryRepository extends Repository |
|
17 | -{ |
|
16 | +class ProductCategoryRepository extends Repository { |
|
18 | 17 | /** |
19 | 18 | * Create new instance |
20 | 19 | * @param EntityManager<ProductCategory> $manager |
21 | 20 | */ |
22 | - public function __construct(EntityManager $manager) |
|
23 | - { |
|
21 | + public function __construct(EntityManager $manager) { |
|
24 | 22 | parent::__construct($manager, ProductCategory::class); |
25 | 23 | } |
26 | 24 | } |
@@ -12,8 +12,7 @@ |
||
12 | 12 | * @package Platine\App\Model\Entity |
13 | 13 | * @extends Entity<ProductCategory> |
14 | 14 | */ |
15 | -class ProductCategory extends Entity |
|
16 | -{ |
|
15 | +class ProductCategory extends Entity { |
|
17 | 16 | /** |
18 | 17 | * @param EntityMapperInterface<ProductCategory> $mapper |
19 | 18 | * @return void |
@@ -12,8 +12,7 @@ |
||
12 | 12 | * @package Platine\App\Param |
13 | 13 | * @template TEntity as Entity |
14 | 14 | */ |
15 | -class ProductCategoryParam extends BaseParam |
|
16 | -{ |
|
15 | +class ProductCategoryParam extends BaseParam { |
|
17 | 16 | /** |
18 | 17 | * The name field |
19 | 18 | * @var string |
@@ -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 | } |