Passed
Push — dev6 ( 98cfbc...9c7079 )
by Ron
19:23
created
app/Exceptions/Handler.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
34 34
      */
35 35
     public function register()
36 36
     {
37
-        $this->reportable(function (Throwable $e) {
37
+        $this->reportable(function(Throwable $e) {
38 38
             //
39 39
         });
40 40
     }
Please login to merge, or discard this patch.
app/Http/Middleware/Authenticate.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
14 14
      */
15 15
     protected function redirectTo($request)
16 16
     {
17
-        if (! $request->expectsJson()) {
17
+        if(!$request->expectsJson()) {
18 18
             return route('login.index');
19 19
         }
20 20
     }
Please login to merge, or discard this patch.
app/Http/Middleware/RedirectIfAuthenticated.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -21,8 +21,8 @@
 block discarded – undo
21 21
     {
22 22
         $guards = empty($guards) ? [null] : $guards;
23 23
 
24
-        foreach ($guards as $guard) {
25
-            if (Auth::guard($guard)->check()) {
24
+        foreach($guards as $guard) {
25
+            if(Auth::guard($guard)->check()) {
26 26
                 return redirect(RouteServiceProvider::HOME);
27 27
             }
28 28
         }
Please login to merge, or discard this patch.
app/Http/Controllers/Customers/CustomerEquipmentController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
         {
26 26
             CustomerEquipmentData::create([
27 27
                 'cust_equip_id' => $newEquip->cust_equip_id,
28
-                'field_id'      => DataField::where('equip_id', $request->equip_id)->where('type_id', $field['type_id'])->first()->field_id,//  ???
28
+                'field_id'      => DataField::where('equip_id', $request->equip_id)->where('type_id', $field['type_id'])->first()->field_id, //  ???
29 29
                 'value'         => isset($field['value']) ? $field['value'] : null,
30 30
             ]);
31 31
         }
Please login to merge, or discard this patch.
app/Providers/RouteServiceProvider.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
     {
20 20
         $this->configureRateLimiting();
21 21
 
22
-        $this->routes(function ()
22
+        $this->routes(function()
23 23
         {
24 24
             //  Basic Login and Logout Routes
25 25
             Route::middleware('web')
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
      */
39 39
     protected function configureRateLimiting()
40 40
     {
41
-        RateLimiter::for('api', function (Request $request) {
41
+        RateLimiter::for('api', function(Request $request) {
42 42
             return Limit::perMinute(60)->by(optional($request->user())->id ?: $request->ip());
43 43
         });
44 44
     }
Please login to merge, or discard this patch.
app/Http/Controllers/Customers/CustomerController.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
         $newCust      = Customer::create($cust);
55 55
 
56 56
         event(new NewCustomerCreated($newCust));
57
-        return redirect(route('customers.show',$newCust->slug))->with(['message' => 'New Customer Created', 'type' => 'success']);
57
+        return redirect(route('customers.show', $newCust->slug))->with(['message' => 'New Customer Created', 'type' => 'success']);
58 58
     }
59 59
 
60 60
     /**
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
                         ->with('ParentFile.FileUpload')
85 85
                         ->firstOrFail();
86 86
         //  Determine if the customer is bookmarked by the user
87
-        $isFav    = UserCustomerBookmark::where('user_id', Auth::user()->user_id)
87
+        $isFav = UserCustomerBookmark::where('user_id', Auth::user()->user_id)
88 88
                         ->where('cust_id', $customer->cust_id)
89 89
                         ->count();
90 90
 
@@ -94,19 +94,19 @@  discard block
 block discarded – undo
94 94
             // 'file_types'     => CustomerFileType::all(),
95 95
             //  User Permissions for customers
96 96
             'user_data' => [
97
-                'fav'        => $isFav,                                                  //  Customer is bookmarked by the user
98
-                'edit'       => Auth::user()->can('update', $customer),                  //  User is allowed to edit the customers basic details
99
-                'manage'     => Auth::user()->can('manage', $customer),                  //  User can recover deleted items
100
-                'deactivate' => Auth::user()->can('delete', $customer),                  //  User can deactivate the customer profile
97
+                'fav'        => $isFav, //  Customer is bookmarked by the user
98
+                'edit'       => Auth::user()->can('update', $customer), //  User is allowed to edit the customers basic details
99
+                'manage'     => Auth::user()->can('manage', $customer), //  User can recover deleted items
100
+                'deactivate' => Auth::user()->can('delete', $customer), //  User can deactivate the customer profile
101 101
                 'equipment'  => [
102
-                    'create' => Auth::user()->can('create', CustomerEquipment::class),   //  If user can add equipment
103
-                    'update' => Auth::user()->can('update', CustomerEquipment::class),   //  If user can edit equipment
104
-                    'delete' => Auth::user()->can('delete', CustomerEquipment::class),   //  If user can delete eqipment
102
+                    'create' => Auth::user()->can('create', CustomerEquipment::class), //  If user can add equipment
103
+                    'update' => Auth::user()->can('update', CustomerEquipment::class), //  If user can edit equipment
104
+                    'delete' => Auth::user()->can('delete', CustomerEquipment::class), //  If user can delete eqipment
105 105
                 ],
106 106
                 'contacts'   => [
107
-                    'create' => Auth::user()->can('create', CustomerContact::class),     //  If user can add contact
108
-                    'update' => Auth::user()->can('update', CustomerContact::class),     //  If user can edit contact
109
-                    'delete' => Auth::user()->can('delete', CustomerContact::class),     //  If user can delete contact
107
+                    'create' => Auth::user()->can('create', CustomerContact::class), //  If user can add contact
108
+                    'update' => Auth::user()->can('update', CustomerContact::class), //  If user can edit contact
109
+                    'delete' => Auth::user()->can('delete', CustomerContact::class), //  If user can delete contact
110 110
                 ],
111 111
             //     'notes'      => [
112 112
             //         'create' => Auth::user()->can('create', CustomerNote::class),        //  If user can add note
Please login to merge, or discard this patch.