Passed
Push — master ( da75e4...867325 )
by nguereza
03:56 queued 01:54
created
app/Model/Entity/Product.php 3 patches
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -16,21 +16,21 @@
 block discarded – undo
16 16
 class Product extends Entity
17 17
 {
18 18
     /**
19
-    * @param EntityMapperInterface<Product> $mapper
20
-    * @return void
21
-    */
19
+     * @param EntityMapperInterface<Product> $mapper
20
+     * @return void
21
+     */
22 22
     public static function mapEntity(EntityMapperInterface $mapper): void
23 23
     {
24
-         $mapper->useTimestamp();
25
-         $mapper->casts([
24
+            $mapper->useTimestamp();
25
+            $mapper->casts([
26 26
             'created_at' => 'date',
27 27
             'updated_at' => '?date',
28
-         ]);
28
+            ]);
29 29
 
30
-         $mapper->relation('category')->belongsTo(ProductCategory::class);
30
+            $mapper->relation('category')->belongsTo(ProductCategory::class);
31 31
 
32
-         $mapper->filter('category', function (Query $q, $value) {
33
-             $q->where('product_category_id')->is($value);
34
-         });
32
+            $mapper->filter('category', function (Query $q, $value) {
33
+                $q->where('product_category_id')->is($value);
34
+            });
35 35
     }
36 36
 }
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
 
30 30
          $mapper->relation('category')->belongsTo(ProductCategory::class);
31 31
 
