From f80de9e65ee8afacb9638ecc8aefa9cbd8052d21 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20FRANCE?= Date: Tue, 16 Oct 2018 21:49:26 +0200 Subject: [PATCH] fix syntax error and phpcs --- htdocs/api/class/api_setup.class.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/htdocs/api/class/api_setup.class.php b/htdocs/api/class/api_setup.class.php index fff8d7df7aa..3ec618dc92a 100644 --- a/htdocs/api/class/api_setup.class.php +++ b/htdocs/api/class/api_setup.class.php @@ -3,6 +3,7 @@ * Copyright (C) 2016 Laurent Destailleur * Copyright (C) 2017 Regis Houssin * Copyright (C) 2017 Neil Orley + * Copyright (C) 2018 Frédéric France * * * This program is free software; you can redistribute it and/or modify @@ -580,9 +581,7 @@ class Setup extends DolibarrApi return $list; } - -if (! empty($conf->ticket->enabled)) -{ + /** * Get the list of tickets categories. * @@ -762,7 +761,6 @@ if (! empty($conf->ticket->enabled)) return $list; } -} /** * Do a test of integrity for files and setup.