Passed
Push — master ( c54534...1da791 )
by Salim
13:03
created
src/models/Orthanc_Study.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@
 block discarded – undo
55 55
 					)
56 56
 			);
57 57
 	    	
58
-		} else {
58
+		}else {
59 59
 			$this->url=$url;
60 60
 			$this->context=$context;	
61 61
 		}
Please login to merge, or discard this patch.
src/models/Group_Visit_Manager.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -127,7 +127,7 @@
 block discarded – undo
127 127
 				if ($visitObject->isAwaitingReviewForReviewerUser($username)) {
128 128
 					$visitObjectArray[]=$visitObject;
129 129
 				}
130
-			}else {
130
+			} else {
131 131
 				$visitObjectArray[]=$visitObject;
132 132
 			}
133 133
 		}
Please login to merge, or discard this patch.
src/models/Documentation.php 1 patch
Braces   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -62,15 +62,15 @@
 block discarded – undo
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
 	}
Please login to merge, or discard this patch.
src/models/Study_Details.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -138,7 +138,7 @@
 block discarded – undo
138 138
         
139 139
 		if (empty($dataStudies)) {
140 140
 			return false;
141
-		} else {
141
+		}else {
142 142
 			return true;
143 143
 		}
144 144
         
Please login to merge, or discard this patch.
src/views/investigator/corrective_action_view.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
src/views/investigator/root_investigator_view.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -84,11 +84,11 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/controllers/investigator/visit_interface_controller.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,6 +40,6 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
src/controllers/supervisor/review_manager_controller.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
src/controllers/investigator/controller_form_controller.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
Braces   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 }
Please login to merge, or discard this patch.