Passed
Pull Request — master (#9)
by nguereza
02:20
created
storage/migrations/20231207_060117_add_products_table.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -6,8 +6,7 @@
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
app/Model/Repository/ProductRepository.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -13,14 +13,12 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
app/Model/Entity/Product.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -13,8 +13,7 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
app/Http/Action/Product/ProductAction.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -26,8 +26,7 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
app/Param/ProductParam.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -12,8 +12,7 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
app/Validator/ProductValidator.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -19,8 +19,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     }
Please login to merge, or discard this patch.