mirror of
https://github.com/WordPress/five-for-the-future.git
synced 2025-07-02 09:11:17 +03:00
phpcs
This commit is contained in:
parent
49fe6d8e95
commit
d6234a68d5
|
@ -222,7 +222,7 @@ function render_contributor_report_page() {
|
||||||
$user_id = get_post_meta( $c->ID, 'wporg_user_id', true );
|
$user_id = get_post_meta( $c->ID, 'wporg_user_id', true );
|
||||||
$xprofile = $all_contributor_data[ $user_id ] ?? [
|
$xprofile = $all_contributor_data[ $user_id ] ?? [
|
||||||
'team_names' => [],
|
'team_names' => [],
|
||||||
'hours_per_week' => 0
|
'hours_per_week' => 0,
|
||||||
];
|
];
|
||||||
$xprofile_teams = $xprofile['team_names'] ?? [];
|
$xprofile_teams = $xprofile['team_names'] ?? [];
|
||||||
$user = get_user_by( 'ID', $user_id );
|
$user = get_user_by( 'ID', $user_id );
|
||||||
|
|
|
@ -75,7 +75,7 @@ function get_all_xprofile_contributor_hours_teams(): array {
|
||||||
*
|
*
|
||||||
* @return 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();
|
$all_data = get_all_xprofile_contributor_hours_teams();
|
||||||
|
|
||||||
$newdata = array();
|
$newdata = array();
|
||||||
|
@ -87,7 +87,6 @@ function get_all_xprofile_contributors_indexed() : array {
|
||||||
}
|
}
|
||||||
|
|
||||||
return $newdata;
|
return $newdata;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue