From 82bbe5b389e8373d27b16d721f7effcb36c0d6ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Beganovi=C4=87?= Date: Tue, 8 Dec 2020 15:04:45 +0100 Subject: [PATCH] php-cs-fixer --- app/Http/Controllers/InvoiceController.php | 2 +- app/Http/Controllers/SetupController.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Http/Controllers/InvoiceController.php b/app/Http/Controllers/InvoiceController.php index 891054af3033..6742dc7068e9 100644 --- a/app/Http/Controllers/InvoiceController.php +++ b/app/Http/Controllers/InvoiceController.php @@ -847,7 +847,7 @@ class InvoiceController extends BaseController $file = base_path("public/storage/{$file_path}"); return response()->download($file, basename($file)); - } catch(\Exception $e) { + } catch (\Exception $e) { return response(['message' => 'Oops, something went wrong. Make sure you have symlink to storage/ in public/ directory.'], 500); } } diff --git a/app/Http/Controllers/SetupController.php b/app/Http/Controllers/SetupController.php index 26f92fbe749e..2b136d717d28 100644 --- a/app/Http/Controllers/SetupController.php +++ b/app/Http/Controllers/SetupController.php @@ -73,7 +73,7 @@ class SetupController extends Controller if ($db['success'] == false) { throw new \Exception($db['message']); } - } catch(\Exception $e) { + } catch (\Exception $e) { return response([ 'message' => 'Oops, connection to database was not successful.', 'error' => $e->getMessage(),