@@ -37,7 +37,7 @@ discard block |
||
| 37 | 37 | $strErrorDesc = $responseData = $strErrorHeader = ''; |
| 38 | 38 | |
| 39 | 39 | if (strtoupper($requestMethod) === 'POST') { |
| 40 | - require API_ROOT_PATH . "/Model/AuthModel.php"; |
|
| 40 | + require API_ROOT_PATH."/Model/AuthModel.php"; |
|
| 41 | 41 | try { |
| 42 | 42 | $authModel = new AuthModel(); |
| 43 | 43 | |
@@ -59,10 +59,10 @@ discard block |
||
| 59 | 59 | if (array_key_exists("token", $arrUser)) { |
| 60 | 60 | $responseData = json_encode($arrUser); |
| 61 | 61 | } else { |
| 62 | - $strErrorDesc = $arrUser['error'] . " (" . $arrUser['info'] . ")"; |
|
| 62 | + $strErrorDesc = $arrUser['error']." (".$arrUser['info'].")"; |
|
| 63 | 63 | $strErrorHeader = 'HTTP/1.1 401 Unauthorized'; |
| 64 | 64 | } |
| 65 | - } catch (Error|Exception $e) { |
|
| 65 | + } catch (Error | Exception $e) { |
|
| 66 | 66 | $strErrorDesc = $e->getMessage().' Something went wrong! Please contact support.2'; |
| 67 | 67 | $strErrorHeader = 'HTTP/1.1 500 Internal Server Error'; |
| 68 | 68 | } |