From 136df9418f871e23acb10557e5da8b2da0d33c4c Mon Sep 17 00:00:00 2001 From: Daniel Meltzer Date: Sat, 23 May 2020 12:19:44 -0400 Subject: [PATCH] Deadcode-- --- app/Http/Controllers/SuppliersController.php | 2 +- app/Http/Controllers/Users/UsersController.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Http/Controllers/SuppliersController.php b/app/Http/Controllers/SuppliersController.php index 20d6beac37..d82dca4d8d 100755 --- a/app/Http/Controllers/SuppliersController.php +++ b/app/Http/Controllers/SuppliersController.php @@ -106,7 +106,7 @@ class SuppliersController extends Controller * @return \Illuminate\Http\RedirectResponse * @throws \Illuminate\Auth\Access\AuthorizationException */ - public function update($supplierId = null, ImageUploadRequest $request) + public function update($supplierId, ImageUploadRequest $request) { $this->authorize('update', Supplier::class); // Check if the supplier exists diff --git a/app/Http/Controllers/Users/UsersController.php b/app/Http/Controllers/Users/UsersController.php index 3c10102560..89f5b51d6f 100755 --- a/app/Http/Controllers/Users/UsersController.php +++ b/app/Http/Controllers/Users/UsersController.php @@ -382,7 +382,7 @@ class UsersController extends Controller { $this->authorize('update', User::class); // Get user information - if (!$user = User::onlyTrashed()->find($id)) { + if (!User::onlyTrashed()->find($id)) { return redirect()->route('users.index')->with('error', trans('admin/users/messages.user_not_found')); }