@@ -12,7 +12,7 @@ |
||
12 | 12 | public function up(): void |
13 | 13 | { |
14 | 14 | //Action when migrate up |
15 | - $this->create('products', function (CreateTable $table) { |
|
15 | + $this->create('products', function(CreateTable $table) { |
|
16 | 16 | $table->integer('id') |
17 | 17 | ->autoincrement() |
18 | 18 | ->primary(); |
@@ -35,7 +35,7 @@ |
||
35 | 35 | */ |
36 | 36 | public function addRoutes(Router $router): void |
37 | 37 | { |
38 | - $router->group('/product', function (Router $router) { |
|
38 | + $router->group('/product', function(Router $router) { |
|
39 | 39 | $router->resource('', ProductAction::class, 'product'); |
40 | 40 | $router->resource('/category', CategoryAction::class, 'product_category'); |
41 | 41 | }); |
@@ -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 | } |