Passed
Push — dev6 ( 3fa4bc...200ba5 )
by Ron
18:44
created
app/Http/Controllers/Customers/CustomerController.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
         $newCust      = Customer::create($cust);
50 50
 
51 51
         event(new NewCustomerCreated($newCust));
52
-        return redirect(route('customers.show',$newCust->slug))->with(['message' => 'New Customer Created', 'type' => 'success']);
52
+        return redirect(route('customers.show', $newCust->slug))->with(['message' => 'New Customer Created', 'type' => 'success']);
53 53
     }
54 54
 
55 55
     /**
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
                         ->with('ParentFile.FileUpload')
80 80
                         ->firstOrFail();
81 81
         //  Determine if the customer is bookmarked by the user
82
-        $isFav    = UserCustomerBookmark::where('user_id', Auth::user()->user_id)
82
+        $isFav = UserCustomerBookmark::where('user_id', Auth::user()->user_id)
83 83
                         ->where('cust_id', $customer->cust_id)
84 84
                         ->count();
85 85
 
@@ -89,10 +89,10 @@  discard block
 block discarded – undo
89 89
             // 'file_types'     => CustomerFileType::all(),
90 90
             //  User Permissions for customers
91 91
             'user_data' => [
92
-                'fav'        => $isFav,                                                  //  Customer is bookmarked by the user
93
-                'edit'       => Auth::user()->can('update', $customer),                  //  User is allowed to edit the customers basic details
94
-                'manage'     => Auth::user()->can('manage', $customer),                  //  User can recover deleted items
95
-                'deactivate' => Auth::user()->can('delete', $customer),                  //  User can deactivate the customer profile
92
+                'fav'        => $isFav, //  Customer is bookmarked by the user
93
+                'edit'       => Auth::user()->can('update', $customer), //  User is allowed to edit the customers basic details
94
+                'manage'     => Auth::user()->can('manage', $customer), //  User can recover deleted items
95
+                'deactivate' => Auth::user()->can('delete', $customer), //  User can deactivate the customer profile
96 96
             //     'equipment'  => [
97 97
             //         'create' => Auth::user()->can('create', CustomerEquipment::class),   //  If user can add equipment
98 98
             //         'update' => Auth::user()->can('update', CustomerEquipment::class),   //  If user can edit equipment
Please login to merge, or discard this patch.