@@ -337,10 +337,10 @@ discard block |
||
| 337 | 337 | * @return Review|Review[] |
| 338 | 338 | */ |
| 339 | 339 | public function getReviewsObject(bool $local, bool $onlyValidated=false) { |
| 340 | - if(!$onlyValidated){ |
|
| 340 | + if (!$onlyValidated) { |
|
| 341 | 341 | $reviewQuery=$this->linkpdo->prepare('SELECT id_review FROM reviews WHERE id_visit=:idVisit AND deleted=0 AND is_local=:isLocal'); |
| 342 | 342 | |
| 343 | - }else{ |
|
| 343 | + }else { |
|
| 344 | 344 | $reviewQuery=$this->linkpdo->prepare('SELECT id_review FROM reviews WHERE id_visit=:idVisit AND deleted=0 AND validated=1 AND is_local=:isLocal'); |
| 345 | 345 | |
| 346 | 346 | } |
@@ -445,13 +445,13 @@ discard block |
||
| 445 | 445 | if ($this->getVisitCharacteristics()->reviewNeeded) { |
| 446 | 446 | //If review needed make it available for reviewers |
| 447 | 447 | $this->changeReviewAvailability(true); |
| 448 | - }else if( ! $this->getVisitCharacteristics()->qcNeeded) { |
|
| 448 | + }else if (!$this->getVisitCharacteristics()->qcNeeded) { |
|
| 449 | 449 | //The visit is QC accepted and will not go further as Review is not needed |
| 450 | 450 | //Inform supervisors that the visit is well recieved |
| 451 | 451 | //Do this only if QC is not needed as supervisor will get QC notification otherwise (avoid dual mail) |
| 452 | 452 | $this->sendUploadNotificationToSupervisor(); |
| 453 | 453 | } |
| 454 | - }else if ($controlDecision == Visit::QC_REFUSED){ |
|
| 454 | + }else if ($controlDecision == Visit::QC_REFUSED) { |
|
| 455 | 455 | $this->changeReviewAvailability(false); |
| 456 | 456 | } |
| 457 | 457 | |
@@ -596,7 +596,7 @@ discard block |
||
| 596 | 596 | * Get the final target lesion for this visit |
| 597 | 597 | */ |
| 598 | 598 | public function getReviewTargetLesionsArray() { |
| 599 | - return $this->reviewTargetLesions !=null ? json_decode($this->reviewTargetLesions, true) : null; |
|
| 599 | + return $this->reviewTargetLesions != null ? json_decode($this->reviewTargetLesions, true) : null; |
|
| 600 | 600 | } |
| 601 | 601 | |
| 602 | 602 | /** |