mirror of
https://github.com/WordPress/five-for-the-future.git
synced 2025-07-04 10:05:43 +03:00
Tools: Add formatting command, run to fix minor phpcs issues
This commit is contained in:
parent
28b102bc4c
commit
bb25e0c78b
13 changed files with 55 additions and 53 deletions
|
@ -171,9 +171,9 @@ function get_snapshot_data() {
|
|||
|
||||
if ( Contributor\is_active( $user['last_logged_in'] ) ) {
|
||||
if ( $is_company_sponsored ) {
|
||||
$active_company_sponsored_contributors++;
|
||||
++$active_company_sponsored_contributors;
|
||||
} else {
|
||||
$active_self_sponsored_contributors++;
|
||||
++$active_self_sponsored_contributors;
|
||||
}
|
||||
} else {
|
||||
$snapshot_data['inactive_contributor_ids'][] = $user['user_id'];
|
||||
|
@ -185,7 +185,7 @@ function get_snapshot_data() {
|
|||
|
||||
foreach ( $user['team_names'] as $team ) {
|
||||
if ( isset( $snapshot_data[ $team_contributor_key ][ $team ] ) ) {
|
||||
$snapshot_data[ $team_contributor_key ][ $team ] ++;
|
||||
++$snapshot_data[ $team_contributor_key ][ $team ];
|
||||
} else {
|
||||
$snapshot_data[ $team_contributor_key ][ $team ] = 1;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue