Skip to content

Commit

Permalink
Phpcs fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Camwyn committed Nov 7, 2023
1 parent 8bd4fb6 commit 5c5c6b6
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/Telemetry/Data_Providers/Debug_Data.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ public function get_data(): array {
unset( $plugins[ $active_plugin ] );
}
}

$info['telemetry-active-plugins']['fields'] = $active;
$info['telemetry-inactive-plugins']['fields'] = $plugins;

Expand All @@ -59,12 +60,12 @@ public function get_data(): array {
*
* @since TBD
*
* @param array<string,mixed> $data Raw Site Health data
* @param array<string,mixed> $data Raw Site Health data.
*
* @return array<string,mixed> Filtered Site Health data
* @return array<string,mixed> Filtered Site Health data.
*/
function clean_private_data( $data ): array {
foreach( $data as &$details) {
public function clean_private_data ( $data ): array {
foreach ( $data as &$details ) {
// remove private info.
$details['fields'] = array_filter(
$details['fields'],
Expand Down

0 comments on commit 5c5c6b6

Please sign in to comment.