@@ -16,21 +16,21 @@ |
||
| 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 | } |
@@ -29,7 +29,7 @@ |
||
| 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 | } |
@@ -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 |
@@ -15,40 +15,40 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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; |
@@ -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 |
@@ -159,7 +159,7 @@ |
||
| 159 | 159 | ->all(); |
| 160 | 160 | |
| 161 | 161 | $context['product_amounts'] = $this->productRepository->query() |
| 162 | - ->sum(function (Expression $e) { |
|
| 162 | + ->sum(function(Expression $e) { |
|
| 163 | 163 | $e->column('price') |
| 164 | 164 | ->op('*') |
| 165 | 165 | ->column('quantity'); |
@@ -92,10 +92,10 @@ discard block |
||
| 92 | 92 | $context = []; |
| 93 | 93 | $context['user_status'] = $this->statusList->getUserStatus(); |
| 94 | 94 | $context['total_user'] = $this->userRepository->query() |
| 95 | - ->count('id'); |
|
| 95 | + ->count('id'); |
|
| 96 | 96 | |
| 97 | 97 | $context['total_role'] = $this->roleRepository->query() |
| 98 | - ->count('id'); |
|
| 98 | + ->count('id'); |
|
| 99 | 99 | |
| 100 | 100 | $context['total_product_category'] = $this->productCategoryRepository->query() |
| 101 | 101 | ->count('id'); |
@@ -119,8 +119,8 @@ discard block |
||
| 119 | 119 | $context['product_amounts'] = $this->productRepository->query() |
| 120 | 120 | ->sum(function (Expression $e) { |
| 121 | 121 | $e->column('price') |
| 122 | - ->op('*') |
|
| 123 | - ->column('quantity'); |
|
| 122 | + ->op('*') |
|
| 123 | + ->column('quantity'); |
|
| 124 | 124 | }); |
| 125 | 125 | |
| 126 | 126 | return new TemplateResponse( |
@@ -63,8 +63,7 @@ |
||
| 63 | 63 | * @class HomeAction |
| 64 | 64 | * @package Platine\App\Http\Action |
| 65 | 65 | */ |
| 66 | -class HomeAction implements RequestHandlerInterface |
|
| 67 | -{ |
|
| 66 | +class HomeAction implements RequestHandlerInterface { |
|
| 68 | 67 | /** |
| 69 | 68 | * Create new instance |
| 70 | 69 | * @param Template $template |
@@ -10,7 +10,7 @@ |
||
| 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 => [ |
@@ -5,8 +5,7 @@ |
||
| 5 | 5 | |
| 6 | 6 | use Platine\Framework\Migration\Seed\AbstractSeed; |
| 7 | 7 | |
| 8 | -class UsersSeed20240616000005 extends AbstractSeed |
|
| 9 | -{ |
|
| 8 | +class UsersSeed20240616000005 extends AbstractSeed { |
|
| 10 | 9 | |
| 11 | 10 | public function run(): void |
| 12 | 11 | { |
@@ -10,7 +10,7 @@ |
||
| 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 => [ |
@@ -5,8 +5,7 @@ |
||
| 5 | 5 | |
| 6 | 6 | use Platine\Framework\Migration\Seed\AbstractSeed; |
| 7 | 7 | |
| 8 | -class PermissionsSeed20240616000000 extends AbstractSeed |
|
| 9 | -{ |
|
| 8 | +class PermissionsSeed20240616000000 extends AbstractSeed { |
|
| 10 | 9 | |
| 11 | 10 | public function run(): void |
| 12 | 11 | { |
@@ -18,28 +18,28 @@ discard block |
||
| 18 | 18 | 'code' => 'permission_list', |
| 19 | 19 | 'description' => 'View permissions', |
| 20 | 20 | 'created_at' => '2023-12-06 00:21:14', |
| 21 | - 'updated_at' => NULL, |
|
| 21 | + 'updated_at' => null, |
|
| 22 | 22 | ], |
| 23 | 23 | 1 => [ |
| 24 | 24 | 'id' => 2, |
| 25 | 25 | 'code' => 'permission_create', |
| 26 | 26 | 'description' => 'Create permission', |
| 27 | 27 | 'created_at' => '2023-12-06 00:38:47', |
| 28 | - 'updated_at' => NULL, |
|
| 28 | + 'updated_at' => null, |
|
| 29 | 29 | ], |
| 30 | 30 | 2 => [ |
| 31 | 31 | 'id' => 3, |
| 32 | 32 | 'code' => 'permission_detail', |
| 33 | 33 | 'description' => 'View detail permission', |
| 34 | 34 | 'created_at' => '2023-12-06 00:39:33', |
| 35 | - 'updated_at' => NULL, |
|
| 35 | + 'updated_at' => null, |
|
| 36 | 36 | ], |
| 37 | 37 | 3 => [ |
| 38 | 38 | 'id' => 4, |
| 39 | 39 | 'code' => 'permission_update', |
| 40 | 40 | 'description' => 'Edit permission', |
| 41 | 41 | 'created_at' => '2023-12-06 00:39:54', |
| 42 | - 'updated_at' => NULL, |
|
| 42 | + 'updated_at' => null, |
|
| 43 | 43 | ], |
| 44 | 44 | 4 => [ |
| 45 | 45 | 'id' => 5, |
@@ -53,28 +53,28 @@ discard block |
||
| 53 | 53 | 'code' => 'role_list', |
| 54 | 54 | 'description' => 'View roles', |
| 55 | 55 | 'created_at' => '2023-12-06 00:21:14', |
| 56 | - 'updated_at' => NULL, |
|
| 56 | + 'updated_at' => null, |
|
| 57 | 57 | ], |
| 58 | 58 | 6 => [ |
| 59 | 59 | 'id' => 7, |
| 60 | 60 | 'code' => 'role_create', |
| 61 | 61 | 'description' => 'Create role', |
| 62 | 62 | 'created_at' => '2023-12-06 00:38:47', |
| 63 | - 'updated_at' => NULL, |
|
| 63 | + 'updated_at' => null, |
|
| 64 | 64 | ], |
| 65 | 65 | 7 => [ |
| 66 | 66 | 'id' => 8, |
| 67 | 67 | 'code' => 'role_detail', |
| 68 | 68 | 'description' => 'View detail role', |
| 69 | 69 | 'created_at' => '2023-12-06 00:39:33', |
| 70 | - 'updated_at' => NULL, |
|
| 70 | + 'updated_at' => null, |
|
| 71 | 71 | ], |
| 72 | 72 | 8 => [ |
| 73 | 73 | 'id' => 9, |
| 74 | 74 | 'code' => 'role_update', |
| 75 | 75 | 'description' => 'Edit role', |
| 76 | 76 | 'created_at' => '2023-12-06 00:39:54', |
| 77 | - 'updated_at' => NULL, |
|
| 77 | + 'updated_at' => null, |
|
| 78 | 78 | ], |
| 79 | 79 | 9 => [ |
| 80 | 80 | 'id' => 10, |
@@ -88,28 +88,28 @@ discard block |
||
| 88 | 88 | 'code' => 'user_list', |
| 89 | 89 | 'description' => 'View users', |
| 90 | 90 | 'created_at' => '2023-12-06 00:21:14', |
| 91 | - 'updated_at' => NULL, |
|
| 91 | + 'updated_at' => null, |
|
| 92 | 92 | ], |
| 93 | 93 | 11 => [ |
| 94 | 94 | 'id' => 12, |
| 95 | 95 | 'code' => 'user_create', |
| 96 | 96 | 'description' => 'Create user', |
| 97 | 97 | 'created_at' => '2023-12-06 00:38:47', |
| 98 | - 'updated_at' => NULL, |
|
| 98 | + 'updated_at' => null, |
|
| 99 | 99 | ], |
| 100 | 100 | 12 => [ |
| 101 | 101 | 'id' => 13, |
| 102 | 102 | 'code' => 'user_detail', |
| 103 | 103 | 'description' => 'View detail user', |
| 104 | 104 | 'created_at' => '2023-12-06 00:39:33', |
| 105 | - 'updated_at' => NULL, |
|
| 105 | + 'updated_at' => null, |
|
| 106 | 106 | ], |
| 107 | 107 | 13 => [ |
| 108 | 108 | 'id' => 14, |
| 109 | 109 | 'code' => 'user_update', |
| 110 | 110 | 'description' => 'Edit user', |
| 111 | 111 | 'created_at' => '2023-12-06 00:39:54', |
| 112 | - 'updated_at' => NULL, |
|
| 112 | + 'updated_at' => null, |
|
| 113 | 113 | ], |
| 114 | 114 | 14 => [ |
| 115 | 115 | 'id' => 15, |
@@ -123,28 +123,28 @@ discard block |
||
| 123 | 123 | 'code' => 'product_category_list', |
| 124 | 124 | 'description' => 'View product categories', |
| 125 | 125 | 'created_at' => '2023-12-06 00:21:14', |
| 126 | - 'updated_at' => NULL, |
|
| 126 | + 'updated_at' => null, |
|
| 127 | 127 | ], |
| 128 | 128 | 16 => [ |
| 129 | 129 | 'id' => 17, |
| 130 | 130 | 'code' => 'product_category_create', |
| 131 | 131 | 'description' => 'Create product category', |
| 132 | 132 | 'created_at' => '2023-12-06 00:38:47', |
| 133 | - 'updated_at' => NULL, |
|
| 133 | + 'updated_at' => null, |
|
| 134 | 134 | ], |
| 135 | 135 | 17 => [ |
| 136 | 136 | 'id' => 18, |
| 137 | 137 | 'code' => 'product_category_detail', |
| 138 | 138 | 'description' => 'View detail product category', |
| 139 | 139 | 'created_at' => '2023-12-06 00:39:33', |
| 140 | - 'updated_at' => NULL, |
|
| 140 | + 'updated_at' => null, |
|
| 141 | 141 | ], |
| 142 | 142 | 18 => [ |
| 143 | 143 | 'id' => 19, |
| 144 | 144 | 'code' => 'product_category_update', |
| 145 | 145 | 'description' => 'Edit product category', |
| 146 | 146 | 'created_at' => '2023-12-06 00:39:54', |
| 147 | - 'updated_at' => NULL, |
|
| 147 | + 'updated_at' => null, |
|
| 148 | 148 | ], |
| 149 | 149 | 19 => [ |
| 150 | 150 | 'id' => 20, |
@@ -158,28 +158,28 @@ discard block |
||
| 158 | 158 | 'code' => 'product_list', |
| 159 | 159 | 'description' => 'View products', |
| 160 | 160 | 'created_at' => '2023-12-06 00:21:14', |
| 161 | - 'updated_at' => NULL, |
|
| 161 | + 'updated_at' => null, |
|
| 162 | 162 | ], |
| 163 | 163 | 21 => [ |
| 164 | 164 | 'id' => 22, |
| 165 | 165 | 'code' => 'product_create', |
| 166 | 166 | 'description' => 'Create product', |
| 167 | 167 | 'created_at' => '2023-12-06 00:38:47', |
| 168 | - 'updated_at' => NULL, |
|
| 168 | + 'updated_at' => null, |
|
| 169 | 169 | ], |
| 170 | 170 | 22 => [ |
| 171 | 171 | 'id' => 23, |
| 172 | 172 | 'code' => 'product_detail', |
| 173 | 173 | 'description' => 'View detail product', |
| 174 | 174 | 'created_at' => '2023-12-06 00:39:33', |
| 175 | - 'updated_at' => NULL, |
|
| 175 | + 'updated_at' => null, |
|
| 176 | 176 | ], |
| 177 | 177 | 23 => [ |
| 178 | 178 | 'id' => 24, |
| 179 | 179 | 'code' => 'product_update', |
| 180 | 180 | 'description' => 'Edit product', |
| 181 | 181 | 'created_at' => '2023-12-06 00:39:54', |
| 182 | - 'updated_at' => NULL, |
|
| 182 | + 'updated_at' => null, |
|
| 183 | 183 | ], |
| 184 | 184 | 24 => [ |
| 185 | 185 | 'id' => 25, |
@@ -10,7 +10,7 @@ |
||
| 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 => [ |
@@ -5,8 +5,7 @@ |
||
| 5 | 5 | |
| 6 | 6 | use Platine\Framework\Migration\Seed\AbstractSeed; |
| 7 | 7 | |
| 8 | -class ProductCategoriesSeed20240616000001 extends AbstractSeed |
|
| 9 | -{ |
|
| 8 | +class ProductCategoriesSeed20240616000001 extends AbstractSeed { |
|
| 10 | 9 | |
| 11 | 10 | public function run(): void |
| 12 | 11 | { |
@@ -16,30 +16,30 @@ |
||
| 16 | 16 | 0 => [ |
| 17 | 17 | 'id' => 1, |
| 18 | 18 | 'name' => 'Computer', |
| 19 | - 'description' => NULL, |
|
| 19 | + 'description' => null, |
|
| 20 | 20 | 'created_at' => '2023-12-07 05:54:51', |
| 21 | 21 | 'updated_at' => '2023-12-07 05:57:41', |
| 22 | 22 | ], |
| 23 | 23 | 1 => [ |
| 24 | 24 | 'id' => 2, |
| 25 | 25 | 'name' => 'Cars', |
| 26 | - 'description' => NULL, |
|
| 26 | + 'description' => null, |
|
| 27 | 27 | 'created_at' => '2023-12-07 05:55:06', |
| 28 | - 'updated_at' => NULL, |
|
| 28 | + 'updated_at' => null, |
|
| 29 | 29 | ], |
| 30 | 30 | 2 => [ |
| 31 | 31 | 'id' => 3, |
| 32 | 32 | 'name' => 'Medicaments ', |
| 33 | - 'description' => NULL, |
|
| 33 | + 'description' => null, |
|
| 34 | 34 | 'created_at' => '2023-12-07 05:55:19', |
| 35 | - 'updated_at' => NULL, |
|
| 35 | + 'updated_at' => null, |
|
| 36 | 36 | ], |
| 37 | 37 | 3 => [ |
| 38 | 38 | 'id' => 4, |
| 39 | 39 | 'name' => 'Others', |
| 40 | - 'description' => NULL, |
|
| 40 | + 'description' => null, |
|
| 41 | 41 | 'created_at' => '2023-12-07 05:55:28', |
| 42 | - 'updated_at' => NULL, |
|
| 42 | + 'updated_at' => null, |
|
| 43 | 43 | ], |
| 44 | 44 | ]; |
| 45 | 45 | foreach ($data as $row) { |
@@ -10,7 +10,7 @@ |
||
| 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 => [ |
@@ -5,8 +5,7 @@ |
||
| 5 | 5 | |
| 6 | 6 | use Platine\Framework\Migration\Seed\AbstractSeed; |
| 7 | 7 | |
| 8 | -class RolesSeed20240616000003 extends AbstractSeed |
|
| 9 | -{ |
|
| 8 | +class RolesSeed20240616000003 extends AbstractSeed { |
|
| 10 | 9 | |
| 11 | 10 | public function run(): void |
| 12 | 11 | { |
@@ -16,7 +16,7 @@ |
||
| 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 | ], |
@@ -10,7 +10,7 @@ |
||
| 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 => [ |
@@ -5,8 +5,7 @@ |
||
| 5 | 5 | |
| 6 | 6 | use Platine\Framework\Migration\Seed\AbstractSeed; |
| 7 | 7 | |
| 8 | -class RolesPermissionsSeed20240616000004 extends AbstractSeed |
|
| 9 | -{ |
|
| 8 | +class RolesPermissionsSeed20240616000004 extends AbstractSeed { |
|
| 10 | 9 | |
| 11 | 10 | public function run(): void |
| 12 | 11 | { |
@@ -10,7 +10,7 @@ |
||
| 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 => [ |
@@ -5,8 +5,7 @@ |
||
| 5 | 5 | |
| 6 | 6 | use Platine\Framework\Migration\Seed\AbstractSeed; |
| 7 | 7 | |
| 8 | -class ProductsSeed20240616000002 extends AbstractSeed |
|
| 9 | -{ |
|
| 8 | +class ProductsSeed20240616000002 extends AbstractSeed { |
|
| 10 | 9 | |
| 11 | 10 | public function run(): void |
| 12 | 11 | { |
@@ -16,17 +16,17 @@ |
||
| 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, |