@@ -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 | } |
@@ -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); |
@@ -41,7 +41,7 @@ |
||
| 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'); |
@@ -44,11 +44,11 @@ |
||
| 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 { |