@@ -78,12 +78,12 @@ |
||
| 78 | 78 | echo($resultJson); |
| 79 | 79 | |
| 80 | 80 | |
| 81 | - }else{ |
|
| 81 | + } else{ |
|
| 82 | 82 | header('HTTP/1.0 400 Bad Request'); |
| 83 | 83 | echo json_encode(array("failed"=>"No manager profile id provided"),JSON_FORCE_OBJECT); |
| 84 | 84 | exit; |
| 85 | 85 | } |
| 86 | - }else{ |
|
| 86 | + } else{ |
|
| 87 | 87 | header('HTTP/1.0 400 Bad Request'); |
| 88 | 88 | echo json_encode(array("failed"=>'No request parameters provided'),JSON_FORCE_OBJECT); |
| 89 | 89 | exit; |
@@ -84,12 +84,12 @@ |
||
| 84 | 84 | $resultJson = json_encode($result, JSON_PRETTY_PRINT); |
| 85 | 85 | echo($resultJson); |
| 86 | 86 | |
| 87 | - }else{ |
|
| 87 | + } else{ |
|
| 88 | 88 | header('HTTP/1.0 400 Bad Request'); |
| 89 | 89 | echo json_encode(array("failed"=>"No manager profile id provided"),JSON_FORCE_OBJECT); |
| 90 | 90 | exit; |
| 91 | 91 | } |
| 92 | - }else{ |
|
| 92 | + } else{ |
|
| 93 | 93 | header('HTTP/1.0 400 Bad Request'); |
| 94 | 94 | echo json_encode(array("failed"=>'"No manager profile id provided"'),JSON_FORCE_OBJECT); |
| 95 | 95 | exit; |
@@ -82,7 +82,7 @@ |
||
| 82 | 82 | $jobPosterApplicationId = Utils::getParameterFromRequest($requestParams,4); |
| 83 | 83 | $criteriaId = Utils::getParameterFromRequest($requestParams,6); |
| 84 | 84 | |
| 85 | - //This action is available to the owner of the application, the owner of the job poster its for, and admins |
|
| 85 | + //This action is available to the owner of the application, the owner of the job poster its for, and admins |
|
| 86 | 86 | $userId = JobApplicationController::getJobApplicationUserId($jobPosterApplicationId); |
| 87 | 87 | $userPermissions = []; |
| 88 | 88 | $userPermissions[] = new UserPermission(ROLE_ADMIN); |
@@ -34,7 +34,7 @@ discard block |
||
| 34 | 34 | header("Content-type: " . $result->getType()); |
| 35 | 35 | echo($result->getImage()); |
| 36 | 36 | } |
| 37 | - }else{ |
|
| 37 | + } else{ |
|
| 38 | 38 | header('HTTP/1.0 400 Bad Request'); |
| 39 | 39 | echo json_encode(array("failed"=>'No request parameters provided'),JSON_FORCE_OBJECT); |
| 40 | 40 | exit; |
@@ -64,7 +64,7 @@ discard block |
||
| 64 | 64 | $result = ProfilePicController::putProfilePic($profile_pic); |
| 65 | 65 | |
| 66 | 66 | echo($result); |
| 67 | - }else{ |
|
| 67 | + } else{ |
|
| 68 | 68 | header('HTTP/1.0 400 Bad Request'); |
| 69 | 69 | echo json_encode(array("failed"=>'No request parameters provided'),JSON_FORCE_OBJECT); |
| 70 | 70 | exit; |
@@ -93,12 +93,12 @@ |
||
| 93 | 93 | $json = json_encode($result, JSON_PRETTY_PRINT); |
| 94 | 94 | |
| 95 | 95 | echo($json); |
| 96 | - }else{ |
|
| 96 | + } else{ |
|
| 97 | 97 | header('HTTP/1.0 400 Bad Request'); |
| 98 | 98 | echo json_encode(array("failed"=>"No manager profile id provided"),JSON_FORCE_OBJECT); |
| 99 | 99 | exit; |
| 100 | 100 | } |
| 101 | - }else{ |
|
| 101 | + } else{ |
|
| 102 | 102 | header('HTTP/1.0 400 Bad Request'); |
| 103 | 103 | echo json_encode(array("failed"=>'No request parameters provided'),JSON_FORCE_OBJECT); |
| 104 | 104 | exit; |
@@ -2,7 +2,7 @@ |
||
| 2 | 2 | |
| 3 | 3 | require_once __DIR__ . '/../config/php.config.inc'; |
| 4 | 4 | |
| 5 | - require_once __DIR__ . '/../config/db.config.inc'; |
|
| 5 | + require_once __DIR__ . '/../config/db.config.inc'; |
|
| 6 | 6 | |
| 7 | 7 | /** |
| 8 | 8 | * Summary: Database connection manager class |