32
-         $mapper->filter('category', function (Query $q, $value) {
32
+         $mapper->filter('category', function(Query $q, $value) {
33 33
              $q->where('product_category_id')->is($value);
34 34
          });
35 35
     }
Please login to merge, or discard this 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 2 patches
Indentation   +64 added lines, -64 removed lines patch added patch discarded remove patch
@@ -29,66 +29,66 @@  discard block
 block discarded – undo
29 29
 class ProductAction
30 30
 {
31 31
     /**
32
-    * The Lang instance
33
-    * @var Lang
34
-    */
32
+     * The Lang instance
33
+     * @var Lang
34
+     */
35 35
     protected Lang $lang;
36 36
 
37 37
     /**
38
-    * The Pagination instance
39
-    * @var Pagination
40
-    */
38
+     * The Pagination instance
39
+     * @var Pagination
40
+     */
41 41
     protected Pagination $pagination;
42 42
 
43 43
     /**
44
-    * The Template instance
45
-    * @var Template
46
-    */
44
+     * The Template instance
45
+     * @var Template
46
+     */
47 47
     protected Template $template;
48 48
 
49 49
     /**
50
-    * The Flash instance
51
-    * @var Flash
52
-    */
50
+     * The Flash instance
51
+     * @var Flash
52
+     */
53 53
     protected Flash $flash;
54 54
 
55 55
     /**
56
-    * The RouteHelper instance
57
-    * @var RouteHelper
58
-    */
56
+     * The RouteHelper instance
57
+     * @var RouteHelper
58
+     */
59 59
     protected RouteHelper $routeHelper;
60 60
 
61 61
     /**
62
-    * The LoggerInterface instance
63
-    * @var LoggerInterface
64
-    */
62
+     * The LoggerInterface instance
63
+     * @var LoggerInterface
64
+     */
65 65
     protected LoggerInterface $logger;
66 66
 
67 67
     /**
68
-    * The ProductCategoryRepository instance
69
-    * @var ProductCategoryRepository
70
-    */
68
+     * The ProductCategoryRepository instance
69
+     * @var ProductCategoryRepository
70
+     */
71 71
     protected ProductCategoryRepository $productCategoryRepository;
72 72
 
73 73
     /**
74
-    * The ProductRepository instance
75
-    * @var ProductRepository
76
-    */
74
+     * The ProductRepository instance
75
+     * @var ProductRepository
76
+     */
77 77
     protected ProductRepository $productRepository;
78 78
 
79 79
 
80 80
 
81 81
     /**
82
-    * Create new instance
83
-    * @param Lang $lang
84
-    * @param Pagination $pagination
85
-    * @param Template $template
86
-    * @param Flash $flash
87
-    * @param RouteHelper $routeHelper
88
-    * @param LoggerInterface $logger
89
-    * @param ProductCategoryRepository $productCategoryRepository
90
-    * @param ProductRepository $productRepository
91
-    */
82
+     * Create new instance
83
+     * @param Lang $lang
84
+     * @param Pagination $pagination
85
+     * @param Template $template
86
+     * @param Flash $flash
87
+     * @param RouteHelper $routeHelper
88
+     * @param LoggerInterface $logger
89
+     * @param ProductCategoryRepository $productCategoryRepository
90
+     * @param ProductRepository $productRepository
91
+     */
92 92
     public function __construct(
93 93
         Lang $lang,
94 94
         Pagination $pagination,
@@ -110,10 +110,10 @@  discard block
 block discarded – undo
110 110
     }
111 111
 
112 112
     /**
113
-    * List all entities
114
-    * @param ServerRequestInterface $request
115
-    * @return ResponseInterface
116
-    */
113
+     * List all entities
114
+     * @param ServerRequestInterface $request
115
+     * @return ResponseInterface
116
+     */
117 117
     public function index(ServerRequestInterface $request): ResponseInterface
118 118
     {
119 119
         $context = [];
@@ -132,8 +132,8 @@  discard block
 block discarded – undo
132 132
         }
133 133
 
134 134
         $totalItems = $this->productRepository->query()
135
-                                              ->filter($filters)
136
-                                               ->count('id');
135
+                                                ->filter($filters)
136
+                                                ->count('id');
137 137
 
138 138
         $currentPage = (int) $param->get('page', 1);
139 139
 
@@ -152,7 +152,7 @@  discard block
 block discarded – undo
152 152
                                             ->all();
153 153
 
154 154
         $categories = $this->productCategoryRepository->orderBy('name')
155
-                                                      ->all();
155
+                                                        ->all();
156 156
 
157 157
         $context['categories'] = $categories;
158 158
 
@@ -169,10 +169,10 @@  discard block
 block discarded – undo
169 169
     }
170 170
 
171 171
     /**
172
-    * List entity detail
173
-    * @param ServerRequestInterface $request
174
-    * @return ResponseInterface
175
-    */
172
+     * List entity detail
173
+     * @param ServerRequestInterface $request
174
+     * @return ResponseInterface
175
+     */
176 176
     public function detail(ServerRequestInterface $request): ResponseInterface
177 177
     {
178 178
         $context = [];
@@ -198,10 +198,10 @@  discard block
 block discarded – undo
198 198
     }
199 199
 
200 200
     /**
201
-    * Create new entity
202
-    * @param ServerRequestInterface $request
203
-    * @return ResponseInterface
204
-    */
201
+     * Create new entity
202
+     * @param ServerRequestInterface $request
203
+     * @return ResponseInterface
204
+     */
205 205
     public function create(ServerRequestInterface $request): ResponseInterface
206 206
     {
207 207
         $context = [];
@@ -211,7 +211,7 @@  discard block
 block discarded – undo
211 211
         $context['param'] = $formParam;
212 212
 
213 213
         $categories = $this->productCategoryRepository->orderBy('name')
214
-                                                      ->all();
214
+                                                        ->all();
215 215
 
216 216
         $context['categories'] = $categories;
217 217
 
@@ -235,8 +235,8 @@  discard block
 block discarded – undo
235 235
         }
236 236
 
237 237
         $entityExist = $this->productRepository->findBy([
238
-                                               'name' => $formParam->getName(),
239
-                                           ]);
238
+                                                'name' => $formParam->getName(),
239
+                                            ]);
240 240
 
241 241
         if ($entityExist !== null) {
242 242
             $this->flash->setError($this->lang->tr('This record already exist'));
@@ -250,7 +250,7 @@  discard block
 block discarded – undo
250 250
 
251 251
         /** @var Product $product */
252 252
         $product = $this->productRepository->create([
253
-           'name' => $formParam->getName(),
253
+            'name' => $formParam->getName(),
254 254
         'description' => $formParam->getDescription(),
255 255
         'price' => $formParam->getPrice(),
256 256
         'quantity' => $formParam->getQuantity(),
@@ -279,10 +279,10 @@  discard block
 block discarded – undo
279 279
     }
280 280
 
281 281
     /**
282
-    * Update existing entity
283
-    * @param ServerRequestInterface $request
284
-    * @return ResponseInterface
285
-    */
282
+     * Update existing entity
283
+     * @param ServerRequestInterface $request
284
+     * @return ResponseInterface
285
+     */
286 286
     public function update(ServerRequestInterface $request): ResponseInterface
287 287
     {
288 288
         $context = [];
@@ -304,7 +304,7 @@  discard block
 block discarded – undo
304 304
         $context['param'] = (new ProductParam())->fromEntity($product);
305 305
 
306 306
         $categories = $this->productCategoryRepository->orderBy('name')
307
-                                                      ->all();
307
+                                                        ->all();
308 308
 
309 309
         $context['categories'] = $categories;
310 310
 
@@ -330,8 +330,8 @@  discard block
 block discarded – undo
330 330
         }
331 331
 
332 332
         $entityExist = $this->productRepository->findBy([
333
-                                               'name' => $formParam->getName(),
334
-                                           ]);
333
+                                                'name' => $formParam->getName(),
334
+                                            ]);
335 335
 
336 336
         if ($entityExist !== null && $entityExist->id !== $id) {
337 337
             $this->flash->setError($this->lang->tr('This record already exist'));
@@ -371,10 +371,10 @@  discard block
 block discarded – undo
371 371
     }
372 372
 
373 373
     /**
374
-    * Delete the entity
375
-    * @param ServerRequestInterface $request
376
-    * @return ResponseInterface
377
-    */
374
+     * Delete the entity
375
+     * @param ServerRequestInterface $request
376
+     * @return ResponseInterface
377
+     */
378 378
     public function delete(ServerRequestInterface $request): ResponseInterface
