mirror of
https://github.com/WordPress/five-for-the-future.git
synced 2025-07-14 06:15:46 +03:00
phpcs
This commit is contained in:
parent
a26287cd68
commit
49fe6d8e95
2 changed files with 10 additions and 7 deletions
|
@ -76,12 +76,14 @@ function get_all_xprofile_contributor_hours_teams(): array {
|
|||
* @return array
|
||||
*/
|
||||
function get_all_xprofile_contributors_indexed() : array {
|
||||
|
||||
$all_data = get_all_xprofile_contributor_hours_teams();
|
||||
|
||||
$newdata = array();
|
||||
foreach ( $all_data as $contributor ) {
|
||||
$newdata[ $contributor->user_id ] = [ 'hours_per_week' => $contributor->hours_per_week, 'team_names' => $contributor->team_names ];
|
||||
$newdata[ $contributor->user_id ] = [
|
||||
'hours_per_week' => $contributor->hours_per_week,
|
||||
'team_names' => $contributor->team_names,
|
||||
];
|
||||
}
|
||||
|
||||
return $newdata;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue