Completed
Push — master ( d6f879...45c473 )
by Grant
15:35 queued 01:47
created
public_html/tc/dao/ManagerProfileDAO.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -184,7 +184,7 @@
 block discarded – undo
184 184
          * @param ManagerProfileDetails $managerProfileDetails
185 185
          * @return int $profileId
186 186
          */
187
-    public static function updateManagerProfile(ManagerProfile $managerProfile, ManagerProfileDetailsNonLocalized $managerProfileDetails){
187
+    public static function updateManagerProfile(ManagerProfile $managerProfile, ManagerProfileDetailsNonLocalized $managerProfileDetails) {
188 188
 
189 189
         //var_dump($managerProfile->getUser_manager_profile_id());
190 190
 
Please login to merge, or discard this patch.
public_html/tc/dao/BaseDAO.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
          * @param dbconnection $link
60 60
          *   $link is the connection required to be closed
61 61
          */
62
-        protected static function closeConnection($link){
62
+        protected static function closeConnection($link) {
63 63
                     $link = null;
64 64
         }
65 65
 		
@@ -69,14 +69,14 @@  discard block
 block discarded – undo
69 69
          * @param type $sql
70 70
          * @return type
71 71
          */
72
-        protected static function executeDBTransaction($link,$sql){
73
-            try{
72
+        protected static function executeDBTransaction($link, $sql) {
73
+            try {
74 74
                 $link->beginTransaction();
75 75
                 $link->exec($sql);
76 76
                 $link->commit();
77 77
             } catch (Exception $e) {
78 78
                 $link->rollBack();
79
-                die('<b>Error:</b> '.$e->getMessage());
79
+                die('<b>Error:</b> ' . $e->getMessage());
80 80
             }
81 81
             return $link;
82 82
         }
Please login to merge, or discard this patch.
public_html/tc/dao/JobPosterDAO.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -98,10 +98,10 @@  discard block
 block discarded – undo
98 98
 
99 99
         try {
100 100
             $sql->execute() or die("ERROR: " . implode(":", $conn->errorInfo()));
101
-            $sql->setFetchMode( PDO::FETCH_CLASS | PDO::FETCH_PROPS_LATE, 'JobPoster',array(
101
+            $sql->setFetchMode(PDO::FETCH_CLASS|PDO::FETCH_PROPS_LATE, 'JobPoster', array(
102 102
                 'id', 'locale_id', 'manager_user_id', 'title', 'description', 'applicants_to_date', 'term_qty', 'term_units', 'job_min_level',
103
-                'job_max_level', 'start_date','open_date', 'close_date', 'department', 'branch', 'division', 'location_province', 'location_city',
104
-                'remuneration_range_low','remuneration_range_high','impact','key_tasks','core_competencies','dev_competencies',
103
+                'job_max_level', 'start_date', 'open_date', 'close_date', 'department', 'branch', 'division', 'location_province', 'location_city',
104
+                'remuneration_range_low', 'remuneration_range_high', 'impact', 'key_tasks', 'core_competencies', 'dev_competencies',
105 105
                 'classification', 'security_clearance', 'language_requirement'
106 106
             ));
107 107
             $jobPosters = $sql->fetchAll();
@@ -200,7 +200,7 @@  discard block
 block discarded – undo
200 200
             $sql->setFetchMode(PDO::FETCH_CLASS|PDO::FETCH_PROPS_LATE, 'JobPoster', array(
201 201
                 'id', 'locale_id', 'manager_user_id', 'title', 'description', 'applicants_to_date', 'term_qty', 'term_units', 'job_min_level',
202 202
                 'job_max_level', 'start_date', 'open_date', 'close_date', 'department', 'branch', 'division', 'location_province', 'location_city',
203
-                'remuneration_range_low','remuneration_range_high','impact','classification','security_clearance', 'language_requirement',
203
+                'remuneration_range_low', 'remuneration_range_high', 'impact', 'classification', 'security_clearance', 'language_requirement',
204 204
             ));
205 205
             $jobPoster = $sql->fetch();
206 206
         } catch (PDOException $e) {
@@ -593,11 +593,11 @@  discard block
 block discarded – undo
593 593
 
594 594
         try {
595 595
             $sql->execute() or die("ERROR: " . implode(":", $conn->errorInfo()));
596
-            $sql->setFetchMode( PDO::FETCH_CLASS | PDO::FETCH_PROPS_LATE, 'JobPoster',array(
596
+            $sql->setFetchMode(PDO::FETCH_CLASS|PDO::FETCH_PROPS_LATE, 'JobPoster', array(
597 597
                 'id', 'locale_id', 'manager_user_id', 'title', 'description', 'applicants_to_date', 'term_qty', 'term_units', 'job_min_level',
598 598
                 'job_max_level', 'start_date', 'open_date', 'close_date', 'department', 'branch', 'division', 'location_province', 'location_city',
599
-                'remuneration_range_low','remuneration_range_high','impact','key_tasks','core_competencies','dev_competencies',
600
-                'classification', 'security_clearance','language_requirement'
599
+                'remuneration_range_low', 'remuneration_range_high', 'impact', 'key_tasks', 'core_competencies', 'dev_competencies',
600
+                'classification', 'security_clearance', 'language_requirement'
601 601
             ));
602 602
             $jobPosters = $sql->fetchAll();
603 603
             //var_dump($rows);
Please login to merge, or discard this patch.
public_html/tc/controller/WorkEnvironmentController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -125,7 +125,7 @@
 block discarded – undo
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
     }
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/utils/SpecialCharacterHandler.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -4,14 +4,14 @@
 block discarded – undo
4 4
  * Summary: removes special characters for inserting tab title in Excel Spreadsheets
5 5
  */
6 6
 
7
-class SpecialCharacterHandler{
7
+class SpecialCharacterHandler {
8 8
 	
9 9
     /**
10 10
      * @param string $string
11 11
      * @return string $fixedString
12 12
      */
13
-    public function removeSpecialCharacters($string){
14
-        $forbiddenCharacters = array("*","/","\\","?","[","]");
13
+    public function removeSpecialCharacters($string) {
14
+        $forbiddenCharacters = array("*", "/", "\\", "?", "[", "]");
15 15
         $fixedString = str_replace($forbiddenCharacters, "", $string);
16 16
         return $fixedString;
17 17
     }
Please login to merge, or discard this patch.