Passed
Pull Request — master (#9)
by nguereza
02:20
created
storage/migrations/20231207_060117_add_products_table.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
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();
Please login to merge, or discard this patch.
app/Provider/ProductServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
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
         });
Please login to merge, or discard this patch.
app/Model/Entity/Product.php 1 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.