@@ -41,7 +41,7 @@ discard block |
||
41 | 41 | header("Content-type: " . $result->getType()); |
42 | 42 | echo($result->getImage()); |
43 | 43 | } |
44 | - }else{ |
|
44 | + } else{ |
|
45 | 45 | $result = array(); |
46 | 46 | $json = json_encode($result, JSON_PRETTY_PRINT); |
47 | 47 | echo($json); |
@@ -83,7 +83,7 @@ discard block |
||
83 | 83 | //echo($profile_pic->getImage()); |
84 | 84 | echo($result); |
85 | 85 | //echo('{"profilepic":"upload failed"}'); |
86 | - }else{ |
|
86 | + } else{ |
|
87 | 87 | $result = array(); |
88 | 88 | $json = json_encode($result, JSON_PRETTY_PRINT); |
89 | 89 | echo($json); |
@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | $result = JobSeekerController::getJobSeekerProfileByUserId(intval($user_id)); |
38 | 38 | $json = json_encode($result, JSON_PRETTY_PRINT); |
39 | 39 | echo($json); |
40 | - }else{ |
|
40 | + } else{ |
|
41 | 41 | $result = array(); |
42 | 42 | $json = json_encode($result, JSON_PRETTY_PRINT); |
43 | 43 | echo($json); |
@@ -90,7 +90,7 @@ discard block |
||
90 | 90 | |
91 | 91 | //$json = json_encode($result, JSON_PRETTY_PRINT); |
92 | 92 | echo($result); |
93 | - }else{ |
|
93 | + } else{ |
|
94 | 94 | $result = array(); |
95 | 95 | $json = json_encode($result, JSON_PRETTY_PRINT); |
96 | 96 | echo($json); |
@@ -52,23 +52,23 @@ |
||
52 | 52 | |
53 | 53 | echo($json); |
54 | 54 | |
55 | - }else{ |
|
55 | + } else{ |
|
56 | 56 | header('HTTP/1.0 401 Unauthorized'); |
57 | 57 | echo json_encode(array("failed"=>"Invalid token"),JSON_FORCE_OBJECT); |
58 | 58 | exit; |
59 | 59 | } |
60 | 60 | |
61 | - }else{ |
|
61 | + } else{ |
|
62 | 62 | header('HTTP/1.0 401 Unauthorized'); |
63 | 63 | echo json_encode(array("failed"=>"No user id provided"),JSON_FORCE_OBJECT); |
64 | 64 | exit; |
65 | 65 | } |
66 | - }else{ |
|
66 | + } else{ |
|
67 | 67 | header('HTTP/1.0 401 Unauthorized'); |
68 | 68 | echo json_encode(array("failed"=>'Invalid token, please reauthorize user'),JSON_FORCE_OBJECT); |
69 | 69 | exit; |
70 | 70 | } |
71 | - }else{ |
|
71 | + } else{ |
|
72 | 72 | header('HTTP/1.0 401 Unauthorized'); |
73 | 73 | echo json_encode(array("failed"=>'No authorization token provided'),JSON_FORCE_OBJECT); |
74 | 74 | exit; |
@@ -45,7 +45,7 @@ discard block |
||
45 | 45 | header("Content-type: " . $result->getMime_type()); |
46 | 46 | echo($result->getFile()); |
47 | 47 | } |
48 | - }else{ |
|
48 | + } else{ |
|
49 | 49 | $result = array(); |
50 | 50 | $json = json_encode($result, JSON_PRETTY_PRINT); |
51 | 51 | echo($json); |
@@ -94,23 +94,23 @@ discard block |
||
94 | 94 | $json = json_encode($result, JSON_PRETTY_PRINT); |
95 | 95 | |
96 | 96 | echo($json); |
97 | - }else{ |
|
97 | + } else{ |
|
98 | 98 | header('HTTP/1.0 401 Unauthorized'); |
99 | 99 | echo json_encode(array("failed"=>"Invalid token"),JSON_FORCE_OBJECT); |
100 | 100 | exit; |
101 | 101 | } |
102 | 102 | |
103 | - }else{ |
|
103 | + } else{ |
|
104 | 104 | header('HTTP/1.0 401 Unauthorized'); |
105 | 105 | echo json_encode(array("failed"=>"No manager profile id provided"),JSON_FORCE_OBJECT); |
106 | 106 | exit; |
107 | 107 | } |
108 | - }else{ |
|
108 | + } else{ |
|
109 | 109 | header('HTTP/1.0 401 Unauthorized'); |
110 | 110 | echo json_encode(array("failed"=>'Invalid token, please reauthorize user'),JSON_FORCE_OBJECT); |
111 | 111 | exit; |
112 | 112 | } |
113 | - }else{ |
|
113 | + } else{ |
|
114 | 114 | header('HTTP/1.0 401 Unauthorized'); |
115 | 115 | echo json_encode(array("failed"=>'No authorization token provided'),JSON_FORCE_OBJECT); |
116 | 116 | exit; |
@@ -120,7 +120,7 @@ discard block |
||
120 | 120 | $managerProfileId = Utils::getParameterFromRequest($requestParams,4); |
121 | 121 | |
122 | 122 | //echo('{"profilepic":"upload failed"}'); |
123 | - }else{ |
|
123 | + } else{ |
|
124 | 124 | $result = array(); |
125 | 125 | $json = json_encode($result, JSON_PRETTY_PRINT); |
126 | 126 | echo($json); |
@@ -35,7 +35,7 @@ |
||
35 | 35 | $json = json_encode($result, JSON_PRETTY_PRINT); |
36 | 36 | header("Content-length:".strlen($json)); |
37 | 37 | echo($json); |
38 | - }else{ |
|
38 | + } else{ |
|
39 | 39 | $result = array(); |
40 | 40 | $json = json_encode($result, JSON_PRETTY_PRINT); |
41 | 41 | echo($json); |
@@ -42,7 +42,7 @@ |
||
42 | 42 | |
43 | 43 | $json = json_encode($result, JSON_PRETTY_PRINT); |
44 | 44 | echo($json); |
45 | - }else{ |
|
45 | + } else{ |
|
46 | 46 | $result = array(); |
47 | 47 | $json = json_encode($result, JSON_PRETTY_PRINT); |
48 | 48 | echo($json); |
@@ -38,7 +38,7 @@ |
||
38 | 38 | $result = TeamCultureController::getTeamCultureByManagerProfileId($managerProfileId, $locale); |
39 | 39 | $json = json_encode($result, JSON_PRETTY_PRINT); |
40 | 40 | echo($json); |
41 | - }else{ |
|
41 | + } else{ |
|
42 | 42 | $result = array(); |
43 | 43 | $json = json_encode($result, JSON_PRETTY_PRINT); |
44 | 44 | echo($json); |
@@ -35,7 +35,7 @@ |
||
35 | 35 | $result = JobSeekerController::getJobSeekers(); |
36 | 36 | $json = json_encode($result, JSON_PRETTY_PRINT); |
37 | 37 | echo($json); |
38 | - }else{ |
|
38 | + } else{ |
|
39 | 39 | $result = array(); |
40 | 40 | $json = json_encode($result, JSON_PRETTY_PRINT); |
41 | 41 | echo($json); |
@@ -51,23 +51,23 @@ discard block |
||
51 | 51 | |
52 | 52 | echo($json); |
53 | 53 | |
54 | - }else{ |
|
54 | + } else{ |
|
55 | 55 | header('HTTP/1.0 401 Unauthorized'); |
56 | 56 | echo json_encode(array("failed"=>"Invalid token"),JSON_FORCE_OBJECT); |
57 | 57 | exit; |
58 | 58 | } |
59 | 59 | |
60 | - }else{ |
|
60 | + } else{ |
|
61 | 61 | header('HTTP/1.0 401 Unauthorized'); |
62 | 62 | echo json_encode(array("failed"=>"No user id provided"),JSON_FORCE_OBJECT); |
63 | 63 | exit; |
64 | 64 | } |
65 | - }else{ |
|
65 | + } else{ |
|
66 | 66 | header('HTTP/1.0 401 Unauthorized'); |
67 | 67 | echo json_encode(array("failed"=>'Invalid token, please reauthorize user'),JSON_FORCE_OBJECT); |
68 | 68 | exit; |
69 | 69 | } |
70 | - }else{ |
|
70 | + } else{ |
|
71 | 71 | header('HTTP/1.0 401 Unauthorized'); |
72 | 72 | echo json_encode(array("failed"=>'No authorization token provided'),JSON_FORCE_OBJECT); |
73 | 73 | exit; |
@@ -90,12 +90,12 @@ discard block |
||
90 | 90 | $userRegistered = UserController::registerUser($newUser); |
91 | 91 | $json = json_encode($userRegistered, JSON_PRETTY_PRINT); |
92 | 92 | echo($json); |
93 | - }else{ |
|
93 | + } else{ |
|
94 | 94 | $result = array(); |
95 | 95 | $json = json_encode($result, JSON_PRETTY_PRINT); |
96 | 96 | echo($json); |
97 | 97 | } |
98 | - }else{ |
|
98 | + } else{ |
|
99 | 99 | header('HTTP/1.0 401 Unauthorized'); |
100 | 100 | echo 'Authorization declined'; |
101 | 101 | exit; |
@@ -125,22 +125,22 @@ discard block |
||
125 | 125 | $result = UserController::updateUser($updatedUser); |
126 | 126 | $json = json_encode($result, JSON_PRETTY_PRINT); |
127 | 127 | echo($json); |
128 | - }else{ |
|
128 | + } else{ |
|
129 | 129 | header('HTTP/1.0 401 Unauthorized'); |
130 | 130 | echo json_encode(array("failed"=>"Invalid token"),JSON_FORCE_OBJECT); |
131 | 131 | exit; |
132 | 132 | } |
133 | - }else{ |
|
133 | + } else{ |
|
134 | 134 | header('HTTP/1.0 401 Unauthorized'); |
135 | 135 | echo json_encode(array("failed"=>"No user id provided"),JSON_FORCE_OBJECT); |
136 | 136 | exit; |
137 | 137 | } |
138 | - }else{ |
|
138 | + } else{ |
|
139 | 139 | header('HTTP/1.0 401 Unauthorized'); |
140 | 140 | echo json_encode(array("failed"=>'Invalid token, please reauthorize user'),JSON_FORCE_OBJECT); |
141 | 141 | exit; |
142 | 142 | } |
143 | - }else{ |
|
143 | + } else{ |
|
144 | 144 | header('HTTP/1.0 401 Unauthorized'); |
145 | 145 | echo json_encode(array("failed"=>'No authorization token provided'),JSON_FORCE_OBJECT); |
146 | 146 | exit; |
@@ -149,7 +149,7 @@ discard block |
||
149 | 149 | //TODO: check authaurization |
150 | 150 | if(strlen($jsonBody) > 1){ |
151 | 151 | |
152 | - }else{ |
|
152 | + } else{ |
|
153 | 153 | header('HTTP/1.0 401 Unauthorized'); |
154 | 154 | echo 'Authorization declined'; |
155 | 155 | exit; |