Skip to content

Commit

Permalink
[API] Changed toJSON to jsonSerialize and resored strict_types declar…
Browse files Browse the repository at this point in the history
…ation
  • Loading branch information
spell00 committed Nov 4, 2020
1 parent 4b70446 commit d3bdd67
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions modules/api/php/models/projectdicomsrow.class.inc
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,9 @@ class ProjectImagesRow implements \LORIS\Data\DataInstance
/**
* Implements \LORIS\Data\DataInstance interface for this row.
*
* @return string the row data.
* @return array the row data.
*/
public function toJSON() : string
public function jsonSerialize() : array
{
$obj = [
'Candidate' => $this->_candid,
Expand All @@ -81,7 +81,7 @@ class ProjectImagesRow implements \LORIS\Data\DataInstance
$obj['Link'] = "/candidates/$candid/$visit/images/$filename";
$obj['InsertTime'] = date('c', (int) $obj['InsertTime']);

return json_encode($obj);
return $obj;
}

/**
Expand Down

0 comments on commit d3bdd67

Please sign in to comment.