Passed
Push — dev ( b945fa...349874 )
by Salim
12:11
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/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 1 patch
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.
src/scripts/remove_review_attached_file.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
 		die('Delete File Error');
42 42
 	}
43 43
 
44
-	echo( json_encode((true)) );
44
+	echo(json_encode((true)));
45 45
 
46 46
 }else {
47 47
 	header('HTTP/1.0 403 Forbidden');
Please login to merge, or discard this patch.
src/scripts/add_review_attached_file.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -44,11 +44,11 @@
 block discarded – undo
44 44
 	$fileMime=$_FILES['files']['type'][0];
45 45
 	$tempFileLocation=$_FILES['files']['tmp_name'][0];
46 46
 	$fileSize=$_FILES['files']['size'][0];
47
-	try{
47
+	try {
48 48
 		$formProcessor->storeAssociatedFile($fileKey, $fileMime, $fileSize, $tempFileLocation);
49
-		echo( json_encode((true)) );
50
-	}catch (Throwable $t){
51
-		echo (json_encode((false)) );
49
+		echo(json_encode((true)));
50
+	}catch (Throwable $t) {
51
+		echo (json_encode((false)));
52 52
 	}
53 53
 
54 54
 }else {
Please login to merge, or discard this patch.