379 379
     {
380 380
         $id = (int) $request->getAttribute('id');
Please login to merge, or discard this 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 2 patches
Indentation   +61 added lines, -61 removed lines patch added patch discarded remove patch
@@ -15,40 +15,40 @@  discard block
 block discarded – undo
15 15
 class ProductParam extends BaseParam
16 16
 {
17 17
     /**
18
-    * The name field
19
-    * @var string
20
-    */
18
+     * The name field
19
+     * @var string
20
+     */
21 21
     protected string $name;
22 22
 
23 23
     /**
24
-    * The description field
25
-    * @var string|null
26
-    */
24
+     * The description field
25
+     * @var string|null
26
+     */
27 27
     protected ?string $description = null;
28 28
 
29 29
     /**
30
-    * The price field
31
-    * @var float
32
-    */
30
+     * The price field
31
+     * @var float
32
+     */
33 33
     protected float $price = 0;
34 34
 
35 35
     /**
36
-    * The quantity field
37
-    * @var float
38
-    */
36
+     * The quantity field
37
+     * @var float
38
+     */
39 39
     protected float $quantity = 0;
40 40
 
41 41
     /**
42
-    * The category field
43
-    * @var int
44
-    */
42
+     * The category field
43
+     * @var int
44
+     */
45 45
     protected int $category;
46 46
 
47 47
 
48 48
     /**
49
-    * @param TEntity $entity
50
-    * @return $this
51
-    */
49
+     * @param TEntity $entity
50
+     * @return $this
51
+     */
52 52
     public function fromEntity(Entity $entity): self
53 53
     {
54 54
         $this->name = $entity->name;
@@ -61,45 +61,45 @@  discard block
 block discarded – undo
61 61
     }
62 62
 
63 63
     /**
64
-    * Return the name value
65
-    * @return string
66
-    */
64
+     * Return the name value
65
+     * @return string
66
+     */
67 67
     public function getName(): string
68 68
     {
69 69
         return $this->name;
70 70
     }
71 71
 
72
-   /**
73
-    * Return the description value
74
-    * @return string|null
75
-    */
72
+    /**
73
+     * Return the description value
74
+     * @return string|null
75
+     */
76 76
     public function getDescription(): ?string
77 77
     {
78 78
         return $this->description;
79 79
     }
80 80
 
81
-   /**
82
-    * Return the price value
83
-    * @return float
84
-    */
81
+    /**
82
+     * Return the price value
83
+     * @return float
84
+     */
85 85
     public function getPrice(): float
86 86
     {
87 87
         return $this->price;
88 88
     }
89 89
 
90
-   /**
91
-    * Return the quantity value
92
-    * @return float
93
-    */
90
+    /**
91
+     * Return the quantity value
92
+     * @return float
93
+     */
94 94
     public function getQuantity(): float
95 95
     {
96 96
         return $this->quantity;
97 97
     }
98 98
 
99
-   /**
100
-    * Return the category value
101
-    * @return int
102
-    */
99
+    /**
100
+     * Return the category value
101
+     * @return int
102
+     */
103 103
     public function getCategory(): int
104 104
     {
105 105
         return $this->category;
@@ -107,10 +107,10 @@  discard block
 block discarded – undo
107 107
 
108 108
 
109 109
     /**
110
-    * Set the name value
111
-    * @param string $name
112
-    * @return $this
113
-    */
110
+     * Set the name value
111
+     * @param string $name
112
+     * @return $this
113
+     */
114 114
     public function setName(string $name): self
115 115
     {
116 116
         $this->name = $name;
@@ -118,11 +118,11 @@  discard block
 block discarded – undo
118 118
         return $this;
119 119
     }
120 120
 
121
-   /**
122
-    * Set the description value
123
-    * @param string|null $description
124
-    * @return $this
125
-    */
121
+    /**
122
+     * Set the description value
123
+     * @param string|null $description
124
+     * @return $this
125
+     */
126 126
     public function setDescription(?string $description): self
127 127
     {
128 128
         $this->description = $description;
@@ -130,11 +130,11 @@  discard block
 block discarded – undo
130 130
         return $this;
131 131
     }
132 132
 
133
-   /**
134
-    * Set the price value
135
-    * @param float $price
136
-    * @return $this
137
-    */
133
+    /**
134
+     * Set the price value
135
+     * @param float $price
136
+     * @return $this
137
+     */
138 138
     public function setPrice(float $price): self
139 139
     {
140 140
         $this->price = $price;
@@ -142,11 +142,11 @@  discard block
 block discarded – undo
142 142
         return $this;
143 143
     }
144 144
 
145
-   /**
146
-    * Set the quantity value
147
-    * @param float $quantity
148
-    * @return $this
149
-    */
145
+    /**
146
+     * Set the quantity value
147
+     * @param float $quantity
148
+     * @return $this
149
+     */
150 150
     public function setQuantity(float $quantity): self
151 151
     {
152 152
         $this->quantity = $quantity;
@@ -154,11 +154,11 @@  discard block
 block discarded – undo
154 154
         return $this;
155 155
     }
156 156
 
157
-   /**
158
-    * Set the category value
159
-    * @param int $category
160
-    * @return $this
161
-    */
157
+    /**
158
+     * Set the category value
159
+     * @param int $category
160
+     * @return $this
161
+     */
162 162
     public function setCategory(int $category): self
163 163
     {
164 164
         $this->category = $category;
Please login to merge, or discard this 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 2 patches
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -22,16 +22,16 @@  discard block
 block discarded – undo
22 22
 class ProductValidator extends AbstractValidator
23 23
 {
24 24
     /**
25
-    * The parameter instance
26
-    * @var ProductParam<TEntity>
27
-    */
25
+     * The parameter instance
26
+     * @var ProductParam<TEntity>
27
+     */
28 28
     protected ProductParam $param;
29 29
 
30 30
     /**
31
-    * Create new instance
32
-    * @param ProductParam<TEntity> $param
33
-    * @param Lang $lang
34
-    */
31
+     * Create new instance
32
+     * @param ProductParam<TEntity> $param
33
+     * @param Lang $lang
34
+     */
35 35
     public function __construct(ProductParam $param, Lang $lang)
36 36
     {
37 37
         parent::__construct($lang);
@@ -39,8 +39,8 @@  discard block
 block discarded – undo
39 39
     }
40 40
 
41 41
     /**
42
-    * {@inheritdoc}
43
-    */
42
+     * {@inheritdoc}
43
+     */
44 44
     public function setValidationData(): void
45 45
     {
46 46
         $this->addData('name', $this->param->getName());
@@ -51,8 +51,8 @@  discard block
 block discarded – undo
51 51
     }
52 52
 
53 53
     /**
54
-    * {@inheritdoc}
55
-    */
54
+     * {@inheritdoc}
55
+     */
56 56
     public function setValidationRules(): void
57 57
     {
58 58
         $this->addRules('name', [
Please login to merge, or discard this 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.
storage/migrations/seeds/ProductsSeed.php 3 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@
 block discarded – undo
10 10
 
11 11
     public function run(): void
12 12
     {
13
-      //Action when run the seed
13
+        //Action when run the seed
14 14
       
15 15
         $data = [
16 16
     0 => [
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -5,8 +5,7 @@
 block discarded – undo
5 5
 
6 6
 use Platine\Framework\Migration\Seed\AbstractSeed;
7 7
 
8
-class ProductsSeed extends AbstractSeed
9
-{
8
+class ProductsSeed extends AbstractSeed {
10 9
 
11 10
     public function run(): void
12 11
     {
Please login to merge, or discard this patch.
Upper-Lower-Casing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -16,17 +16,17 @@
 block discarded – undo
16 16
     0 => [
17 17
         'id' => 1,
18 18
         'name' => 'Toyota Corolla Verso 1.8',
19
-        'description' => NULL,
19
+        'description' => null,
20 20
         'price' => 3467.0,
21 21
         'quantity' => 2.0,
22 22
         'product_category_id' => 2,
23 23
         'created_at' => '2023-12-07 06:21:59',
24
-        'updated_at' => NULL,
24
+        'updated_at' => null,
25 25
     ],
26 26
     1 => [
27 27
         'id' => 2,
28 28
         'name' => 'HP 840',
29
-        'description' => NULL,
29
+        'description' => null,
30 30
         'price' => 890.0,
31 31
         'quantity' => 14.0,
32 32
         'product_category_id' => 1,
Please login to merge, or discard this patch.
storage/migrations/seeds/PermissionsSeed.php 3 patches
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -5,8 +5,7 @@
 block discarded – undo
5 5
 
6 6
 use Platine\Framework\Migration\Seed\AbstractSeed;
7 7
 
8
-class PermissionsSeed extends AbstractSeed
9
-{
8
+class PermissionsSeed extends AbstractSeed {
10 9
 
11 10
     public function run(): void
12 11
     {
Please login to merge, or discard this patch.
Upper-Lower-Casing   +25 added lines, -25 removed lines patch added patch discarded remove patch
@@ -17,9 +17,9 @@  discard block
 block discarded – undo
17 17
         'id' => 1,
18 18
         'code' => 'permission_list',
19 19
         'description' => 'View permissions',
20
-        'depend' => NULL,
20
+        'depend' => null,
21 21
         'created_at' => '2023-12-06 00:21:14',
22
-        'updated_at' => NULL,
22
+        'updated_at' => null,
23 23
     ],
24 24
     1 => [
25 25
         'id' => 2,
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
         'description' => 'Create permission',
28 28
         'depend' => 'permission_list',
29 29
         'created_at' => '2023-12-06 00:38:47',
30
-        'updated_at' => NULL,
30
+        'updated_at' => null,
31 31
     ],
32 32
     2 => [
33 33
         'id' => 3,
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
         'description' => 'View detail permission',
36 36
         'depend' => 'permission_list',
37 37
         'created_at' => '2023-12-06 00:39:33',
38
-        'updated_at' => NULL,
38
+        'updated_at' => null,
39 39
     ],
40 40
     3 => [
41 41
         'id' => 4,
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
         'description' => 'Edit permission',
44 44
         'depend' => 'permission_detail',
45 45
         'created_at' => '2023-12-06 00:39:54',
46
-        'updated_at' => NULL,
46
+        'updated_at' => null,
47 47
     ],
48 48
     4 => [
49 49
         'id' => 5,
@@ -57,9 +57,9 @@  discard block
 block discarded – undo
57 57
         'id' => 6,
58 58
         'code' => 'role_list',
59 59
         'description' => 'View roles',
60
-        'depend' => NULL,
60
+        'depend' => null,
61 61
         'created_at' => '2023-12-06 00:21:14',
62
-        'updated_at' => NULL,
62
+        'updated_at' => null,
63 63
     ],
64 64
     6 => [
65 65
         'id' => 7,
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
         'description' => 'Create role',
68 68
         'depend' => 'role_list',
69 69
         'created_at' => '2023-12-06 00:38:47',
70
-        'updated_at' => NULL,
70
+        'updated_at' => null,
71 71
     ],
72 72
     7 => [
73 73
         'id' => 8,
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
         'description' => 'View detail role',
76 76
         'depend' => 'role_list',
77 77
         'created_at' => '2023-12-06 00:39:33',
78
-        'updated_at' => NULL,
78
+        'updated_at' => null,
79 79
     ],
80 80
     8 => [
81 81
         'id' => 9,
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
         'description' => 'Edit role',
84 84
         'depend' => 'role_detail',
85 85
         'created_at' => '2023-12-06 00:39:54',
86
-        'updated_at' => NULL,
86
+        'updated_at' => null,
87 87
     ],
88 88
     9 => [
89 89
         'id' => 10,
@@ -97,9 +97,9 @@  discard block
 block discarded – undo
97 97
         'id' => 11,
98 98
         'code' => 'user_list',
99 99
         'description' => 'View users',
100
-        'depend' => NULL,
100
+        'depend' => null,
101 101
         'created_at' => '2023-12-06 00:21:14',
102
-        'updated_at' => NULL,
102
+        'updated_at' => null,
103 103
     ],
104 104
     11 => [
105 105
         'id' => 12,
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
         'description' => 'Create user',
108 108
         'depend' => 'user_list',
109 109
         'created_at' => '2023-12-06 00:38:47',
110
-        'updated_at' => NULL,
110
+        'updated_at' => null,
111 111
     ],
112 112
     12 => [
113 113
         'id' => 13,
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
         'description' => 'View detail user',
116 116
         'depend' => 'user_list',
117 117
         'created_at' => '2023-12-06 00:39:33',
118
-        'updated_at' => NULL,
118
+        'updated_at' => null,
119 119
     ],
120 120
     13 => [
121 121
         'id' => 14,
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
         'description' => 'Edit user',
124 124
         'depend' => 'user_detail',
125 125
         'created_at' => '2023-12-06 00:39:54',
126
-        'updated_at' => NULL,
126
+        'updated_at' => null,
127 127
     ],
128 128
     14 => [
129 129
         'id' => 15,
@@ -137,9 +137,9 @@  discard block
 block discarded – undo
137 137
         'id' => 16,
138 138
         'code' => 'product_category_list',
139 139
         'description' => 'View product categories',
140
-        'depend' => NULL,
140
+        'depend' => null,
141 141
         'created_at' => '2023-12-06 00:21:14',
142
-        'updated_at' => NULL,
142
+        'updated_at' => null,
143 143
     ],
144 144
     16 => [
145 145
         'id' => 17,
@@ -147,7 +147,7 @@  discard block
 block discarded – undo
147 147
         'description' => 'Create product category',
148 148
         'depend' => 'product_category_list',
149 149
         'created_at' => '2023-12-06 00:38:47',
150
-        'updated_at' => NULL,
150
+        'updated_at' => null,
151 151
     ],
152 152
     17 => [
153 153
         'id' => 18,
@@ -155,7 +155,7 @@  discard block
 block discarded – undo
155 155
         'description' => 'View detail product category',
156 156
         'depend' => 'product_category_list',
157 157
         'created_at' => '2023-12-06 00:39:33',
158
-        'updated_at' => NULL,
158
+        'updated_at' => null,
159 159
     ],
160 160
     18 => [
161 161
         'id' => 19,
@@ -163,7 +163,7 @@  discard block
 block discarded – undo
163 163
         'description' => 'Edit product category',
164 164
         'depend' => 'product_category_detail',
165 165
         'created_at' => '2023-12-06 00:39:54',
166
-        'updated_at' => NULL,
166
+        'updated_at' => null,
167 167
     ],
168 168
     19 => [
169 169
         'id' => 20,
@@ -177,9 +177,9 @@  discard block
 block discarded – undo
177 177
         'id' => 21,
178 178
         'code' => 'product_list',
179 179
         'description' => 'View products',
180
-        'depend' => NULL,
180
+        'depend' => null,
181 181
         'created_at' => '2023-12-06 00:21:14',
182
-        'updated_at' => NULL,
182
+        'updated_at' => null,
183 183
     ],
184 184
     21 => [
185 185
         'id' => 22,
@@ -187,7 +187,7 @@  discard block
 block discarded – undo
187 187
         'description' => 'Create product',
188 188
         'depend' => 'product_list',
189 189
         'created_at' => '2023-12-06 00:38:47',
190
-        'updated_at' => NULL,
190
+        'updated_at' => null,
191 191
     ],
192 192
     22 => [
193 193
         'id' => 23,
@@ -195,7 +195,7 @@  discard block
 block discarded – undo
195 195
         'description' => 'View detail product',
196 196
         'depend' => 'product_list',
197 197
         'created_at' => '2023-12-06 00:39:33',
198
-        'updated_at' => NULL,
198
+        'updated_at' => null,
199 199
     ],
200 200
     23 => [
201 201
         'id' => 24,
@@ -203,7 +203,7 @@  discard block
 block discarded – undo
203 203
         'description' => 'Edit product',
204 204
         'depend' => 'product_detail',
205 205
         'created_at' => '2023-12-06 00:39:54',
206
-        'updated_at' => NULL,
206
+        'updated_at' => null,
207 207
     ],
208 208
     24 => [
209 209
         'id' => 25,
Please login to merge, or discard this patch.
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@
 block discarded – undo
10 10
 
11 11
     public function run(): void
12 12
     {
13
-      //Action when run the seed
13
+        //Action when run the seed
14 14
       
15 15
         $data = [
16 16
     0 => [
Please login to merge, or discard this patch.
storage/migrations/seeds/RolesPermissionsSeed.php 2 patches
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -5,8 +5,7 @@
 block discarded – undo
5 5
 
6 6
 use Platine\Framework\Migration\Seed\AbstractSeed;
7 7
 
8
-class RolesPermissionsSeed extends AbstractSeed
9
-{
8
+class RolesPermissionsSeed extends AbstractSeed {
10 9
 
11 10
     public function run(): void
12 11
     {
Please login to merge, or discard this patch.
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@
 block discarded – undo
10 10
 
11 11
     public function run(): void
12 12
     {
13
-      //Action when run the seed
13
+        //Action when run the seed
14 14
       
15 15
         $data = [
16 16
     0 => [
Please login to merge, or discard this patch.
storage/migrations/seeds/RolesSeed.php 3 patches
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -5,8 +5,7 @@
 block discarded – undo
5 5
 
6 6
 use Platine\Framework\Migration\Seed\AbstractSeed;
7 7
 
8
-class RolesSeed extends AbstractSeed
9
-{
8
+class RolesSeed extends AbstractSeed {
10 9
 
11 10
     public function run(): void
12 11
     {
Please login to merge, or discard this patch.
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
     0 => [
17 17
         'id' => 1,
18 18
         'name' => 'Administrator',
19
-        'description' => NULL,
19
+        'description' => null,
20 20
         'created_at' => '2023-12-06 00:37:48',
21 21
         'updated_at' => '2023-12-07 06:16:19',
22 22
     ],
Please login to merge, or discard this patch.
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@
 block discarded – undo
10 10
 
11 11
     public function run(): void
12 12
     {
13
-      //Action when run the seed
13
+        //Action when run the seed
14 14
       
15 15
         $data = [
16 16
     0 => [
Please login to merge, or discard this patch.
storage/migrations/seeds/RoleUserSeed.php 2 patches
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -5,8 +5,7 @@
 block discarded – undo
5 5
 
6 6
 use Platine\Framework\Migration\Seed\AbstractSeed;
7 7
 
8
-class RoleUserSeed extends AbstractSeed
9
-{
8
+class RoleUserSeed extends AbstractSeed {
10 9
 
11 10
     public function run(): void
12 11
     {
Please login to merge, or discard this patch.
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@
 block discarded – undo
10 10
 
11 11
     public function run(): void
12 12
     {
13
-      //Action when run the seed
13
+        //Action when run the seed
14 14
       
15 15
         $data = [
16 16
     0 => [
Please login to merge, or discard this patch.