Test Failed
Push — master ( 43a40c...9601e7 )
by Gianluca
10:08 queued 05:16
created
src/Seedeers/DetailTypeSeeder.php 1 patch
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.
src/Seedeers/SettingsSeeder.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@  discard block
 block discarded – undo
11 11
 
12 12
 class SettingsSeeder extends Seeder
13 13
 {
14
-     public function run(){
14
+        public function run(){
15 15
         $settings = new AdminSetting();
16 16
         $settings->shop_name = 'MongiCommerce';
17 17
         $settings->iban = 'DE79100110012626219557';
@@ -26,5 +26,5 @@  discard block
 block discarded – undo
26 26
         $settings->claim_email = '[email protected]';
27 27
         $settings->piva = '12345678901';
28 28
         $settings->save();
29
-     }
29
+        }
30 30
 }
Please login to merge, or discard this patch.
src/Http/Controllers/admin/AdminConfigurationFieldController.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@
 block discarded – undo
54 54
         if($type === 'textarea'){
55 55
             $html = '';
56 56
             $html .= '<textarea data-configuration_id="'.$field->id .'" class="form-control mongiconfigurationfield"></textarea>';
57
-        }else{
57
+        } else{
58 58
             $html .= '<input type="'.$type.'" data-configuration_id="'.$field->id .'" class="form-control mongiconfigurationfield">';
59 59
         }
60 60
         return $html;
Please login to merge, or discard this patch.
src/Libraries/Template.php 1 patch
Braces   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -46,12 +46,12 @@
 block discarded – undo
46 46
     public static function getProducts($id = null){
47 47
         if($id === null){
48 48
             $products = Product::all();
49
-        }else{
49
+        } else{
50 50
             if(Category::find($id)){
51 51
                 $belong_to_this_category = Category::find($id)->children->pluck('id')->toArray();
52 52
                 $result = array_merge($belong_to_this_category, [0 =>$id]);
53 53
                 $products = Product::whereIn('category_id',$result)->get();
54
-            }else{
54
+            } else{
55 55
                 $products = [];
56 56
             }
57 57
         }
Please login to merge, or discard this patch.
src/Http/Controllers/admin/AdminUpdatePackageController.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -10,8 +10,8 @@
 block discarded – undo
10 10
 class AdminUpdatePackageController extends Controller
11 11
 {
12 12
     public function update(){
13
-       $dd = shell_exec('cd .. && composer update mongi/mongicommerce');
14
-       $dd.= shell_exec('cd .. && php artisan mongicommerce:update');
13
+        $dd = shell_exec('cd .. && composer update mongi/mongicommerce');
14
+        $dd.= shell_exec('cd .. && php artisan mongicommerce:update');
15 15
         echo '<pre>';
16 16
         var_dump($dd);
17 17
         echo '</pre>';
Please login to merge, or discard this patch.