PSR2 usage of else if is discouraged

This commit is contained in:
Frédéric FRANCE
2019-01-27 10:49:34 +01:00
parent a9da6a2d51
commit 6e91b3cefc
335 changed files with 1524 additions and 1526 deletions

View File

@@ -202,7 +202,7 @@ class Setup extends DolibarrApi
if ($country->fetch($id) < 0) {
throw new RestException(503, 'Error when retrieving country : '.$country->error);
}
else if ($country->fetch($id) == 0) {
elseif ($country->fetch($id) == 0) {
throw new RestException(404, 'country not found');
}