Test Setup Failed
Push — development ( 7589fb...de5847 )
by Ashutosh
08:45
created
app/Http/Controllers/Common/BaseTemplateController.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -25,13 +25,14 @@
 block discarded – undo
25 25
             $currencyAndSymbol = $cart_controller->currency();
26 26
             $currency = $currencyAndSymbol['currency'];
27 27
             $symbol = $currencyAndSymbol['symbol'];
28
-            if ($symbol == '') {  //If user has no currency symbol(In case of old customers)
28
+            if ($symbol == '') {
29
+//If user has no currency symbol(In case of old customers)
29 30
                 $symbol = Currency::where('code', $currency)->pluck('symbol')->first();
30 31
                 $symbol = \Auth::user()->update(['currency_symbol'=> $symbol]);
31 32
             }
32 33
             foreach ($plans as $value) {
33 34
                 $cost = $value->planPrice()->where('currency', $currency)->first();
34
-                if ($cost) {    
35
+                if ($cost) {
35 36
                     $cost = $cost->add_price;
36 37
                 } 
37 38
                 $priceDescription = $value->planPrice->first();
Please login to merge, or discard this patch.
app/Http/Controllers/User/ClientController.php 2 patches
Indentation   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -115,19 +115,19 @@  discard block
 block discarded – undo
115 115
         );
116 116
 
117 117
         return\ DataTables::of($user->get())
118
-                         ->addColumn('checkbox', function ($model) {
119
-                             return "<input type='checkbox' class='user_checkbox' 
118
+                            ->addColumn('checkbox', function ($model) {
119
+                                return "<input type='checkbox' class='user_checkbox' 
120 120
                             value=".$model->id.' name=select[] id=check>';
121
-                         })
121
+                            })
122 122
                         ->addColumn('first_name', function ($model) {
123 123
                             return '<a href='.url('clients/'.$model->id).'>'
124 124
                             .ucfirst($model->first_name).' '.ucfirst($model->last_name).'</a>';
125 125
                         })
126
-                         ->addColumn('email', function ($model) {
127
-                             return $model->email;
128
-                         })
129
-                          ->addColumn('created_at', function ($model) {
130
-                              $ends = $model->created_at;
126
+                            ->addColumn('email', function ($model) {
127
+                                return $model->email;
128
+                            })
129
+                            ->addColumn('created_at', function ($model) {
130
+                                $ends = $model->created_at;
131 131
                             if ($ends) {
132 132
                                 $date1 = new DateTime($ends);
133 133
                                 $tz = \Auth::user()->timezone()->first()->name;
@@ -135,8 +135,8 @@  discard block
 block discarded – undo
135 135
                                 $end = $date1->format('M j, Y, g:i a ');
136 136
                             }
137 137
 
138
-                              return $end;
139
-                          })
138
+                                return $end;
139
+                            })
140 140
                         // ->showColumns('email', 'created_at')
141 141
                         ->addColumn('active', function ($model) {
142 142
                             if ($model->active == 1) {
@@ -551,9 +551,9 @@  discard block
 block discarded – undo
551 551
                 return \Response::json([]);
552 552
             }
553 553
             $users = User::where('email', 'LIKE', '%'.$term.'%')
554
-             ->orWhere('first_name', 'LIKE', '%'.$term.'%')
555
-             ->orWhere('last_name', 'LIKE', '%'.$term.'%')
556
-             ->select('id', 'email', 'profile_pic', 'first_name', 'last_name')->get();
554
+                ->orWhere('first_name', 'LIKE', '%'.$term.'%')
555
+                ->orWhere('last_name', 'LIKE', '%'.$term.'%')
556
+                ->select('id', 'email', 'profile_pic', 'first_name', 'last_name')->get();
557 557
             $formatted_tags = [];
558 558
 
559 559
             foreach ($users as $user) {
Please login to merge, or discard this patch.
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -115,18 +115,18 @@  discard block
 block discarded – undo
115 115
         );
116 116
 
117 117
         return\ DataTables::of($user->get())
118
-                         ->addColumn('checkbox', function ($model) {
118
+                         ->addColumn('checkbox', function($model) {
119 119
                              return "<input type='checkbox' class='user_checkbox' 
120 120
                             value=".$model->id.' name=select[] id=check>';
121 121
                          })
122
-                        ->addColumn('first_name', function ($model) {
122
+                        ->addColumn('first_name', function($model) {
123 123
                             return '<a href='.url('clients/'.$model->id).'>'
124 124
                             .ucfirst($model->first_name).' '.ucfirst($model->last_name).'</a>';
125 125
                         })
126
-                         ->addColumn('email', function ($model) {
126
+                         ->addColumn('email', function($model) {
127 127
                              return $model->email;
128 128
                          })
129
-                          ->addColumn('created_at', function ($model) {
129
+                          ->addColumn('created_at', function($model) {
130 130
                               $ends = $model->created_at;
131 131
                             if ($ends) {
132 132
                                 $date1 = new DateTime($ends);
@@ -138,7 +138,7 @@  discard block
 block discarded – undo
138 138
                               return $end;
139 139
                           })
140 140
                         // ->showColumns('email', 'created_at')
141
-                        ->addColumn('active', function ($model) {
141
+                        ->addColumn('active', function($model) {
142 142
                             if ($model->active == 1) {
143 143
                                 $email = "<span class='glyphicon glyphicon-envelope'
144 144
                                  style='color:green' title='verified email'></span>";
@@ -156,7 +156,7 @@  discard block
 block discarded – undo
156 156
 
157 157
                             return $email.'&nbsp;&nbsp;'.$mobile;
158 158
                         })
159
-                        ->addColumn('action', function ($model) {
159
+                        ->addColumn('action', function($model) {
160 160
                             return '<a href='.url('clients/'.$model->id.'/edit')
161 161
                             ." class='btn btn-sm btn-primary btn-xs'>
162 162
                             <i class='fa fa-edit' style='color:white;'> </i>&nbsp;&nbsp;Edit</a>"
@@ -165,7 +165,7 @@  discard block
 block discarded – undo
165 165
                                     <i class='fa fa-eye' style='color:white;'> </i>&nbsp;&nbsp;View</a>";
166 166
                             // return 'hhhh';
167 167
                         })
168
-                        ->rawColumns(['checkbox', 'first_name', 'email',  'created_at', 'active', 'action'])
168
+                        ->rawColumns(['checkbox', 'first_name', 'email', 'created_at', 'active', 'action'])
169 169
                         ->make(true);
170 170
 
171 171
         // ->searchColumns('email', 'first_name')
@@ -353,7 +353,7 @@  discard block
 block discarded – undo
353 353
             $balance = 0;
354 354
             foreach ($amounts as $amount) {
355 355
                 if ($amount) {
356
-                    $balance = $balance + $amount->amt_to_credit ;
356
+                    $balance = $balance + $amount->amt_to_credit;
357 357
                 }
358 358
             }
359 359
         return $balance;
Please login to merge, or discard this patch.
app/Http/Controllers/Front/PageController.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
                                  style='color:white;'> </i>&nbsp;&nbsp;Edit</a>";
73 73
                         })
74 74
 
75
-                          ->rawColumns(['checkbox', 'name', 'url',  'created_at', 'content', 'action'])
75
+                            ->rawColumns(['checkbox', 'name', 'url',  'created_at', 'content', 'action'])
76 76
                         ->make(true);
77 77
         // ->searchColumns('name', 'content')
78 78
                         // ->orderColumns('name')
@@ -163,8 +163,8 @@  discard block
 block discarded – undo
163 163
     public function getPageUrl($slug)
164 164
     {
165 165
         $productController = new \App\Http\Controllers\Product\ProductController();
166
-      //  $url = url('/');
167
-      //  $segment = $this->addSegment(['public/pages']);
166
+        //  $url = url('/');
167
+        //  $segment = $this->addSegment(['public/pages']);
168 168
         $url = url('/');
169 169
 
170 170
         $slug = str_slug($slug, '-');
Please login to merge, or discard this patch.