| @@ -34,13 +34,13 @@ | ||
| 34 | 34 | * Constructor. |
| 35 | 35 | */ |
| 36 | 36 | public function __construct() { |
| 37 | 37 | $this->id = 'earnings'; |
| 38 | - $this->label = esc_html__( 'Income', 'give' ); | |
| 38 | + $this->label = esc_html__( 'Revenue', 'give' ); | |
| 39 | 39 | |
| 40 | 40 | parent::__construct(); |
| 41 | 41 | |
| 42 | - add_action( 'give_admin_field_report_earnings', array( $this, 'render_report_earnings_field' ), 10, 2 ); | |
| 42 | + add_action( 'give_admin_field_report_earnings', [ $this, 'render_report_earnings_field' ], 10, 2 ); | |
| 43 | 43 | |
| 44 | 44 | // Do not use main form for this tab. |
| 45 | 45 | if ( give_get_current_setting_tab() === $this->id ) { |
| 46 | 46 | add_action( 'give-reports_open_form', '__return_empty_string' ); |
| @@ -64,25 +64,25 @@ | ||
| 64 | 64 | * @param array $settings |
| 65 | 65 | */ |
| 66 | 66 | $settings = apply_filters( |
| 67 | 67 | 'give_get_settings_' . $this->id, |
| 68 | - array( | |
| 69 | - array( | |
| 68 | + [ | |
| 69 | + [ | |
| 70 | 70 | 'id' => 'give_tools_earnings', |
| 71 | 71 | 'type' => 'title', |
| 72 | 72 | 'table_html' => false, |
| 73 | - ), | |
| 74 | - array( | |
| 73 | + ], | |
| 74 | + [ | |
| 75 | 75 | 'id' => 'earnings', |
| 76 | - 'name' => esc_html__( 'Income', 'give' ), | |
| 76 | + 'name' => esc_html__( 'Revenue', 'give' ), | |
| 77 | 77 | 'type' => 'report_earnings', |
| 78 | - ), | |
| 79 | - array( | |
| 78 | + ], | |
| 79 | + [ | |
| 80 | 80 | 'id' => 'give_tools_earnings', |
| 81 | 81 | 'type' => 'sectionend', |
| 82 | 82 | 'table_html' => false, |
| 83 | - ), | |
| 84 | - ) | |
| 83 | + ], | |
| 84 | + ] | |
| 85 | 85 | ); |
| 86 | 86 | |
| 87 | 87 | // Output. |
| 88 | 88 | return $settings; |