Passed
Pull Request — master (#4916)
by
unknown
06:21
created
api/Controller/Api/AuthController.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
             }
Please login to merge, or discard this patch.