@@ -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; |
@@ -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); |
@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | $json = json_encode($result, JSON_PRETTY_PRINT); |
38 | 38 | header("Content-length:" . strlen($json)); |
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); |
@@ -106,7 +106,7 @@ discard block |
||
106 | 106 | $result = JobPosterController::createJobPoster($jobPoster); |
107 | 107 | $json = json_encode($result, JSON_PRETTY_PRINT); |
108 | 108 | echo($json); |
109 | - } else { |
|
109 | + }else { |
|
110 | 110 | $result = array(); |
111 | 111 | $json = json_encode($result, JSON_PRETTY_PRINT); |
112 | 112 | 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); |
@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | $json = json_encode($result, JSON_PRETTY_PRINT); |
37 | 37 | header("Content-length:" . strlen($json)); |
38 | 38 | echo($json); |
39 | - } else { |
|
39 | + }else { |
|
40 | 40 | $result = array(); |
41 | 41 | $json = json_encode($result, JSON_PRETTY_PRINT); |
42 | 42 | echo($json); |
@@ -51,7 +51,7 @@ discard block |
||
51 | 51 | $json = json_encode($result, JSON_PRETTY_PRINT); |
52 | 52 | header("Content-length:" . strlen($json)); |
53 | 53 | echo($json); |
54 | - } else { |
|
54 | + }else { |
|
55 | 55 | $result = array(); |
56 | 56 | $json = json_encode($result, JSON_PRETTY_PRINT); |
57 | 57 | echo($json); |
@@ -40,11 +40,11 @@ |
||
40 | 40 | if ($result === false) { |
41 | 41 | header('HTTP/1.0 404 Not Found'); |
42 | 42 | echo json_encode(array("failed" => "Manager Profile does not exist for specified user"), JSON_FORCE_OBJECT); |
43 | - } else { |
|
43 | + }else { |
|
44 | 44 | $json = json_encode($result, JSON_PRETTY_PRINT); |
45 | 45 | echo($json); |
46 | 46 | } |
47 | - } else { |
|
47 | + }else { |
|
48 | 48 | $result = array(); |
49 | 49 | $json = json_encode($result, JSON_PRETTY_PRINT); |
50 | 50 | echo($json); |
@@ -34,7 +34,7 @@ |
||
34 | 34 | $result = LookupController::getLookupDataByLocaleAndType($locale, $lookupType); |
35 | 35 | $json = json_encode($result, JSON_PRETTY_PRINT); |
36 | 36 | echo($json); |
37 | - } else { |
|
37 | + }else { |
|
38 | 38 | $result = array(); |
39 | 39 | $json = json_encode($result, JSON_PRETTY_PRINT); |
40 | 40 | echo($json); |
@@ -61,7 +61,7 @@ discard block |
||
61 | 61 | } |
62 | 62 | header("Refresh:0; url=\"" . REDIRECT_URI_ADMIN . "\""); |
63 | 63 | } |
64 | -} else { |
|
64 | +}else { |
|
65 | 65 | $_SESSION['openid_connect_state'] = $state; |
66 | 66 | $_SESSION['openid_connect_nonce'] = $nonce; |
67 | 67 | } |
@@ -107,7 +107,7 @@ discard block |
||
107 | 107 | echo("UserAPI.storeSessionUser(" . json_encode($userInfo) . ");"); |
108 | 108 | echo("UserAPI.login(true);"); |
109 | 109 | } |
110 | - } else { |
|
110 | + }else { |
|
111 | 111 | echo("UserAPI.login(false);"); |
112 | 112 | } |
113 | 113 | //var isExistingUser = UserAPI.authenticate(UserAPI.getSessionUserAsJSON()); |
@@ -18,7 +18,7 @@ discard block |
||
18 | 18 | if ($workEnvId === 0) { |
19 | 19 | $workEnvironment = self::createWorkEnvironment($workEnvironment); |
20 | 20 | WorkEnvironmentDAO::setManagerProfileWorkEnvironment($managerProfileId, $workEnvironment->getBasic_work_environment()->getId()); |
21 | - } else { |
|
21 | + }else { |
|
22 | 22 | $workEnvironment->getBasic_work_environment()->setId($workEnvId); |
23 | 23 | self::updateWorkEnvironment($workEnvironment); |
24 | 24 | } |
@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | //already exists, so just update description |
45 | 45 | $oldCaption->setDescription($newCaption->getDescription()); |
46 | 46 | WorkEnvironmentDAO::updateWorkplacePhotoCaption($oldCaption); |
47 | - } else { |
|
47 | + }else { |
|
48 | 48 | //doesn't exist, so make sure it has correct work env id and blank photo id, and insert it |
49 | 49 | $newCaption->setWork_environment_id($workEnvId); |
50 | 50 | $newCaption->setWorkplace_photo_id(null); |
@@ -71,7 +71,7 @@ discard block |
||
71 | 71 | //already exists, so just update description |
72 | 72 | $oldCaption->setDescription($newCaption->getDescription()); |
73 | 73 | WorkEnvironmentDAO::updateWorkplacePhotoCaption($oldCaption); |
74 | - } else { |
|
74 | + }else { |
|
75 | 75 | //doesn't exist, so make sure it has correct work env id and blank photo id, and insert it |
76 | 76 | $newCaption->setWork_environment_id($workEnvId); |
77 | 77 | $newCaption->setWorkplace_photo_id(null); |
@@ -97,7 +97,7 @@ discard block |
||
97 | 97 | $exists = WorkEnvironmentDAO::workplacePhotoExistsForManagerAndName($managerProfileId, $photoName); |
98 | 98 | if ($exists) { |
99 | 99 | WorkEnvironmentDAO::updateWorkplacePhoto($workplacePhoto, $managerProfileId, $photoName); |
100 | - } else { |
|
100 | + }else { |
|
101 | 101 | |
102 | 102 | $photoId = WorkEnvironmentDAO::insertWorkplacePhoto($workplacePhoto); |
103 | 103 | |
@@ -113,7 +113,7 @@ discard block |
||
113 | 113 | if ($caption) { |
114 | 114 | $caption->setWorkplace_photo_id($photoId); |
115 | 115 | WorkEnvironmentDAO::updateWorkplacePhotoCaption($caption); |
116 | - } else { |
|
116 | + }else { |
|
117 | 117 | $caption = new WorkplacePhotoCaption($workEnvironmentId, $photoName, $photoId, ''); |
118 | 118 | WorkEnvironmentDAO::insertWorkplacePhotoCaption($caption); |
119 | 119 | } |
@@ -125,7 +125,7 @@ discard block |
||
125 | 125 | public static function getWorkplacePhotoByManagerProfileAndName($photoName, $managerProfileId) { |
126 | 126 | if (WorkEnvironmentDAO::workplacePhotoExistsForManagerAndName($managerProfileId, $photoName)) { |
127 | 127 | return WorkEnvironmentDAO::getWorkplacePhoto($managerProfileId, $photoName); |
128 | - } else { |
|
128 | + }else { |
|
129 | 129 | return NULL; |
130 | 130 | } |
131 | 131 | } |