diff --git a/app/controllers/admin/AssetsController.php b/app/controllers/admin/AssetsController.php index e52fc91633..97e1653c77 100755 --- a/app/controllers/admin/AssetsController.php +++ b/app/controllers/admin/AssetsController.php @@ -398,6 +398,7 @@ class AssetsController extends AdminController // Redirect to the asset management page with error + /** @noinspection PhpUnreachableStatementInspection Known to be unreachable but kept following discussion: https://github.com/snipe/snipe-it/pull/1423 */ return Redirect::to("hardware/$assetId/edit")->with('error', Lang::get('admin/hardware/message.update.error')); } diff --git a/app/controllers/admin/LocationsController.php b/app/controllers/admin/LocationsController.php index 06219e988a..47ad5aea71 100755 --- a/app/controllers/admin/LocationsController.php +++ b/app/controllers/admin/LocationsController.php @@ -143,6 +143,7 @@ class LocationsController extends AdminController } // Redirect to the location create page + /** @noinspection PhpUnreachableStatementInspection Known to be unreachable but kept following discussion: https://github.com/snipe/snipe-it/pull/1423 */ return Redirect::to('admin/settings/locations/create')->with('error', Lang::get('admin/locations/message.create.error')); } diff --git a/app/controllers/admin/ModelsController.php b/app/controllers/admin/ModelsController.php index a5d90365cf..c30f535957 100755 --- a/app/controllers/admin/ModelsController.php +++ b/app/controllers/admin/ModelsController.php @@ -82,7 +82,7 @@ class ModelsController extends AdminController if ($validator->fails()) { // The given data did not pass validation - return Redirect::back()->withInput()->with('error', Lang::get('admin/models/message.create.duplicate_set'));; + return Redirect::back()->withInput()->with('error', Lang::get('admin/models/message.create.duplicate_set')); } diff --git a/app/controllers/admin/UsersController.php b/app/controllers/admin/UsersController.php index fc9fec11c8..646dd9ffd5 100755 --- a/app/controllers/admin/UsersController.php +++ b/app/controllers/admin/UsersController.php @@ -587,6 +587,7 @@ class UsersController extends AdminController { return Redirect::route('users')->with('error', 'Bulk delete is not enabled in this installation'); } + /** @noinspection PhpUnreachableStatementInspection Known to be unreachable but kept following discussion: https://github.com/snipe/snipe-it/pull/1423 */ return Redirect::route('users')->with('error', 'An error has occurred'); } }