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(),