Test Failed
Push — master ( 7e98c1...89c50d )
by Gianluca
06:24
created
database/migrations/2020_12_07_082410_create_orders_table.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
      */
14 14
     public function up()
15 15
     {
16
-        Schema::create('orders', function (Blueprint $table) {
16
+        Schema::create('orders', function(Blueprint $table) {
17 17
             $table->id();
18 18
             $table->unsignedBigInteger('user_id');
19 19
             $table->date('shipped_date')->nullable();
Please login to merge, or discard this patch.
src/Seedeers/DetailTypeSeeder.php 2 patches
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -10,9 +10,9 @@
 block discarded – undo
10 10
 
11 11
 class DetailTypeSeeder extends Seeder
12 12
 {
13
-     public function run(){
14
-         foreach (DetailTypes::all() as $detail) {
15
-             DB::table('detail_type')->insert(['name' => $detail]);
16
-         }
17
-     }
13
+        public function run(){
14
+            foreach (DetailTypes::all() as $detail) {
15
+                DB::table('detail_type')->insert(['name' => $detail]);
16
+            }
17
+        }
18 18
 }
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@
 block discarded – undo
10 10
 
11 11
 class DetailTypeSeeder extends Seeder
12 12
 {
13
-     public function run(){
13
+     public function run() {
14 14
          foreach (DetailTypes::all() as $detail) {
15 15
              DB::table('detail_type')->insert(['name' => $detail]);
16 16
          }
Please login to merge, or discard this patch.
database/migrations/2020_12_02_085339_create_products_table.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
      */
14 14
     public function up()
15 15
     {
16
-        Schema::create('products', function (Blueprint $table) {
16
+        Schema::create('products', function(Blueprint $table) {
17 17
             $table->id();
18 18
             $table->string('name');
19 19
             $table->text('description');
Please login to merge, or discard this patch.
database/migrations/2020_12_02_091332_create_status_order_table.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
      */
14 14
     public function up()
15 15
     {
16
-        Schema::create('statuses_order', function (Blueprint $table) {
16
+        Schema::create('statuses_order', function(Blueprint $table) {
17 17
             $table->id();
18 18
             $table->string('name');
19 19
             $table->string('color');
Please login to merge, or discard this patch.
database/migrations/2020_12_07_082327_create_type_payment_table.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
      */
14 14
     public function up()
15 15
     {
16
-        Schema::create('payment_type', function (Blueprint $table) {
16
+        Schema::create('payment_type', function(Blueprint $table) {
17 17
             $table->id();
18 18
             $table->string('name');
19 19
             $table->timestamps();
Please login to merge, or discard this patch.
database/migrations/2020_12_02_085259_create_subcategories_table.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
      */
14 14
     public function up()
15 15
     {
16
-        Schema::create('subcategories', function (Blueprint $table) {
16
+        Schema::create('subcategories', function(Blueprint $table) {
17 17
             $table->id();
18 18
             $table->string('name');
19 19
             $table->unsignedBigInteger('category_id');
Please login to merge, or discard this patch.
src/helpers.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1,20 +1,20 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-function css($name){
3
+function css($name) {
4 4
     return asset(config('mongicommerce.admin.css'))."/{$name}";
5 5
 }
6 6
 
7
-function js($name){
7
+function js($name) {
8 8
     return asset(config('mongicommerce.admin.js'))."/{$name}";
9 9
 }
10 10
 
11
-function img($name){
11
+function img($name) {
12 12
     return asset(config('mongicommerce.admin.img'))."/{$name}";
13 13
 }
14
-function media($name){
14
+function media($name) {
15 15
     return asset(config('mongicommerce.admin.media'))."/{$name}";
16 16
 }
17 17
 
18
-function webfonts($name){
18
+function webfonts($name) {
19 19
     return asset(config('mongicommerce.admin.webfonts'))."/{$name}";
20 20
 }
Please login to merge, or discard this patch.
resources/views/admin/template/layout.blade.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -855,7 +855,7 @@
 block discarded – undo
855 855
                     <?php $link = "" ?>
856 856
                     @for($i = 1; $i <= count(Request::segments()); $i++)
857 857
                         @if($i < count(Request::segments()) & $i > 0)
858
-                            <?php $link .= "/" . Request::segment($i); ?>
858
+                            <?php $link .= "/".Request::segment($i); ?>
859 859
                             <li class="breadcrumb-item active"> <a href="<?= $link ?>">{{ ucwords(str_replace('-',' ',Request::segment($i)))}}</a> </li> >
860 860
                         @else {{ucwords(str_replace('-',' ',Request::segment($i)))}}
861 861
                         @endif
Please login to merge, or discard this patch.
database/migrations/2020_12_02_085259_create_categories_table.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
      */
14 14
     public function up()
15 15
     {
16
-        Schema::create('categories', function (Blueprint $table) {
16
+        Schema::create('categories', function(Blueprint $table) {
17 17
             $table->id();
18 18
             $table->string('name');
19 19
             $table->string('description')->nullable();
Please login to merge, or discard this patch.