Completed
Push — master ( 5a8583...d6f879 )
by Grant
12:34 queued 10s
created
public_html/tc/controller/UserController.php 1 patch
Braces   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
         //if user_id is not null, then log the user in automatically
62 62
         if ($existingUser) {
63 63
             return $existingUser;
64
-        }else {
64
+        } else {
65 65
             //if user_id is null, then the user is not registered and we should register them automatically
66 66
             //register new user
67 67
             $newUser = UserController::registerUser($user);
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
                 $userId = $registeredUser->getUser_id();
88 88
                 $jobSeekerProfile = new JobSeekerProfile();                
89 89
                 $result = JobSeekerController::addJobSeekerProfile($jobSeekerProfile, $userId);
90
-            }else if ($registeredUser->getUser_role() === 'administrator') {
90
+            } else if ($registeredUser->getUser_role() === 'administrator') {
91 91
                 
92 92
                 $userId = $registeredUser->getUser_id();
93 93
                 $managerProfile = new ManagerProfile();
@@ -129,7 +129,7 @@  discard block
 block discarded – undo
129 129
             if ($oldUser->getEmail() != $updatedUser->getEmail()) {
130 130
                 $confEmailSent = UserController::confirmEmail($updatedUser);
131 131
                 $updatedUser->setIs_confirmed(false);
132
-            }else {
132
+            } else {
133 133
                 $updatedUser->setIs_confirmed($oldUser->getIs_confirmed());
134 134
             }
135 135
             $updateSuccessful = UserDAO::updateUser($updatedUser); //do updates
Please login to merge, or discard this patch.
public_html/tc/controller/JobApplicationController.php 1 patch
Braces   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
             $questionAnswers = self::getApplicationQuestionAnswers($jobPosterApplication->getJob_poster_application_id());
71 71
             $jobApplicationWithAnswers = new JobApplicationWithAnswers($jobPosterApplication, $questionAnswers);
72 72
             return $jobApplicationWithAnswers;
73
-        }else {
73
+        } else {
74 74
             return false;
75 75
         }
76 76
     }
@@ -165,7 +165,7 @@  discard block
 block discarded – undo
165 165
             $workSamples = WorkSampleController::getAllWorkSamplesForJobApplication($jobPosterApplicationId, $locale);
166 166
             
167 167
             return new FullJobApplication($jobPosterApplication, $jobSeekerProfile, $questionAnswers, $skillDeclarations, $microReferences, $workSamples);
168
-        }else {
168
+        } else {
169 169
             return false;
170 170
         }
171 171
     }
@@ -174,7 +174,7 @@  discard block
 block discarded – undo
174 174
         $isDraft = self::jobApplicationIsDraft($jobPosterApplicationId);
175 175
         if ($isDraft) {
176 176
             return JobApplicationDAO::setJobAppliationStatus($jobPosterApplicationId, "Submitted");
177
-        }else {
177
+        } else {
178 178
             return ["false"=>"Cannot submit an application which is not a draft"];
179 179
         }
180 180
     }
Please login to merge, or discard this patch.
public_html/tc/controller/ResourceController.php 1 patch
Braces   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
         if ($resourceKey != null && !empty($resourceKey)) {
38 38
             if ($keyOption != null) {
39 39
                 return $commonLabelArray[$resourceKey][$keyOption];
40
-            }else {
40
+            } else {
41 41
                 return $commonLabelArray[$resourceKey];
42 42
             }
43 43
         }
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
         if ($resourceKey != null && !empty($resourceKey)) {
58 58
             if ($keyOption != null) {
59 59
                 return $labelArray[$resourceKey][$keyOption];
60
-            }else {
60
+            } else {
61 61
                 return $labelArray[$resourceKey];
62 62
             }
63 63
         }
Please login to merge, or discard this patch.
public_html/tc/controller/TeamCultureController.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
public_html/tc/controller/ProfilePicController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
     public static function getProfilePic($user_id) {
22 22
         if (ProfilePicDAO::profilePicExistsForUser($user_id)) {
23 23
                     return ProfilePicDAO::getProfilePic($user_id);
24
-        } else {
24
+        }else {
25 25
                     return NULL;
26 26
         }
27 27
     }
Please login to merge, or discard this patch.
public_html/tc/controller/EmailConfirmationController.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
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
         
Please login to merge, or discard this patch.
public_html/tc/services/SubmitJobApplication.php 1 patch
Braces   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -64,22 +64,22 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
public_html/tc/services/JobPosters.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
public_html/tc/services/WorkplacePhoto.php 1 patch
Braces   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -41,11 +41,11 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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);
Please login to merge, or discard this patch.