This commit is contained in:
Paul Kevan 2024-07-03 12:04:31 +01:00
parent 49fe6d8e95
commit d6234a68d5
2 changed files with 2 additions and 3 deletions

View file

@ -222,7 +222,7 @@ function render_contributor_report_page() {
$user_id = get_post_meta( $c->ID, 'wporg_user_id', true );
$xprofile = $all_contributor_data[ $user_id ] ?? [
'team_names' => [],
'hours_per_week' => 0
'hours_per_week' => 0,
];
$xprofile_teams = $xprofile['team_names'] ?? [];
$user = get_user_by( 'ID', $user_id );

View file

@ -75,7 +75,7 @@ function get_all_xprofile_contributor_hours_teams(): array {
*
* @return array
*/
function get_all_xprofile_contributors_indexed() : array {
function get_all_xprofile_contributors_indexed(): array {
$all_data = get_all_xprofile_contributor_hours_teams();
$newdata = array();
@ -87,7 +87,6 @@ function get_all_xprofile_contributors_indexed() : array {
}
return $newdata;
}
/**