mirror of
https://github.com/WordPress/five-for-the-future.git
synced 2025-07-05 02:15:45 +03:00
Apply coding standards
This commit is contained in:
parent
32b738d95f
commit
0964167f12
3 changed files with 15 additions and 13 deletions
|
@ -790,6 +790,7 @@ function prune_unnotifiable_users( array $contributors ) : array {
|
|||
* Determine if a contributor is active or not.
|
||||
*
|
||||
* Currently this only tracks the last login, but in the future it will be expanded to be more granular.
|
||||
*
|
||||
* @link https://github.com/WordPress/five-for-the-future/issues/210
|
||||
*/
|
||||
function is_active( int $last_login ) : bool {
|
||||
|
|
|
@ -157,7 +157,7 @@ function get_snapshot_data() {
|
|||
|
||||
$team_contributor_key = sprintf( 'team_%s_contributors', $attribution_prefix );
|
||||
|
||||
$snapshot_data[ $attribution_prefix . '_hours'] += $user['hours_per_week'];
|
||||
$snapshot_data[ $attribution_prefix . '_hours' ] += $user['hours_per_week'];
|
||||
|
||||
foreach ( $user['team_names'] as $team ) {
|
||||
if ( isset( $snapshot_data[ $team_contributor_key ][ $team ] ) ) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue