Passed
Push — dev6 ( 126d7e...94112f )
by Ron
08:55
created
app/Models/UserCustomerRecent.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
 
12 12
     protected $guarded = ['id', 'updated_at', 'created_at'];
13 13
     protected $hidden  = ['id', 'user_id', 'created_at', 'Customer'];
14
-    protected $appends      = ['name', 'slug'];
14
+    protected $appends = ['name', 'slug'];
15 15
 
16 16
     public function Customer()
17 17
     {
Please login to merge, or discard this patch.
app/Http/Controllers/Customers/CustomerController.php 1 patch
Spacing   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
         $newCust      = Customer::create($cust);
63 63
 
64 64
         event(new NewCustomerCreated($newCust));
65
-        return redirect(route('customers.show',$newCust->slug))->with(['message' => 'New Customer Created', 'type' => 'success']);
65
+        return redirect(route('customers.show', $newCust->slug))->with(['message' => 'New Customer Created', 'type' => 'success']);
66 66
     }
67 67
 
68 68
     /**
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
         }
102 102
 
103 103
         //  Determine if the customer is bookmarked by the user
104
-        $isFav    = UserCustomerBookmark::where('user_id', Auth::user()->user_id)
104
+        $isFav = UserCustomerBookmark::where('user_id', Auth::user()->user_id)
105 105
                         ->where('cust_id', $customer->cust_id)
106 106
                         ->count();
107 107
 
@@ -117,29 +117,29 @@  discard block
 block discarded – undo
117 117
             'file_types'     => CustomerFileType::all(),
118 118
             //  User Permissions for customers
119 119
             'user_data' => [
120
-                'fav'        => $isFav,                                                  //  Customer is bookmarked by the user
121
-                'edit'       => Auth::user()->can('update', $customer),                  //  User is allowed to edit the customers basic details
122
-                'manage'     => Auth::user()->can('manage', $customer),                  //  User can recover deleted items
123
-                'deactivate' => Auth::user()->can('delete', $customer),                  //  User can deactivate the customer profile
120
+                'fav'        => $isFav, //  Customer is bookmarked by the user
121
+                'edit'       => Auth::user()->can('update', $customer), //  User is allowed to edit the customers basic details
122
+                'manage'     => Auth::user()->can('manage', $customer), //  User can recover deleted items
123
+                'deactivate' => Auth::user()->can('delete', $customer), //  User can deactivate the customer profile
124 124
                 'equipment'  => [
125
-                    'create' => Auth::user()->can('create', CustomerEquipment::class),   //  If user can add equipment
126
-                    'update' => Auth::user()->can('update', CustomerEquipment::class),   //  If user can edit equipment
127
-                    'delete' => Auth::user()->can('delete', CustomerEquipment::class),   //  If user can delete equipment
125
+                    'create' => Auth::user()->can('create', CustomerEquipment::class), //  If user can add equipment
126
+                    'update' => Auth::user()->can('update', CustomerEquipment::class), //  If user can edit equipment
127
+                    'delete' => Auth::user()->can('delete', CustomerEquipment::class), //  If user can delete equipment
128 128
                 ],
129 129
                 'contacts'   => [
130
-                    'create' => Auth::user()->can('create', CustomerContact::class),     //  If user can add contact
131
-                    'update' => Auth::user()->can('update', CustomerContact::class),     //  If user can edit contact
132
-                    'delete' => Auth::user()->can('delete', CustomerContact::class),     //  If user can delete contact
130
+                    'create' => Auth::user()->can('create', CustomerContact::class), //  If user can add contact
131
+                    'update' => Auth::user()->can('update', CustomerContact::class), //  If user can edit contact
132
+                    'delete' => Auth::user()->can('delete', CustomerContact::class), //  If user can delete contact
133 133
                 ],
134 134
                 'notes'      => [
135
-                    'create' => Auth::user()->can('create', CustomerNote::class),        //  If user can add note
136
-                    'update' => Auth::user()->can('update', CustomerNote::class),        //  If user can edit note
137
-                    'delete' => Auth::user()->can('delete', CustomerNote::class),        //  If user can delete note
135
+                    'create' => Auth::user()->can('create', CustomerNote::class), //  If user can add note
136
+                    'update' => Auth::user()->can('update', CustomerNote::class), //  If user can edit note
137
+                    'delete' => Auth::user()->can('delete', CustomerNote::class), //  If user can delete note
138 138
                 ],
139 139
                 'files'     => [
140
-                    'create' => Auth::user()->can('create', CustomerFile::class),        //  If user can add file
141
-                    'update' => Auth::user()->can('update', CustomerFile::class),        //  If user can edit file
142
-                    'delete' => Auth::user()->can('delete', CustomerFile::class),        //  If user can delete file
140
+                    'create' => Auth::user()->can('create', CustomerFile::class), //  If user can add file
141
+                    'update' => Auth::user()->can('update', CustomerFile::class), //  If user can edit file
142
+                    'delete' => Auth::user()->can('delete', CustomerFile::class), //  If user can delete file
143 143
                 ],
144 144
             ],
145 145
         ]);
Please login to merge, or discard this patch.
app/Exceptions/Handler.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@
 block discarded – undo
72 72
                 ->toResponse($request)
73 73
                 ->setStatusCode($response->status());
74 74
         }
75
-        else if ($response->status() === 419)
75
+        else if($response->status() === 419)
76 76
         {
77 77
             return back()->with([
78 78
                 'message' => 'The page expired, please try again.',
Please login to merge, or discard this patch.