Passed
Push — master ( e231cf...be1785 )
by Ajit
03:30
created
app/Http/Controllers/DataMigrationController.php 2 patches
Indentation   +22 added lines, -22 removed lines patch added patch discarded remove patch
@@ -153,18 +153,18 @@  discard block
 block discarded – undo
153 153
                 }
154 154
 
155 155
                 $invoice = Invoice::create(['invoice_number'=> $invoice_number,
156
-                                             'member_id'=> $member->id,
157
-                                             'total'=> $invoice_total,
158
-                                             'status'=> $paymentStatus,
159
-                                             'pending_amount'=> $pending,
160
-                                             'discount_amount'=> $discount,
161
-                                             'discount_percent'=> $discountPercent,
162
-                                             'discount_note'=> null,
163
-                                             'tax'=> ($tax_percent / 100) * $invoice_total,
164
-                                             'additional_fees'=> '0',
165
-                                             'note'=> null,
166
-                                             'created_by'=> Auth::user()->id,
167
-                                             'updated_by'=> Auth::user()->id,
156
+                                                'member_id'=> $member->id,
157
+                                                'total'=> $invoice_total,
158
+                                                'status'=> $paymentStatus,
159
+                                                'pending_amount'=> $pending,
160
+                                                'discount_amount'=> $discount,
161
+                                                'discount_percent'=> $discountPercent,
162
+                                                'discount_note'=> null,
163
+                                                'tax'=> ($tax_percent / 100) * $invoice_total,
164
+                                                'additional_fees'=> '0',
165
+                                                'note'=> null,
166
+                                                'created_by'=> Auth::user()->id,
167
+                                                'updated_by'=> Auth::user()->id,
168 168
                                             ]);
169 169
 
170 170
                 $start_date = Carbon::createFromFormat('d/m/Y', $line->get('start_date'));
@@ -198,19 +198,19 @@  discard block
 block discarded – undo
198 198
                                                     ]);
199 199
 
200 200
                 $invoiceDetail = Invoice_detail::create(['invoice_id'=> $invoice->id,
201
-                                                       'plan_id'=> (int) $planId,
202
-                                                       'item_amount'=> $line->get('total_amount'),
203
-                                                       'item_amount'=> $line->get('total_amount'),
204
-                                                       'created_by'=> Auth::user()->id,
205
-                                                       'updated_by'=> Auth::user()->id,
201
+                                                        'plan_id'=> (int) $planId,
202
+                                                        'item_amount'=> $line->get('total_amount'),
203
+                                                        'item_amount'=> $line->get('total_amount'),
204
+                                                        'created_by'=> Auth::user()->id,
205
+                                                        'updated_by'=> Auth::user()->id,
206 206
                                                         ]);
207 207
 
208 208
                 $paymentDetail = Payment_detail::create(['invoice_id'=> $invoice->id,
209
-                                                         'payment_amount'=> $payment_amount,
210
-                                                         'mode'=> '1',
211
-                                                         'note'=> ' ',
212
-                                                         'created_by'=> Auth::user()->id,
213
-                                                         'updated_by'=> Auth::user()->id,
209
+                                                            'payment_amount'=> $payment_amount,
210
+                                                            'mode'=> '1',
211
+                                                            'note'=> ' ',
212
+                                                            'created_by'=> Auth::user()->id,
213
+                                                            'updated_by'=> Auth::user()->id,
214 214
                                                         ]);
215 215
 
216 216
                 Setting::where('key', '=', 'invoice_last_number')->update(['value' => $invoiceCounter]);
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -144,11 +144,11 @@
 block discarded – undo
144 144
                     $paymentStatus = \constPaymentStatus::Overpaid;
145 145
                 }
146 146
 
147
-                if (empty($line->discount_percent) && ! empty($line->discount_amount)) {
147
+                if (empty($line->discount_percent) && !empty($line->discount_amount)) {
148 148
                     $discountPercent = 'custom';
149 149
                 } elseif (empty($line->discount_percent) && empty($line->discount_amount)) {
150 150
                     $discountPercent = '0';
151
-                } elseif (! empty($line->discount_percent)) {
151
+                } elseif (!empty($line->discount_percent)) {
152 152
                     $discountPercent = str_replace('%', '', $line->discount_percent);
153 153
                 }
154 154
 
Please login to merge, or discard this patch.
app/Http/Controllers/EnquiriesController.php 2 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -80,10 +80,10 @@
 block discarded – undo
80 80
 
81 81
             //Store the followup details
82 82
             $followupData = ['enquiry_id'=>$enquiry->id,
83
-                                     'followup_by'=>$request->followup_by,
84
-                                     'due_date'=>$request->due_date,
85
-                                     'status'=> \constFollowUpStatus::Pending,
86
-                                     'outcome'=>'', ];
83
+                                        'followup_by'=>$request->followup_by,
84
+                                        'due_date'=>$request->due_date,
85
+                                        'status'=> \constFollowUpStatus::Pending,
86
+                                        'outcome'=>'', ];
87 87
 
88 88
             $followup = new Followup($followupData);
89 89
             $followup->createdBy()->associate(Auth::user());
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
         $enquiriesTotal = Enquiry::indexQuery($request->sort_field, $request->sort_direction, $request->drp_start, $request->drp_end)->search('"'.$request->input('search').'"')->get();
24 24
         $count = $enquiriesTotal->count();
25 25
 
26
-        if (! $request->has('drp_start') or ! $request->has('drp_end')) {
26
+        if (!$request->has('drp_start') or !$request->has('drp_end')) {
27 27
             $drp_placeholder = 'Select daterange filter';
28 28
         } else {
29 29
             $drp_placeholder = $request->drp_start.' - '.$request->drp_end;
Please login to merge, or discard this patch.
app/Http/Controllers/SubscriptionsController.php 2 patches
Indentation   +42 added lines, -42 removed lines patch added patch discarded remove patch
@@ -78,10 +78,10 @@  discard block
 block discarded – undo
78 78
     {
79 79
         // For Tax calculation
80 80
         JavaScript::put([
81
-          'taxes' => \Utilities::getSetting('taxes'),
82
-          'gymieToday' => Carbon::today()->format('Y-m-d'),
83
-          'servicesCount' => Service::count(),
84
-      ]);
81
+            'taxes' => \Utilities::getSetting('taxes'),
82
+            'gymieToday' => Carbon::today()->format('Y-m-d'),
83
+            'servicesCount' => Service::count(),
84
+        ]);
85 85
 
86 86
         //Get Numbering mode
87 87
         $invoice_number_mode = \Utilities::getSetting('invoice_number_mode');
@@ -123,16 +123,16 @@  discard block
 block discarded – undo
123 123
 
124 124
             // Storing Invoice
125 125
             $invoiceData = ['invoice_number'=> $request->invoice_number,
126
-                                     'member_id'=> $request->member_id,
127
-                                     'total'=> $invoice_total,
128
-                                     'status'=> $paymentStatus,
129
-                                     'pending_amount'=> $pending,
130
-                                     'discount_amount'=> $request->discount_amount,
131
-                                     'discount_percent'=> $request->discount_percent,
132
-                                     'discount_note'=> $request->discount_note,
133
-                                     'tax'=> $request->taxes_amount,
134
-                                     'additional_fees'=> $request->additional_fees,
135
-                                     'note'=>' ', ];
126
+                                        'member_id'=> $request->member_id,
127
+                                        'total'=> $invoice_total,
128
+                                        'status'=> $paymentStatus,
129
+                                        'pending_amount'=> $pending,
130
+                                        'discount_amount'=> $request->discount_amount,
131
+                                        'discount_percent'=> $request->discount_percent,
132
+                                        'discount_note'=> $request->discount_note,
133
+                                        'tax'=> $request->taxes_amount,
134
+                                        'additional_fees'=> $request->additional_fees,
135
+                                        'note'=>' ', ];
136 136
 
137 137
             $invoice = new Invoice($invoiceData);
138 138
             $invoice->createdBy()->associate(Auth::user());
@@ -156,8 +156,8 @@  discard block
 block discarded – undo
156 156
 
157 157
                 //Adding subscription to invoice(Invoice Details)
158 158
                 $detailsData = ['invoice_id'=> $invoice->id,
159
-                                       'plan_id'=> $plan['id'],
160
-                                       'item_amount'=> $plan['price'], ];
159
+                                        'plan_id'=> $plan['id'],
160
+                                        'item_amount'=> $plan['price'], ];
161 161
 
162 162
                 $invoice_details = new Invoice_detail($detailsData);
163 163
                 $invoice_details->createdBy()->associate(Auth::user());
@@ -167,9 +167,9 @@  discard block
 block discarded – undo
167 167
 
168 168
             //Payment Details
169 169
             $paymentData = ['invoice_id'=> $invoice->id,
170
-                                   'payment_amount'=> $request->payment_amount,
171
-                                   'mode'=> $request->mode,
172
-                                   'note'=> ' ', ];
170
+                                    'payment_amount'=> $request->payment_amount,
171
+                                    'mode'=> $request->mode,
172
+                                    'note'=> ' ', ];
173 173
 
174 174
             $payment_details = new Payment_detail($paymentData);
175 175
             $payment_details->createdBy()->associate(Auth::user());
@@ -281,10 +281,10 @@  discard block
 block discarded – undo
281 281
         $gymieDiff = $subscription->end_date->addDays($diff);
282 282
 
283 283
         JavaScript::put([
284
-          'gymieToday' => Carbon::today()->format('Y-m-d'),
285
-          'gymieEndDate' => $subscription->end_date->format('Y-m-d'),
286
-          'gymieDiff' => $gymieDiff->format('Y-m-d'),
287
-      ]);
284
+            'gymieToday' => Carbon::today()->format('Y-m-d'),
285
+            'gymieEndDate' => $subscription->end_date->format('Y-m-d'),
286
+            'gymieDiff' => $gymieDiff->format('Y-m-d'),
287
+        ]);
288 288
 
289 289
         return view('subscriptions.edit', compact('subscription'));
290 290
     }
@@ -390,14 +390,14 @@  discard block
 block discarded – undo
390 390
         $subscription = Subscription::findOrFail($id);
391 391
 
392 392
         $already_paid = Payment_detail::leftJoin('trn_cheque_details', 'trn_payment_details.id', '=', 'trn_cheque_details.payment_id')
393
-                                     ->whereRaw("trn_payment_details.invoice_id = $subscription->invoice_id AND (trn_cheque_details.`status` = 2 or trn_cheque_details.`status` IS NULL)")
394
-                                     ->sum('trn_payment_details.payment_amount');
393
+                                        ->whereRaw("trn_payment_details.invoice_id = $subscription->invoice_id AND (trn_cheque_details.`status` = 2 or trn_cheque_details.`status` IS NULL)")
394
+                                        ->sum('trn_payment_details.payment_amount');
395 395
 
396 396
         JavaScript::put([
397
-          'taxes' => \Utilities::getSetting('taxes'),
398
-          'gymieToday' => Carbon::today()->format('Y-m-d'),
399
-          'servicesCount' => Service::count(),
400
-      ]);
397
+            'taxes' => \Utilities::getSetting('taxes'),
398
+            'gymieToday' => Carbon::today()->format('Y-m-d'),
399
+            'servicesCount' => Service::count(),
400
+        ]);
401 401
 
402 402
         return view('subscriptions.change', compact('subscription', 'already_paid'));
403 403
     }
@@ -427,15 +427,15 @@  discard block
 block discarded – undo
427 427
             }
428 428
 
429 429
             Invoice::where('id', $subscription->invoice_id)->update(['invoice_number'=> $request->invoice_number,
430
-                                                               'total'=> $invoice_total,
431
-                                                               'status'=> $paymentStatus,
432
-                                                               'pending_amount'=> $pending,
433
-                                                               'discount_amount'=> $request->discount_amount,
434
-                                                               'discount_percent'=> $request->discount_percent,
435
-                                                               'discount_note'=> $request->discount_note,
436
-                                                               'tax'=> $request->taxes_amount,
437
-                                                               'additional_fees'=> $request->additional_fees,
438
-                                                               'note'=>' ', ]);
430
+                                                                'total'=> $invoice_total,
431
+                                                                'status'=> $paymentStatus,
432
+                                                                'pending_amount'=> $pending,
433
+                                                                'discount_amount'=> $request->discount_amount,
434
+                                                                'discount_percent'=> $request->discount_percent,
435
+                                                                'discount_note'=> $request->discount_note,
436
+                                                                'tax'=> $request->taxes_amount,
437
+                                                                'additional_fees'=> $request->additional_fees,
438
+                                                                'note'=>' ', ]);
439 439
 
440 440
             foreach ($request->plan as $plan) {
441 441
                 $subscription->update(['plan_id'=> $plan['id'],
@@ -447,14 +447,14 @@  discard block
 block discarded – undo
447 447
                 //Adding subscription to invoice(Invoice Details)
448 448
 
449 449
                 Invoice_detail::where('invoice_id', $subscription->invoice_id)->update(['plan_id'=> $plan['id'],
450
-                                                                                         'item_amount'=> $plan['price'], ]);
450
+                                                                                            'item_amount'=> $plan['price'], ]);
451 451
             }
452 452
 
453 453
             //Payment Details
454 454
             $paymentData = ['invoice_id'=> $subscription->invoice_id,
455
-                                   'payment_amount'=> $request->payment_amount,
456
-                                   'mode'=> $request->mode,
457
-                                   'note'=> ' ', ];
455
+                                    'payment_amount'=> $request->payment_amount,
456
+                                    'mode'=> $request->mode,
457
+                                    'note'=> ' ', ];
458 458
 
459 459
             $payment_details = new Payment_detail($paymentData);
460 460
             $payment_details->createdBy()->associate(Auth::user());
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
         $subscriptionTotal = Subscription::indexQuery($request->sort_field, $request->sort_direction, $request->drp_start, $request->drp_end, $request->plan_name)->search('"'.$request->input('search').'"')->get();
30 30
         $count = $subscriptionTotal->count();
31 31
 
32
-        if (! $request->has('drp_start') or ! $request->has('drp_end')) {
32
+        if (!$request->has('drp_start') or !$request->has('drp_end')) {
33 33
             $drp_placeholder = 'Select daterange filter';
34 34
         } else {
35 35
             $drp_placeholder = $request->drp_start.' - '.$request->drp_end;
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
         $expiringTotal = Subscription::expiring($request->sort_field, $request->sort_direction, $request->drp_start, $request->drp_end)->search('"'.$request->input('search').'"')->get();
47 47
         $count = $expiringTotal->count();
48 48
 
49
-        if (! $request->has('drp_start') or ! $request->has('drp_end')) {
49
+        if (!$request->has('drp_start') or !$request->has('drp_end')) {
50 50
             $drp_placeholder = 'Select daterange filter';
51 51
         } else {
52 52
             $drp_placeholder = $request->drp_start.' - '.$request->drp_end;
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
         $allExpiredTotal = Subscription::expired($request->sort_field, $request->sort_direction, $request->drp_start, $request->drp_end)->search('"'.$request->input('search').'"')->get();
64 64
         $count = $allExpiredTotal->count();
65 65
 
66
-        if (! $request->has('drp_start') or ! $request->has('drp_end')) {
66
+        if (!$request->has('drp_start') or !$request->has('drp_end')) {
67 67
             $drp_placeholder = 'Select daterange filter';
68 68
         } else {
69 69
             $drp_placeholder = $request->drp_start.' - '.$request->drp_end;
Please login to merge, or discard this patch.
app/Http/Controllers/MembersController.php 2 patches
Indentation   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -144,8 +144,8 @@  discard block
 block discarded – undo
144 144
     {
145 145
         // Member Model Validation
146 146
         $this->validate($request, ['email' => 'unique:mst_members,email',
147
-                                   'contact' => 'unique:mst_members,contact',
148
-                                   'member_code' => 'unique:mst_members,member_code', ]);
147
+                                    'contact' => 'unique:mst_members,contact',
148
+                                    'member_code' => 'unique:mst_members,member_code', ]);
149 149
 
150 150
         // Start Transaction
151 151
         DB::beginTransaction();
@@ -202,16 +202,16 @@  discard block
 block discarded – undo
202 202
 
203 203
             // Storing Invoice
204 204
             $invoiceData = ['invoice_number'=> $request->invoice_number,
205
-                                     'member_id'=> $member->id,
206
-                                     'total'=> $invoice_total,
207
-                                     'status'=> $paymentStatus,
208
-                                     'pending_amount'=> $pending,
209
-                                     'discount_amount'=> $request->discount_amount,
210
-                                     'discount_percent'=> $request->discount_percent,
211
-                                     'discount_note'=> $request->discount_note,
212
-                                     'tax'=> $request->taxes_amount,
213
-                                     'additional_fees'=> $request->additional_fees,
214
-                                     'note'=>' ', ];
205
+                                        'member_id'=> $member->id,
206
+                                        'total'=> $invoice_total,
207
+                                        'status'=> $paymentStatus,
208
+                                        'pending_amount'=> $pending,
209
+                                        'discount_amount'=> $request->discount_amount,
210
+                                        'discount_percent'=> $request->discount_percent,
211
+                                        'discount_note'=> $request->discount_note,
212
+                                        'tax'=> $request->taxes_amount,
213
+                                        'additional_fees'=> $request->additional_fees,
214
+                                        'note'=>' ', ];
215 215
 
216 216
             $invoice = new Invoice($invoiceData);
217 217
             $invoice->createdBy()->associate(Auth::user());
@@ -235,8 +235,8 @@  discard block
 block discarded – undo
235 235
 
236 236
                 //Adding subscription to invoice(Invoice Details)
237 237
                 $detailsData = ['invoice_id'=> $invoice->id,
238
-                                       'plan_id'=> $plan['id'],
239
-                                       'item_amount'=> $plan['price'], ];
238
+                                        'plan_id'=> $plan['id'],
239
+                                        'item_amount'=> $plan['price'], ];
240 240
 
241 241
                 $invoice_details = new Invoice_detail($detailsData);
242 242
                 $invoice_details->createdBy()->associate(Auth::user());
@@ -246,9 +246,9 @@  discard block
 block discarded – undo
246 246
 
247 247
             // Store Payment Details
248 248
             $paymentData = ['invoice_id'=> $invoice->id,
249
-                                     'payment_amount'=> $request->payment_amount,
250
-                                     'mode'=> $request->mode,
251
-                                     'note'=> ' ', ];
249
+                                        'payment_amount'=> $request->payment_amount,
250
+                                        'mode'=> $request->mode,
251
+                                        'note'=> ' ', ];
252 252
 
253 253
             $payment_details = new Payment_detail($paymentData);
254 254
             $payment_details->createdBy()->associate(Auth::user());
@@ -258,9 +258,9 @@  discard block
 block discarded – undo
258 258
             if ($request->mode == 0) {
259 259
                 // Store Cheque Details
260 260
                 $chequeData = ['payment_id'=> $payment_details->id,
261
-                                      'number'=> $request->number,
262
-                                      'date'=> $request->date,
263
-                                      'status'=> \constChequeStatus::Recieved, ];
261
+                                        'number'=> $request->number,
262
+                                        'date'=> $request->date,
263
+                                        'status'=> \constChequeStatus::Recieved, ];
264 264
 
265 265
                 $cheque_details = new Cheque_detail($chequeData);
266 266
                 $cheque_details->createdBy()->associate(Auth::user());
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
         $memberTotal = Member::indexQuery($request->sort_field, $request->sort_direction, $request->drp_start, $request->drp_end)->search('"'.$request->input('search').'"')->get();
37 37
         $count = $memberTotal->count();
38 38
 
39
-        if (! $request->has('drp_start') or ! $request->has('drp_end')) {
39
+        if (!$request->has('drp_start') or !$request->has('drp_end')) {
40 40
             $drp_placeholder = 'Select daterange filter';
41 41
         } else {
42 42
             $drp_placeholder = $request->drp_start.' - '.$request->drp_end;
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
         $Totalmembers = Member::active($request->sort_field, $request->sort_direction, $request->drp_start, $request->drp_end)->search('"'.$request->input('search').'"')->get();
54 54
         $count = $Totalmembers->count();
55 55
 
56
-        if (! $request->has('drp_start') or ! $request->has('drp_end')) {
56
+        if (!$request->has('drp_start') or !$request->has('drp_end')) {
57 57
             $drp_placeholder = 'Select daterange filter';
58 58
         } else {
59 59
             $drp_placeholder = $request->drp_start.' - '.$request->drp_end;
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
         $Totalmembers = Member::inactive($request->sort_field, $request->sort_direction, $request->drp_start, $request->drp_end)->search('"'.$request->input('search').'"')->get();
71 71
         $count = $Totalmembers->count();
72 72
 
73
-        if (! $request->has('drp_start') or ! $request->has('drp_end')) {
73
+        if (!$request->has('drp_start') or !$request->has('drp_end')) {
74 74
             $drp_placeholder = 'Select daterange filter';
75 75
         } else {
76 76
             $drp_placeholder = $request->drp_start.' - '.$request->drp_end;
Please login to merge, or discard this patch.
app/Http/Controllers/PlansController.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@
 block discarded – undo
59 59
     {
60 60
         //Model Validation
61 61
         $this->validate($request, ['plan_code' => 'unique:mst_plans,plan_code',
62
-                                   'plan_name' => 'unique:mst_plans,plan_name', ]);
62
+                                    'plan_name' => 'unique:mst_plans,plan_name', ]);
63 63
 
64 64
         $plan = new Plan($request->all());
65 65
 
Please login to merge, or discard this patch.
app/Http/Controllers/AclController.php 2 patches
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -36,13 +36,13 @@  discard block
 block discarded – undo
36 36
     public function storeUser(Request $request)
37 37
     {
38 38
         $this->validate($request, ['name' => 'required|max:255',
39
-                                   'email' => 'required|email|max:255|unique:mst_users',
40
-                                   'password' => 'required|confirmed|min:6', ]);
39
+                                    'email' => 'required|email|max:255|unique:mst_users',
40
+                                    'password' => 'required|confirmed|min:6', ]);
41 41
 
42 42
         $user = User::create(['name' => $request['name'],
43 43
                                 'email' => $request['email'],
44 44
                                 'password' => bcrypt($request['password']),
45
-                              'status'=> $request->status, ]);
45
+                                'status'=> $request->status, ]);
46 46
 
47 47
         $user->save();
48 48
 
@@ -142,9 +142,9 @@  discard block
 block discarded – undo
142 142
         DB::beginTransaction();
143 143
         try {
144 144
             $role = Role::create(['name' => $request->name,
145
-                                  'display_name' => $request->display_name,
146
-                                  'description' => $request->description,
147
-                                 ]);
145
+                                    'display_name' => $request->display_name,
146
+                                    'description' => $request->description,
147
+                                    ]);
148 148
 
149 149
             if ($request->has('permissions')) {
150 150
                 $role->attachPermissions($request->permissions);
@@ -179,9 +179,9 @@  discard block
 block discarded – undo
179 179
             $role = Role::findOrFail($id);
180 180
 
181 181
             $role->update(['name' => $request->name,
182
-                           'display_name' => $request->display_name,
183
-                           'description' => $request->description,
184
-                          ]);
182
+                            'display_name' => $request->display_name,
183
+                            'description' => $request->description,
184
+                            ]);
185 185
 
186 186
             //Updating permissions for the role
187 187
             $DBpermissions = Permission_role::where('role_id', $id)->select('permission_id')->lists('permission_id');
@@ -252,7 +252,7 @@  discard block
 block discarded – undo
252 252
                             'display_name' => $request->display_name,
253 253
                             'description' => $request->description,
254 254
                             'group_key' => $request->group_key,
255
-                           ]);
255
+                            ]);
256 256
 
257 257
         flash()->success('Permission was successfully created');
258 258
 
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -73,7 +73,7 @@
 block discarded – undo
73 73
         $user->name = $request->name;
74 74
         $user->email = $request->email;
75 75
 
76
-        if (! empty($request->password)) {
76
+        if (!empty($request->password)) {
77 77
             $this->validate($request, ['password' => 'required|string|min:6|confirmed']);
78 78
             $user->password = bcrypt($request->password);
79 79
         }
Please login to merge, or discard this patch.
app/Http/Controllers/ExpensesController.php 2 patches
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -66,11 +66,11 @@
 block discarded – undo
66 66
     public function store(Request $request)
67 67
     {
68 68
         $expenseData = ['name' => $request->name,
69
-                             'category_id' => $request->category_id,
70
-                             'due_date' => $request->due_date,
71
-                             'repeat' => $request->repeat,
72
-                             'note' => $request->note,
73
-                             'amount' => $request->amount, ];
69
+                                'category_id' => $request->category_id,
70
+                                'due_date' => $request->due_date,
71
+                                'repeat' => $request->repeat,
72
+                                'note' => $request->note,
73
+                                'amount' => $request->amount, ];
74 74
 
75 75
         $expense = new Expense($expenseData);
76 76
         $expense->createdBy()->associate(Auth::user());
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
         $expenseTotal = Expense::indexQuery($request->category_id, $request->sort_field, $request->sort_direction, $request->drp_start, $request->drp_end)->search('"'.$request->input('search').'"')->get();
25 25
         $count = $expenseTotal->sum('amount');
26 26
 
27
-        if (! $request->has('drp_start') or ! $request->has('drp_end')) {
27
+        if (!$request->has('drp_start') or !$request->has('drp_end')) {
28 28
             $drp_placeholder = 'Select daterange filter';
29 29
         } else {
30 30
             $drp_placeholder = $request->drp_start.' - '.$request->drp_end;
Please login to merge, or discard this patch.
app/Http/Middleware/Owner.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
      */
17 17
     public function handle($request, Closure $next, $permissions)
18 18
     {
19
-        if (! Auth::User()->can($permissions)) {
19
+        if (!Auth::User()->can($permissions)) {
20 20
             if (Auth::User()->id != $request->route('user_id')) {
21 21
                 abort(403);
22 22
             }
Please login to merge, or discard this patch.
app/Setting.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
     protected $fillable = [
12 12
             'key',
13 13
             'value',
14
-     ];
14
+        ];
15 15
 
16 16
     const CREATED_AT = null;
17 17
 
Please login to merge, or discard this patch.