Skip to content

Commit

Permalink
phpcs
Browse files Browse the repository at this point in the history
  • Loading branch information
driusan committed Apr 28, 2021
1 parent e0d490c commit 67c0140
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion modules/dicom_archive/php/dicomarchiveanonymizer.class.inc
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ class DICOMArchiveAnonymizer implements Mapper
$config = \NDB_Config::singleton()->getSetting("imaging_modules");
}


$newrow = json_decode(json_encode($resource), true);
if (!is_array($newrow)) {
throw new \Exception("Error converting DataInstance to array");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ class DicomArchiveRowProvisioner extends \LORIS\Data\Provisioners\DBRowProvision
*/
public function getInstance($row) : \LORIS\Data\DataInstance
{
if($row['CenterID'] !== null) {
if ($row['CenterID'] !== null) {
$cid = new \CenterID($row['CenterID']);
unset($row['CenterID']);
return new DICOMArchiveRowWithSession($row, $cid);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,14 @@ class DICOMArchiveRowWithoutSession implements \LORIS\Data\DataInstance
* Create a new DICOMArchiveRow without a session.
*
* Session-less DICOMArchiveRows do not have CenterIDs to be filtered
* by.
* by.
*
* @param array $row The row (in the same format as \Database::pselectRow
* returns)
*/
public function __construct(array $row)
{
$this->DBRow = $row;
$this->DBRow = $row;
}

/**
Expand Down

0 comments on commit 67c0140

Please sign in to comment.