@@ -16,7 +16,7 @@ |
||
16 | 16 | $previousEntry = TeamCultureDAO::getTeamCultureNonLocalizedForManagerProfile($managerProfileId); |
17 | 17 | if ($previousEntry) { |
18 | 18 | $result = TeamCultureDAO::updateTeamCultureForManagerProfile($teamCulture, $managerProfileId); |
19 | - }else { |
|
19 | + } else { |
|
20 | 20 | $result = TeamCultureDAO::createTeamCultureForManagerProfile($teamCulture, $managerProfileId); |
21 | 21 | } |
22 | 22 | return $result; |
@@ -44,7 +44,7 @@ |
||
44 | 44 | //var_dump($message); |
45 | 45 | if (!@mail($to, $subject, $message, $headers)) { |
46 | 46 | return false; |
47 | - }else { |
|
47 | + } else { |
|
48 | 48 | return true; |
49 | 49 | } |
50 | 50 |
@@ -64,22 +64,22 @@ |
||
64 | 64 | $json = json_encode($result, JSON_PRETTY_PRINT); |
65 | 65 | echo($json); |
66 | 66 | |
67 | - }else { |
|
67 | + } else { |
|
68 | 68 | header('HTTP/1.0 401 Unauthorized'); |
69 | 69 | echo json_encode(array("failed" => "Invalid token"), JSON_FORCE_OBJECT); |
70 | 70 | exit; |
71 | 71 | } |
72 | - }else { |
|
72 | + } else { |
|
73 | 73 | header('HTTP/1.0 401 Unauthorized'); |
74 | 74 | echo json_encode(array("failed" => "No user id provided"), JSON_FORCE_OBJECT); |
75 | 75 | exit; |
76 | 76 | } |
77 | - }else { |
|
77 | + } else { |
|
78 | 78 | header('HTTP/1.0 401 Unauthorized'); |
79 | 79 | echo json_encode(array("failed" => 'Invalid arguments provided'), JSON_FORCE_OBJECT); |
80 | 80 | exit; |
81 | 81 | } |
82 | - }else { |
|
82 | + } else { |
|
83 | 83 | header('HTTP/1.0 401 Unauthorized'); |
84 | 84 | echo json_encode(array("failed" => 'No authorization token provided'), JSON_FORCE_OBJECT); |
85 | 85 | exit; |
@@ -34,7 +34,7 @@ |
||
34 | 34 | $json = json_encode($result, JSON_PRETTY_PRINT); |
35 | 35 | header("Content-length:" . strlen($json)); |
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); |
@@ -41,11 +41,11 @@ discard block |
||
41 | 41 | if ($result == NULL) { |
42 | 42 | http_response_code(404); |
43 | 43 | echo('This workplace photo does not exist'); |
44 | - }else { |
|
44 | + } else { |
|
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 @@ discard block |
||
35 | 35 | $result = MicroReferenceController::getAllMicroReferencesForJobApplication($jobPosterApplicationId, $locale); |
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); |
@@ -59,12 +59,12 @@ discard block |
||
59 | 59 | |
60 | 60 | $json = json_encode($result, JSON_PRETTY_PRINT); |
61 | 61 | echo($json); |
62 | - }else { |
|
62 | + } else { |
|
63 | 63 | header('HTTP/1.0 403 Forbidden'); |
64 | 64 | echo json_encode(array("failed" => "Only Draft applications can be modified."), JSON_FORCE_OBJECT); |
65 | 65 | exit; |
66 | 66 | } |
67 | - }else { |
|
67 | + } else { |
|
68 | 68 | $result = array(); |
69 | 69 | $json = json_encode($result, JSON_PRETTY_PRINT); |
70 | 70 | echo($json); |
@@ -97,12 +97,12 @@ discard block |
||
97 | 97 | |
98 | 98 | $json = json_encode($result, JSON_PRETTY_PRINT); |
99 | 99 | echo($json); |
100 | - }else { |
|
100 | + } else { |
|
101 | 101 | header('HTTP/1.0 403 Forbidden'); |
102 | 102 | echo json_encode(array("failed" => "Only Draft applications can be modified."), JSON_FORCE_OBJECT); |
103 | 103 | exit; |
104 | 104 | } |
105 | - }else { |
|
105 | + } else { |
|
106 | 106 | $result = array(); |
107 | 107 | $json = json_encode($result, JSON_PRETTY_PRINT); |
108 | 108 | echo($json); |
@@ -38,7 +38,7 @@ |
||
38 | 38 | |
39 | 39 | $json = json_encode($jobApplicationsWithAnswers, 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); |
@@ -33,7 +33,7 @@ discard block |
||
33 | 33 | $result = SkillDeclarationController::getAllSkillDeclarationsForJobApplication($jobPosterApplicationId); |
34 | 34 | $json = json_encode($result, JSON_PRETTY_PRINT); |
35 | 35 | echo($json); |
36 | - }else { |
|
36 | + } else { |
|
37 | 37 | $result = array(); |
38 | 38 | $json = json_encode($result, JSON_PRETTY_PRINT); |
39 | 39 | echo($json); |
@@ -79,14 +79,14 @@ discard block |
||
79 | 79 | |
80 | 80 | $json = json_encode($result, JSON_PRETTY_PRINT); |
81 | 81 | echo($json); |
82 | - }else { |
|
82 | + } else { |
|
83 | 83 | header('HTTP/1.0 403 Forbidden'); |
84 | 84 | echo json_encode(array("failed"=>"Only Draft applications can be modified."), JSON_FORCE_OBJECT); |
85 | 85 | exit; |
86 | 86 | } |
87 | 87 | |
88 | 88 | |
89 | - }else { |
|
89 | + } else { |
|
90 | 90 | $result = array(); |
91 | 91 | $json = json_encode($result, JSON_PRETTY_PRINT); |
92 | 92 | echo($json); |
@@ -117,13 +117,13 @@ discard block |
||
117 | 117 | |
118 | 118 | $json = json_encode($result, JSON_PRETTY_PRINT); |
119 | 119 | echo($json); |
120 | - }else { |
|
120 | + } else { |
|
121 | 121 | header('HTTP/1.0 403 Forbidden'); |
122 | 122 | echo json_encode(array("failed"=>"Only Draft applications can be modified."), JSON_FORCE_OBJECT); |
123 | 123 | exit; |
124 | 124 | } |
125 | 125 | |
126 | - }else { |
|
126 | + } else { |
|
127 | 127 | $result = array(); |
128 | 128 | $json = json_encode($result, JSON_PRETTY_PRINT); |
129 | 129 | 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); |