@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | $result = WorkEnvironmentController::getWorkEnivronmentByManagerProfile($managerProfileId); |
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); |
@@ -86,23 +86,23 @@ discard block |
||
86 | 86 | $resultJson = json_encode($result, JSON_PRETTY_PRINT); |
87 | 87 | echo($resultJson); |
88 | 88 | |
89 | - }else{ |
|
89 | + } else{ |
|
90 | 90 | header('HTTP/1.0 401 Unauthorized'); |
91 | 91 | echo json_encode(array("failed"=>"Invalid token"),JSON_FORCE_OBJECT); |
92 | 92 | exit; |
93 | 93 | } |
94 | 94 | |
95 | - }else{ |
|
95 | + } else{ |
|
96 | 96 | header('HTTP/1.0 401 Unauthorized'); |
97 | 97 | echo json_encode(array("failed"=>"No manager profile id provided"),JSON_FORCE_OBJECT); |
98 | 98 | exit; |
99 | 99 | } |
100 | - }else{ |
|
100 | + } else{ |
|
101 | 101 | header('HTTP/1.0 401 Unauthorized'); |
102 | 102 | echo json_encode(array("failed"=>'Invalid token, please reauthorize user'),JSON_FORCE_OBJECT); |
103 | 103 | exit; |
104 | 104 | } |
105 | - }else{ |
|
105 | + } else{ |
|
106 | 106 | header('HTTP/1.0 401 Unauthorized'); |
107 | 107 | echo json_encode(array("failed"=>'No authorization token provided'),JSON_FORCE_OBJECT); |
108 | 108 | exit; |
@@ -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); |