Passed
Push — master ( c54534...1da791 )
by Salim
13:03
created
src/models/Study_Review_Manager.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@
 block discarded – undo
67 67
 				//Retrieve review
68 68
 				try {
69 69
 					$reviewObjects=$createdVisit->getReviewsObject(false);
70
-				} catch (Exception $e) {
70
+				}catch (Exception $e) {
71 71
 					$reviewObjects=[];
72 72
 				}
73 73
 
Please login to merge, or discard this patch.
src/controllers/supervisor/visit_infos_controller.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -35,17 +35,17 @@
 block discarded – undo
35 35
 	try {
36 36
 		$localReviewObject=$visitObject->getReviewsObject(true);
37 37
 		$data_reviews[]=$localReviewObject;
38
-	} catch (Exception $e) { }
38
+	}catch (Exception $e) { }
39 39
 
40 40
 	try {
41 41
 		$reviewsNotLocal=$visitObject->getReviewsObject(false);
42 42
 		array_push($data_reviews, ...$reviewsNotLocal);
43
-	} catch (Exception $e) { }
43
+	}catch (Exception $e) { }
44 44
 	
45 45
 	$trackerVisitResponses=Tracker::getTackerForVisit($id_visit, $linkpdo);
46 46
 	
47 47
 	require 'views/supervisor/visit_infos_view.php';
48 48
 	
49
-} else {
49
+}else {
50 50
 	require 'includes/no_access.php';
51 51
 }
Please login to merge, or discard this patch.
src/scripts/getRoles.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,6 +30,6 @@
 block discarded – undo
30 30
 	//Output results
31 31
 	echo(json_encode($roles));
32 32
     
33
-} else {
33
+}else {
34 34
 	echo(json_encode(array("No Access")));
35 35
 }
36 36
\ No newline at end of file
Please login to merge, or discard this patch.
src/scripts/get_upload_status.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
 	$visitObject=new Visit($id_visit, $linkpdo);
29 29
 	echo(json_encode($visitObject->uploadStatus));
30 30
 	
31
-} else {
31
+}else {
32 32
 	header('HTTP/1.0 403 Forbidden');
33 33
 	die('You are not allowed to access this file.');
34 34
 }
Please login to merge, or discard this patch.
src/scripts/reactivate_visit.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,6 +39,6 @@
 block discarded – undo
39 39
 	//output the resulting answer
40 40
 	echo(json_encode($answer));
41 41
 
42
-} else {
42
+}else {
43 43
 	echo(json_encode(false));
44 44
 }
45 45
\ No newline at end of file
Please login to merge, or discard this patch.
src/rest/add-review.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
 	header("Content-Type: application/json; charset=UTF-8");
40 40
 	echo(json_encode($answer));
41 41
 	
42
-} else {
42
+}else {
43 43
 	header('HTTP/1.0 403 Forbidden');
44 44
 }
45 45
 
Please login to merge, or discard this patch.
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.