@@ -55,7 +55,7 @@ |
||
55 | 55 | ) |
56 | 56 | ); |
57 | 57 | |
58 | - } else { |
|
58 | + }else { |
|
59 | 59 | $this->url=$url; |
60 | 60 | $this->context=$context; |
61 | 61 | } |
@@ -127,7 +127,7 @@ |
||
127 | 127 | if ($visitObject->isAwaitingReviewForReviewerUser($username)) { |
128 | 128 | $visitObjectArray[]=$visitObject; |
129 | 129 | } |
130 | - }else { |
|
130 | + } else { |
|
131 | 131 | $visitObjectArray[]=$visitObject; |
132 | 132 | } |
133 | 133 | } |
@@ -62,15 +62,15 @@ |
||
62 | 62 | public function isDocumentationAllowedForRole(String $role) { |
63 | 63 | if ($role == User::INVESTIGATOR) { |
64 | 64 | return $this->accessInvestigator; |
65 | - }else if ($role == User::CONTROLLER) { |
|
65 | + } else if ($role == User::CONTROLLER) { |
|
66 | 66 | return $this->accessController; |
67 | - }else if ($role == User::MONITOR) { |
|
67 | + } else if ($role == User::MONITOR) { |
|
68 | 68 | return $this->accessMonitor; |
69 | - }else if ($role == User::REVIEWER) { |
|
69 | + } else if ($role == User::REVIEWER) { |
|
70 | 70 | return $this->accessReviewer; |
71 | - }else if ($role == User::SUPERVISOR) { |
|
71 | + } else if ($role == User::SUPERVISOR) { |
|
72 | 72 | return true; |
73 | - }else { |
|
73 | + } else { |
|
74 | 74 | return false; |
75 | 75 | } |
76 | 76 | } |
@@ -138,7 +138,7 @@ |
||
138 | 138 | |
139 | 139 | if (empty($dataStudies)) { |
140 | 140 | return false; |
141 | - } else { |
|
141 | + }else { |
|
142 | 142 | return true; |
143 | 143 | } |
144 | 144 |
@@ -39,7 +39,7 @@ |
||
39 | 39 | ?> |
40 | 40 | $('#no_corrective_action').hide(); |
41 | 41 | <?php |
42 | - } else { |
|
42 | + }else { |
|
43 | 43 | ?> |
44 | 44 | $('#corrective_action').hide(); |
45 | 45 | <?php |
@@ -84,11 +84,11 @@ |
||
84 | 84 | "items": <?php |
85 | 85 | if ($_SESSION['role'] == User::INVESTIGATOR) { |
86 | 86 | echo('investigatorContextMenu()'); |
87 | - } else if ($_SESSION['role'] == User::CONTROLLER) { |
|
87 | + }else if ($_SESSION['role'] == User::CONTROLLER) { |
|
88 | 88 | echo('controllerContextMenu()'); |
89 | - } else if ($_SESSION['role'] == User::REVIEWER) { |
|
89 | + }else if ($_SESSION['role'] == User::REVIEWER) { |
|
90 | 90 | echo('reviewerContextMenu()'); |
91 | - } else { |
|
91 | + }else { |
|
92 | 92 | echo('{}'); |
93 | 93 | } ?> |
94 | 94 |
@@ -40,6 +40,6 @@ |
||
40 | 40 | require 'includes/table_visit.php'; |
41 | 41 | require 'views/investigator/visit_interface_view.php'; |
42 | 42 | |
43 | -} else { |
|
43 | +}else { |
|
44 | 44 | require 'includes/no_access.php'; |
45 | 45 | } |
@@ -49,7 +49,7 @@ |
||
49 | 49 | |
50 | 50 | require 'views/supervisor/review_manager_view.php'; |
51 | 51 | |
52 | -} else { |
|
52 | +}else { |
|
53 | 53 | |
54 | 54 | require 'includes/no_access.php'; |
55 | 55 | } |
@@ -56,7 +56,7 @@ |
||
56 | 56 | if (isset($_POST['ask_corrective_action'])) { |
57 | 57 | $controlDecision=Visit::QC_CORRECTIVE_ACTION_ASKED; |
58 | 58 | //Make Investigator Form as Draft and update form status in visit |
59 | - if($visitObject->getVisitCharacteristics()->localFormNeeded){ |
|
59 | + if ($visitObject->getVisitCharacteristics()->localFormNeeded) { |
|
60 | 60 | |
61 | 61 | try { |
62 | 62 | $localReviewObject=$visitObject->getReviewsObject(true); |
@@ -61,7 +61,7 @@ discard block |
||
61 | 61 | try { |
62 | 62 | $localReviewObject=$visitObject->getReviewsObject(true); |
63 | 63 | $localReviewObject->unlockForm(); |
64 | - }catch (Exception $e) { |
|
64 | + } catch (Exception $e) { |
|
65 | 65 | error_log($e->getMessage()); |
66 | 66 | } |
67 | 67 | |
@@ -91,25 +91,25 @@ discard block |
||
91 | 91 | //Changing Boolean in text to send email |
92 | 92 | if ($formAccepted) { |
93 | 93 | $formAccepted="Accepted"; |
94 | - }else { |
|
94 | + } else { |
|
95 | 95 | $formAccepted="Refused"; |
96 | 96 | } |
97 | 97 | |
98 | 98 | if ($imageAccepted) { |
99 | 99 | $imageAccepted="Accepted"; |
100 | - }else { |
|
100 | + } else { |
|
101 | 101 | $imageAccepted="Refused"; |
102 | 102 | } |
103 | 103 | |
104 | 104 | if (empty($_POST['formComment'])) { |
105 | 105 | $commentForm="N/A"; |
106 | - }else { |
|
106 | + } else { |
|
107 | 107 | $commentForm=$_POST['formComment']; |
108 | 108 | } |
109 | 109 | |
110 | 110 | if (empty($_POST['imageComment'])) { |
111 | 111 | $commentImage="N/A"; |
112 | - }else { |
|
112 | + } else { |
|
113 | 113 | $commentImage=$_POST['imageComment']; |
114 | 114 | } |
115 | 115 | |
@@ -124,17 +124,17 @@ discard block |
||
124 | 124 | |
125 | 125 | |
126 | 126 | //if send form with uncorrect permission, refuse |
127 | - }else if (isset($_POST['refuse']) || isset($_POST['accept']) || isset($_POST['ask_corrective_action']) |
|
127 | + } else if (isset($_POST['refuse']) || isset($_POST['accept']) || isset($_POST['ask_corrective_action']) |
|
128 | 128 | && $role != User::CONTROLLER |
129 | 129 | && (!in_array($visitObject->stateQualityControl, array(Visit::QC_NOT_DONE, Visit::QC_WAIT_DEFINITVE_CONCLUSION)))) { |
130 | 130 | |
131 | 131 | print("No Access"); |
132 | 132 | |
133 | - }else { |
|
133 | + } else { |
|
134 | 134 | //if No form submitted, display the html form +- results |
135 | 135 | $visitType=$visitObject->getVisitCharacteristics(); |
136 | 136 | require 'views/investigator/controller_form_view.php'; |
137 | 137 | } |
138 | -}else { |
|
138 | +} else { |
|
139 | 139 | require 'includes/no_access.php'; |
140 | 140 | } |