Completed
Pull Request — development (#635)
by Ashutosh
09:42
created
app/Http/Controllers/Product/ProductController.php 3 patches
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -107,18 +107,18 @@  discard block
 block discarded – undo
107 107
 
108 108
                 return\ DataTables::of($new_product)
109 109
 
110
-                            ->addColumn('checkbox', function ($model) {
110
+                            ->addColumn('checkbox', function($model) {
111 111
                                 return "<input type='checkbox' class='product_checkbox' 
112 112
                                 value=".$model->id.' name=select[] id=check>';
113 113
                             })
114
-                            ->addColumn('name', function ($model) {
114
+                            ->addColumn('name', function($model) {
115 115
                                 return ucfirst($model->name);
116 116
                             })
117
-                              ->addColumn('image', function ($model) {
117
+                              ->addColumn('image', function($model) {
118 118
                                   // return $model->image;
119 119
                                   return "<img src= '$model->image' + height=\"80\"/>";
120 120
                               })
121
-                            ->addColumn('type', function ($model) {
121
+                            ->addColumn('type', function($model) {
122 122
                                 if ($this->type->where('id', $model->type)->first()) {
123 123
                                     return $this->type->where('id', $model->type)->first()->name;
124 124
                                 } else {
@@ -126,7 +126,7 @@  discard block
 block discarded – undo
126 126
                                 }
127 127
                             })
128 128
 
129
-                            ->addColumn('group', function ($model) {
129
+                            ->addColumn('group', function($model) {
130 130
                                 if ($this->group->where('id', $model->group)->first()) {
131 131
                                     return $this->group->where('id', $model->group)->first()->name;
132 132
                                 } else {
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
134 134
                                 }
135 135
                             })
136 136
 
137
-                            ->addColumn('Action', function ($model) {
137
+                            ->addColumn('Action', function($model) {
138 138
                                 $url = '';
139 139
                                 if ($model->type == 2) {
140 140
                                     $url = '<a href='.url('product/download/'.$model->id).
Please login to merge, or discard this patch.
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -119,10 +119,10 @@  discard block
 block discarded – undo
119 119
                             ->addColumn('name', function ($model) {
120 120
                                 return ucfirst($model->name);
121 121
                             })
122
-                              ->addColumn('image', function ($model) {
123
-                                  // return $model->image;
124
-                                  return "<img src= '$model->image' + height=\"80\"/>";
125
-                              })
122
+                                ->addColumn('image', function ($model) {
123
+                                    // return $model->image;
124
+                                    return "<img src= '$model->image' + height=\"80\"/>";
125
+                                })
126 126
                             ->addColumn('type', function ($model) {
127 127
                                 if ($this->type->where('id', $model->type)->first()) {
128 128
                                     return $this->type->where('id', $model->type)->first()->name;
@@ -343,7 +343,7 @@  discard block
 block discarded – undo
343 343
                         'description'=> 'required',
344 344
                         'image'      => 'sometimes | mimes:jpeg,jpg,png,gif | max:1000',
345 345
                         'product_sku'=> 'required',
346
-      ]);
346
+        ]);
347 347
 
348 348
             if ($v->fails()) {
349 349
                 return redirect()->back()->with('errors', $v->errors());
Please login to merge, or discard this patch.
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -253,7 +253,8 @@
 block discarded – undo
253 253
 
254 254
             try {
255 255
                 $licenseStatus = StatusSetting::pluck('license_status')->first();
256
-                if ($licenseStatus == 1) { //If License Setting Status is on,Add Product to the License Manager
256
+                if ($licenseStatus == 1) {
257
+//If License Setting Status is on,Add Product to the License Manager
257 258
                     $addProductToLicensing = $this->licensing->addNewProduct($input['name'], $input['product_sku']);
258 259
                 }
259 260
                 if ($request->hasFile('image')) {
Please login to merge, or discard this patch.
app/Http/Controllers/DashboardController.php 2 patches
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -56,8 +56,8 @@  discard block
 block discarded – undo
56 56
         return view('themes.default1.common.dashboard', compact('totalSalesINR', 'totalSalesUSD',
57 57
                 'yearlySalesINR', 'yearlySalesUSD', 'monthlySalesINR', 'monthlySalesUSD', 'users',
58 58
                 'count_users', 'arraylists', 'productSoldlists','orders','subscriptions','invoices',
59
-                 'products', 'arrayCountList', 'pendingPaymentINR', 'pendingPaymentUSD', 'status','startSubscriptionDate',
60
-                 'endSubscriptionDate'));
59
+                    'products', 'arrayCountList', 'pendingPaymentINR', 'pendingPaymentUSD', 'status','startSubscriptionDate',
60
+                    'endSubscriptionDate'));
61 61
     }
62 62
 
63 63
     /**
@@ -154,7 +154,7 @@  discard block
 block discarded – undo
154 154
         // dd($currentYear,$currentMonth );
155 155
         $total = Invoice::whereYear('created_at', '=', $currentYear)->whereMonth('created_at', '=', $currentMonth)
156 156
                 ->where('currency', 'USD')
157
-                 ->where('status', '=', 'success')
157
+                    ->where('status', '=', 'success')
158 158
                 ->pluck('grand_total')->all();
159 159
         $grandTotal = array_sum($total);
160 160
 
@@ -201,9 +201,9 @@  discard block
 block discarded – undo
201 201
     public function getAllUsers()
202 202
     {
203 203
         $allUsers = User::orderBy('created_at', 'desc')->where('active', 1)->where('mobile_verified', 1)
204
-              ->take(20)
205
-              ->get()
206
-              ->toArray();
204
+                ->take(20)
205
+                ->get()
206
+                ->toArray();
207 207
 
208 208
         return $allUsers;
209 209
     }
@@ -238,7 +238,7 @@  discard block
 block discarded – undo
238 238
         $dayUtc = new Carbon('-30 days');
239 239
         $minus30Day = $dayUtc->toDateTimeString();
240 240
         $recentOrders = Order::where('created_at', '>', $minus30Day)->orderBy('created_at', 'desc')
241
-                 ->where('price_override', '>', 0)->get();
241
+                    ->where('price_override', '>', 0)->get();
242 242
 
243 243
         return $recentOrders;
244 244
     }
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -55,8 +55,8 @@
 block discarded – undo
55 55
 
56 56
         return view('themes.default1.common.dashboard', compact('totalSalesINR', 'totalSalesUSD',
57 57
                 'yearlySalesINR', 'yearlySalesUSD', 'monthlySalesINR', 'monthlySalesUSD', 'users',
58
-                'count_users', 'arraylists', 'productSoldlists','orders','subscriptions','invoices',
59
-                 'products', 'arrayCountList', 'pendingPaymentINR', 'pendingPaymentUSD', 'status','startSubscriptionDate',
58
+                'count_users', 'arraylists', 'productSoldlists', 'orders', 'subscriptions', 'invoices',
59
+                 'products', 'arrayCountList', 'pendingPaymentINR', 'pendingPaymentUSD', 'status', 'startSubscriptionDate',
60 60
                  'endSubscriptionDate'));
61 61
     }
62 62
 
Please login to merge, or discard this patch.
app/Http/Controllers/Common/TemplateController.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -122,18 +122,18 @@  discard block
 block discarded – undo
122 122
     public function getTemplates()
123 123
     {
124 124
         return \DataTables::of($this->template->select('id', 'name', 'type')->get())
125
-                        ->addColumn('checkbox', function ($model) {
125
+                        ->addColumn('checkbox', function($model) {
126 126
                             return "<input type='checkbox' class='template_checkbox' 
127 127
                             value=".$model->id.' name=select[] id=check>';
128 128
                         })
129 129
 
130
-                         ->addColumn('name', function ($model) {
130
+                         ->addColumn('name', function($model) {
131 131
                              return $model->name;
132 132
                          })
133
-                        ->addColumn('type', function ($model) {
133
+                        ->addColumn('type', function($model) {
134 134
                             return $this->type->where('id', $model->type)->first()->name;
135 135
                         })
136
-                        ->addColumn('action', function ($model) {
136
+                        ->addColumn('action', function($model) {
137 137
                             return '<a href='.url('templates/'.$model->id.'/edit').
138 138
                             " class='btn btn-sm btn-primary btn-xs'><i class='fa fa-edit'
139 139
                                  style='color:white;'> </i>&nbsp;&nbsp;Edit</a>";
@@ -284,7 +284,7 @@  discard block
 block discarded – undo
284 284
             
285 285
             $settings = \App\Model\Common\Setting::find(1);
286 286
             $fromname = $settings->company;
287
-            \Mail::send('emails.mail', ['data' => $data], function ($m) use ($from, $to, $subject, $fromname, $toname, $cc, $attach) {
287
+            \Mail::send('emails.mail', ['data' => $data], function($m) use ($from, $to, $subject, $fromname, $toname, $cc, $attach) {
288 288
                 $m->from($from, $fromname);
289 289
 
290 290
                 $m->to($to, $toname)->subject($subject);
Please login to merge, or discard this patch.
app/Http/Controllers/User/ClientController.php 2 patches
Indentation   +26 added lines, -26 removed lines patch added patch discarded remove patch
@@ -78,31 +78,31 @@  discard block
 block discarded – undo
78 78
         $reg_from = $request->input('reg_from');
79 79
         $reg_till = $request->input('reg_till');
80 80
         $user = $this->advanceSearch($name, $username, $company,
81
-         $mobile, $email, $country, $industry, $company_type, $company_size, $role, $position, $reg_from, $reg_till);
81
+            $mobile, $email, $country, $industry, $company_type, $company_size, $role, $position, $reg_from, $reg_till);
82 82
 
83 83
         return\ DataTables::of($user->get())
84
-                         ->addColumn('checkbox', function ($model) {
85
-                             return "<input type='checkbox' class='user_checkbox' 
84
+                            ->addColumn('checkbox', function ($model) {
85
+                                return "<input type='checkbox' class='user_checkbox' 
86 86
                             value=".$model->id.' name=select[] id=check>';
87
-                         })
87
+                            })
88 88
                         ->addColumn('first_name', function ($model) {
89 89
                             return '<a href='.url('clients/'.$model->id).'>'
90 90
                             .ucfirst($model->first_name).' '.ucfirst($model->last_name).'</a>';
91 91
                         })
92
-                         ->addColumn('email', function ($model) {
93
-                             return $model->email;
94
-                         })
95
-                          ->addColumn('created_at', function ($model) {
96
-                              $ends = $model->created_at;
97
-                              if ($ends) {
98
-                                  $date1 = new DateTime($ends);
99
-                                  $tz = \Auth::user()->timezone()->first()->name;
100
-                                  $date1->setTimezone(new DateTimeZone($tz));
101
-                                  $end = $date1->format('M j, Y, g:i a ');
102
-                              }
103
-
104
-                              return $end;
105
-                          })
92
+                            ->addColumn('email', function ($model) {
93
+                                return $model->email;
94
+                            })
95
+                            ->addColumn('created_at', function ($model) {
96
+                                $ends = $model->created_at;
97
+                                if ($ends) {
98
+                                    $date1 = new DateTime($ends);
99
+                                    $tz = \Auth::user()->timezone()->first()->name;
100
+                                    $date1->setTimezone(new DateTimeZone($tz));
101
+                                    $end = $date1->format('M j, Y, g:i a ');
102
+                                }
103
+
104
+                                return $end;
105
+                            })
106 106
                         // ->showColumns('email', 'created_at')
107 107
                         ->addColumn('active', function ($model) {
108 108
                             if ($model->active == 1) {
@@ -225,7 +225,7 @@  discard block
 block discarded – undo
225 225
 
226 226
             return view('themes.default1.user.client.show',
227 227
                 compact('id', 'client', 'invoices', 'model_popup', 'orders',
228
-                 'payments', 'invoiceSum', 'amountReceived', 'pendingAmount', 'currency', 'extraAmt', 'comments'));
228
+                    'payments', 'invoiceSum', 'amountReceived', 'pendingAmount', 'currency', 'extraAmt', 'comments'));
229 229
         } catch (\Exception $ex) {
230 230
             app('log')->info($ex->getMessage());
231 231
             Bugsnag::notifyException($ex);
@@ -397,7 +397,7 @@  discard block
 block discarded – undo
397 397
             return view('themes.default1.user.client.edit',
398 398
                 compact('bussinesses', 'user', 'timezones', 'state',
399 399
                     'states', 'managers', 'selectedCurrency', 'selectedCompany',
400
-                     'selectedIndustry', 'selectedCompanySize'));
400
+                        'selectedIndustry', 'selectedCompanySize'));
401 401
         } catch (\Exception $ex) {
402 402
             app('log')->error($ex->getMessage());
403 403
 
@@ -493,9 +493,9 @@  discard block
 block discarded – undo
493 493
                 return \Response::json([]);
494 494
             }
495 495
             $users = User::where('email', 'LIKE', '%'.$term.'%')
496
-             ->orWhere('first_name', 'LIKE', '%'.$term.'%')
497
-             ->orWhere('last_name', 'LIKE', '%'.$term.'%')
498
-             ->select('id', 'email', 'profile_pic', 'first_name', 'last_name')->get();
496
+                ->orWhere('first_name', 'LIKE', '%'.$term.'%')
497
+                ->orWhere('last_name', 'LIKE', '%'.$term.'%')
498
+                ->select('id', 'email', 'profile_pic', 'first_name', 'last_name')->get();
499 499
             $formatted_tags = [];
500 500
 
501 501
             foreach ($users as $user) {
@@ -511,8 +511,8 @@  discard block
 block discarded – undo
511 511
     }
512 512
 
513 513
     public function advanceSearch($name = '', $username = '', $company = '',
514
-     $mobile = '', $email = '', $country = '', $industry = '',
515
-      $company_type = '', $company_size = '', $role = '', $position = '', $reg_from = '', $reg_till = '')
514
+        $mobile = '', $email = '', $country = '', $industry = '',
515
+        $company_type = '', $company_size = '', $role = '', $position = '', $reg_from = '', $reg_till = '')
516 516
     {
517 517
         $join = \DB::table('users');
518 518
         $join = $this->getNamUserCom($join, $name, $username, $company);
@@ -523,7 +523,7 @@  discard block
 block discarded – undo
523 523
 
524 524
         $join = $join->orderBy('created_at', 'desc')
525 525
         ->select('id', 'first_name', 'last_name', 'email', 'created_at',
526
-         'active', 'mobile_verified', 'role', 'position');
526
+            'active', 'mobile_verified', 'role', 'position');
527 527
 
528 528
         return $join;
529 529
     }
Please login to merge, or discard this patch.
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -81,18 +81,18 @@  discard block
 block discarded – undo
81 81
          $mobile, $email, $country, $industry, $company_type, $company_size, $role, $position, $reg_from, $reg_till);
82 82
 
83 83
         return\ DataTables::of($user->get())
84
-                         ->addColumn('checkbox', function ($model) {
84
+                         ->addColumn('checkbox', function($model) {
85 85
                              return "<input type='checkbox' class='user_checkbox' 
86 86
                             value=".$model->id.' name=select[] id=check>';
87 87
                          })
88
-                        ->addColumn('first_name', function ($model) {
88
+                        ->addColumn('first_name', function($model) {
89 89
                             return '<a href='.url('clients/'.$model->id).'>'
90 90
                             .ucfirst($model->first_name).' '.ucfirst($model->last_name).'</a>';
91 91
                         })
92
-                         ->addColumn('email', function ($model) {
92
+                         ->addColumn('email', function($model) {
93 93
                              return $model->email;
94 94
                          })
95
-                          ->addColumn('created_at', function ($model) {
95
+                          ->addColumn('created_at', function($model) {
96 96
                               $ends = $model->created_at;
97 97
                               if ($ends) {
98 98
                                   $date1 = new DateTime($ends);
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
                               return $end;
105 105
                           })
106 106
                         // ->showColumns('email', 'created_at')
107
-                        ->addColumn('active', function ($model) {
107
+                        ->addColumn('active', function($model) {
108 108
                             if ($model->active == 1) {
109 109
                                 $email = "<span class='glyphicon glyphicon-envelope'
110 110
                                  style='color:green' title='verified email'></span>";
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
 
123 123
                             return $email.'&nbsp;&nbsp;'.$mobile;
124 124
                         })
125
-                        ->addColumn('action', function ($model) {
125
+                        ->addColumn('action', function($model) {
126 126
                             return '<a href='.url('clients/'.$model->id.'/edit')
127 127
                             ." class='btn btn-sm btn-primary btn-xs'>
128 128
                             <i class='fa fa-edit' style='color:white;'> </i>&nbsp;&nbsp;Edit</a>"
@@ -131,7 +131,7 @@  discard block
 block discarded – undo
131 131
                                     <i class='fa fa-eye' style='color:white;'> </i>&nbsp;&nbsp;View</a>";
132 132
                             // return 'hhhh';
133 133
                         })
134
-                        ->rawColumns(['checkbox', 'first_name', 'email',  'created_at', 'active', 'action'])
134
+                        ->rawColumns(['checkbox', 'first_name', 'email', 'created_at', 'active', 'action'])
135 135
                         ->make(true);
136 136
 
137 137
         // ->searchColumns('email', 'first_name')
Please login to merge, or discard this patch.
app/Http/Requests/User/ProfileRequest.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
                     'zip'                    => 'required|numeric',
38 38
                     'user_name'              => 'required|unique:users,user_name,'.$userid,
39 39
                     'bussiness'              => 'required',
40
-                     'profile_pic'           => 'sometimes|mimes:jpeg,jpg,png,gif|max:100000',
40
+                        'profile_pic'           => 'sometimes|mimes:jpeg,jpg,png,gif|max:100000',
41 41
 
42 42
         ];
43 43
         }
@@ -46,10 +46,10 @@  discard block
 block discarded – undo
46 46
             $userid = \Auth::user()->id;
47 47
 
48 48
             return [
49
-                     'first_name'            => 'required|min:3|max:30',
49
+                        'first_name'            => 'required|min:3|max:30',
50 50
                     'last_name'              => 'required|max:30',
51
-                     'mobile'                => 'required|regex:/[0-9]/|min:5|max:20',
52
-                     'email'                 => 'required',
51
+                        'mobile'                => 'required|regex:/[0-9]/|min:5|max:20',
52
+                        'email'                 => 'required',
53 53
                     'mobile_code'            => 'required|numeric',
54 54
                     'mobile'                 => 'required|numeric',
55 55
                     'zip'                    => 'required|numeric',
Please login to merge, or discard this patch.
app/Model/Product/Product.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
     protected static $logName = 'Product';
20 20
 
21 21
     protected static $logAttributes = ['name', 'description', 'type', 'file', 'category',
22
-         'github_owner', 'github_repository', 'version',  'subscription', 'hidden', 'product_sku', ];
22
+            'github_owner', 'github_repository', 'version',  'subscription', 'hidden', 'product_sku', ];
23 23
 
24 24
     protected static $logOnlyDirty = true;
25 25
 
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@  discard block
 block discarded – undo
10 10
     use LogsActivity;
11 11
     protected $table = 'products';
12 12
     protected $fillable = ['name', 'description', 'type', 'group', 'file', 'image', 'require_domain', 'category',
13
-        'stock_control',  'stock_qty', 'sort_order', 'tax_apply', 'retired', 'hidden',  'auto_terminate',
13
+        'stock_control', 'stock_qty', 'sort_order', 'tax_apply', 'retired', 'hidden', 'auto_terminate',
14 14
         'setup_order_placed', 'setup_first_payment', 'setup_accept_manually',
15 15
         'no_auto_setup', 'shoping_cart_link', 'process_url', 'github_owner',
16 16
         'github_repository',
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
     protected static $logName = 'Product';
20 20
 
21 21
     protected static $logAttributes = ['name', 'description', 'type', 'file', 'category',
22
-         'github_owner', 'github_repository', 'version',  'subscription', 'hidden', 'product_sku', ];
22
+         'github_owner', 'github_repository', 'version', 'subscription', 'hidden', 'product_sku', ];
23 23
 
24 24
     protected static $logOnlyDirty = true;
25 25
 
Please login to merge, or discard this patch.
app/Console/Kernel.php 2 patches
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -16,8 +16,8 @@  discard block
 block discarded – undo
16 16
      */
17 17
     protected $commands = [
18 18
         //
19
-         'App\Console\Commands\Inspire',
20
-         \App\Console\Commands\Install::class,
19
+            'App\Console\Commands\Inspire',
20
+            \App\Console\Commands\Install::class,
21 21
         'App\Console\Commands\ExpiryCron',
22 22
     ];
23 23
 
@@ -50,13 +50,13 @@  discard block
 block discarded – undo
50 50
             switch ($task) {
51 51
             case 'expiryMail':
52 52
                if ($expiryMailStatus == 1) {
53
-                   return $this->getCondition($schedule->command('expiry:notification'), $command);
54
-               }
53
+                    return $this->getCondition($schedule->command('expiry:notification'), $command);
54
+                }
55 55
 
56 56
             case 'deleteLogs':
57 57
              if ($logDeleteStatus == 1) {
58
-                 return $this->getCondition($schedule->command('activitylog:clean'), $command);
59
-             }
58
+                    return $this->getCondition($schedule->command('activitylog:clean'), $command);
59
+                }
60 60
             }
61 61
         }
62 62
     }
Please login to merge, or discard this patch.
Switch Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -48,15 +48,15 @@
 block discarded – undo
48 48
             $condition = new \App\Model\Mailjob\Condition();
49 49
             $command = $condition->getConditionValue($task);
50 50
             switch ($task) {
51
-            case 'expiryMail':
52
-               if ($expiryMailStatus == 1) {
53
-                   return $this->getCondition($schedule->command('expiry:notification'), $command);
54
-               }
51
+                case 'expiryMail':
52
+                   if ($expiryMailStatus == 1) {
53
+                       return $this->getCondition($schedule->command('expiry:notification'), $command);
54
+                   }
55 55
 
56
-            case 'deleteLogs':
57
-             if ($logDeleteStatus == 1) {
58
-                 return $this->getCondition($schedule->command('activitylog:clean'), $command);
59
-             }
56
+                case 'deleteLogs':
57
+                 if ($logDeleteStatus == 1) {
58
+                     return $this->getCondition($schedule->command('activitylog:clean'), $command);
59
+                 }
60 60
             }
61 61
         }
62 62
     }
Please login to merge, or discard this patch.
app/Http/Controllers/Order/BaseOrderController.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -162,7 +162,7 @@  discard block
 block discarded – undo
162 162
                 $user_id = $this->order->find($orderid)->client;
163 163
                 $this->subscription->create(['user_id' => $user_id,
164 164
                     'plan_id'                          => $planid, 'order_id' => $orderid, 'ends_at' => $ends_at,
165
-                     'version'                         => $version, 'product_id' =>$product, ]);
165
+                        'version'                         => $version, 'product_id' =>$product, ]);
166 166
             }
167 167
             $licenseStatus = StatusSetting::pluck('license_status')->first();
168 168
             if ($licenseStatus == 1) {
@@ -270,7 +270,7 @@  discard block
 block discarded – undo
270 270
         $data = $template->data;
271 271
         $replace = [
272 272
             'name'         => $user->first_name.' '.$user->last_name,
273
-             'serialkeyurl'=> $myaccounturl,
273
+                'serialkeyurl'=> $myaccounturl,
274 274
             'downloadurl'  => $downloadurl,
275 275
             'invoiceurl'   => $invoiceurl,
276 276
             'product'      => $product,
Please login to merge, or discard this patch.
app/Http/Controllers/License/LicenseController.php 1 patch
Braces   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -85,7 +85,8 @@  discard block
 block discarded – undo
85 85
       &search_type=product&search_keyword=$product_sku");
86 86
 
87 87
             $details = json_decode($getProductId);
88
-            if ($details->api_error_detected == 0 && is_array($details->page_message)) {//This is not true if Product_sku is updated
88
+            if ($details->api_error_detected == 0 && is_array($details->page_message)) {
89
+//This is not true if Product_sku is updated
89 90
                 $productId = $details->page_message[0]->product_id;
90 91
             }
91 92
 
@@ -121,7 +122,8 @@  discard block
 block discarded – undo
121 122
       &search_type=client&search_keyword=$email");
122 123
 
123 124
         $details = json_decode($getUserId);
124
-        if ($details->api_error_detected == 0 && is_array($details->page_message)) {//This is not true if email is updated
125
+        if ($details->api_error_detected == 0 && is_array($details->page_message)) {
126
+//This is not true if email is updated
125 127
             $userId = $details->page_message[0]->client_id;
126 128
         }
127 129
 
Please login to merge, or discard this patch.