Passed
Push — master ( 546709...c606fb )
by nguereza
21:45 queued 18:19
created
storage/migrations/20231207_053927_add_product_categories_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('product_categories', function (CreateTable $table) {
15
+        $this->create('product_categories', function(CreateTable $table) {
16 16
             $table->integer('id')
17 17
                   ->autoincrement()
18 18
                  ->primary();
Please login to merge, or discard this patch.
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.
app/Http/Action/HomeAction.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -159,7 +159,7 @@
 block discarded – undo
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');
Please login to merge, or discard this patch.