From 39bf71881f317ce622aa269820155c7dc4960393 Mon Sep 17 00:00:00 2001 From: Paul Kevan Date: Tue, 21 May 2024 12:06:02 +0100 Subject: [PATCH] fix phpcs --- plugins/wporg-5ftf/includes/reports.php | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/plugins/wporg-5ftf/includes/reports.php b/plugins/wporg-5ftf/includes/reports.php index e8d52bd..dd0b70d 100644 --- a/plugins/wporg-5ftf/includes/reports.php +++ b/plugins/wporg-5ftf/includes/reports.php @@ -1,6 +1,6 @@ - + - + @@ -140,10 +140,8 @@ function render_company_report_page() { echo ' '; echo ' '; echo ' '; - echo ''; - $export_data[] = [ $pledge->post_title, $pledge->post_status, $hours, $contributors, $usernames, $teams, $company_url, $pledge_url, $email, $date_created, $date_modified ]; - + $export_data[] = array( $pledge->post_title, $pledge->post_status, $hours, $contributors, $usernames, $teams, $company_url, $pledge_url, $email, $date_created, $date_modified ); } echo '
' . esc_html( $email ). '' . esc_html( $date_created ) . '' . esc_html( $date_modified ) . '
'; echo '

Total contributors: ' . esc_html( $all_contributors ) . '

'; @@ -152,7 +150,7 @@ function render_company_report_page() { set_transient( 'wporg_5ftf_company_report_' . $status, $export_data, 60 ); } -/* +/** * CSV export runner, grabs data lazily from a transient. * @param $data array. */ @@ -172,7 +170,7 @@ function export_csv() { $exporter = new Export_CSV( array( 'filename' => 'company-report-' . $status, - 'headers' => array( 'Company', 'Status', 'Hours', 'Contributors', 'Users', 'Teams', 'Company URL', 'Pledge URL', 'Email', 'Created', 'Last updated' ), + 'headers' => array( 'Company','Status','Hours','Contributors','Users','Teams','Company URL','Pledge URL','Email','Created','Last updated' ), 'data' => $data, ) );