Skip to content

Commit

Permalink
Added phpdoc block and type hints to row_fill
Browse files Browse the repository at this point in the history
  • Loading branch information
marcusgreen committed Oct 25, 2023
1 parent cdd0433 commit 25db2d7
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,14 @@ function get_table_data(\stdClass $driprelease) : array {
return $data ?? [];
}

function row_fill(array $row, $cm) : array {
/**
* Simplify get_table_data
*
* @param array $row
* @param cm_info $cm
* @return array
*/
function row_fill(array $row, cm_info $cm) : array {
global $DB;

$details = $DB->get_record($row['modtype'], ['id' => $cm->instance]);
Expand Down

0 comments on commit 25db2d7

Please sign in to comment.