Passed
Push — master ( 9e08b1...d0105f )
by Salim
08:36
created
src/scripts/export_study_data.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@
 block discarded – undo
76 76
 		unlink($file);
77 77
 	}
78 78
     
79
-} else {
79
+}else {
80 80
 	header('HTTP/1.0 403 Forbidden');
81 81
 	die('You are not allowed to access this file.');
82 82
 }
83 83
\ No newline at end of file
Please login to merge, or discard this patch.
src/form_models/study_visit_poo.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
42 42
 					'value2' =>'',
43 43
 					'id_review' => $id_review ));
44 44
 			
45
-		} else {
45
+		}else {
46 46
 			//Draft doesn't exist we create a new entry in the specific table
47 47
 			$insertion=$this->linkpdo->prepare('INSERT INTO '.$this->specificTable.' (id_review, item, item2)
48 48
                                         VALUES (:id_review, :value, :value2)');
Please login to merge, or discard this patch.
src/models/Fill_Orthanc_Table.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -64,10 +64,10 @@  discard block
 block discarded – undo
64 64
 				}
65 65
 				$this->visitObject->changeUploadStatus(Visit::DONE, $this->username);
66 66
                 
67
-			} catch (Exception $e1) {
67
+			}catch (Exception $e1) {
68 68
 				throw new Exception("Error during import ".$e1->getMessage());
69 69
 			}
70
-		} else {
70
+		}else {
71 71
 			throw new Exception("Error during import Study Already Known");
72 72
 		}
73 73
 	}
@@ -267,12 +267,12 @@  discard block
 block discarded – undo
267 267
 			if ($dateObject !== false) {
268 268
 				$parsedDateTime=$dateObject->format('H:i:s');
269 269
 			}
270
-		} else if ($type == 1) {
270
+		}else if ($type == 1) {
271 271
 			$dateObject=DateTime::createFromFormat('Ymd', $string);
272 272
 			if ($dateObject !== false) {
273 273
 				$parsedDateTime=$dateObject->format('Y-m-d');
274 274
 			}
275
-		} else if ($type == 0) {
275
+		}else if ($type == 0) {
276 276
 			$dateObject=DateTime::createFromFormat('YmdHis', $string);
277 277
 			if ($dateObject !== false) {
278 278
 				$parsedDateTime=$dateObject->format('Y-m-d H:i:s');
Please login to merge, or discard this patch.
src/models/Orthanc_Serie.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -143,7 +143,7 @@
 block discarded – undo
143 143
 		
144 144
 		if (in_array($this->sopClassUid, $scUids)) {
145 145
 			return true;
146
-		} else {
146
+		}else {
147 147
 			return false;
148 148
 		}
149 149
 		
Please login to merge, or discard this patch.
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.