Test Failed
Push — master ( 53b3e3...c6c536 )
by Devin
08:18
created
includes/admin/tools/import/class-give-import-core-settings.php 1 patch
Spacing   +75 added lines, -75 removed lines patch added patch discarded remove patch
@@ -11,11 +11,11 @@  discard block
 block discarded – undo
11 11
  * @since       1.8.17
12 12
  */
13 13
 
14
-if ( ! defined( 'ABSPATH' ) ) {
14
+if ( ! defined('ABSPATH')) {
15 15
 	exit; // Exit if accessed directly
16 16
 }
17 17
 
18
-if ( ! class_exists( 'Give_Import_Core_Settings' ) ) {
18
+if ( ! class_exists('Give_Import_Core_Settings')) {
19 19
 
20 20
 	/**
21 21
 	 * Give_Import_Core_Settings.
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
 		 * @return static
78 78
 		 */
79 79
 		public static function get_instance() {
80
-			if ( null === static::$instance ) {
80
+			if (null === static::$instance) {
81 81
 				self::$instance = new static();
82 82
 			}
83 83
 
@@ -104,26 +104,26 @@  discard block
 block discarded – undo
104 104
 		 * @return void
105 105
 		 */
106 106
 		private function setup_hooks() {
107
-			if ( ! $this->is_donations_import_page() ) {
107
+			if ( ! $this->is_donations_import_page()) {
108 108
 				return;
109 109
 			}
110 110
 
111 111
 			// Do not render main import tools page.
112
-			remove_action( 'give_admin_field_tools_import', array( 'Give_Settings_Import', 'render_import_field', ) );
112
+			remove_action('give_admin_field_tools_import', array('Give_Settings_Import', 'render_import_field',));
113 113
 
114 114
 			// Render donation import page
115
-			add_action( 'give_admin_field_tools_import', array( $this, 'render_page' ) );
115
+			add_action('give_admin_field_tools_import', array($this, 'render_page'));
116 116
 
117 117
 			// Print the HTML.
118
-			add_action( 'give_tools_import_core_settings_form_start', array( $this, 'html' ), 10 );
118
+			add_action('give_tools_import_core_settings_form_start', array($this, 'html'), 10);
119 119
 
120 120
 			// Run when form submit.
121
-			add_action( 'give-tools_save_import', array( $this, 'save' ) );
121
+			add_action('give-tools_save_import', array($this, 'save'));
122 122
 
123
-			add_action( 'give-tools_update_notices', array( $this, 'update_notices' ), 11, 1 );
123
+			add_action('give-tools_update_notices', array($this, 'update_notices'), 11, 1);
124 124
 
125 125
 			// Used to add submit button.
126
-			add_action( 'give_tools_import_core_settings_form_end', array( $this, 'submit' ), 10 );
126
+			add_action('give_tools_import_core_settings_form_end', array($this, 'submit'), 10);
127 127
 		}
128 128
 
129 129
 		/**
@@ -135,9 +135,9 @@  discard block
 block discarded – undo
135 135
 		 *
136 136
 		 * @return mixed
137 137
 		 */
138
-		public function update_notices( $messages ) {
139
-			if ( ! empty( $_GET['tab'] ) && 'import' === give_clean( $_GET['tab'] ) ) {
140
-				unset( $messages['give-setting-updated'] );
138
+		public function update_notices($messages) {
139
+			if ( ! empty($_GET['tab']) && 'import' === give_clean($_GET['tab'])) {
140
+				unset($messages['give-setting-updated']);
141 141
 			}
142 142
 
143 143
 			return $messages;
@@ -149,7 +149,7 @@  discard block
 block discarded – undo
149 149
 		 * @since 1.8.17
150 150
 		 */
151 151
 		public function submit() {
152
-			wp_nonce_field( 'give-save-settings', '_give-save-settings' );
152
+			wp_nonce_field('give-save-settings', '_give-save-settings');
153 153
 			?>
154 154
 			<input type="hidden" class="import-step" id="import-step" name="step" value="<?php echo $this->get_step(); ?>"/>
155 155
 			<input type="hidden" class="importer-type" value="<?php echo $this->importer_type; ?>"/>
@@ -169,11 +169,11 @@  discard block
 block discarded – undo
169 169
 			?>
170 170
 			<section>
171 171
 				<table
172
-					class="widefat export-options-table give-table <?php echo "step-{$step}"; ?> <?php echo( 1 === $step && ! empty( $this->is_json_valid ) ? 'give-hidden' : '' ); ?> "
172
+					class="widefat export-options-table give-table <?php echo "step-{$step}"; ?> <?php echo(1 === $step && ! empty($this->is_json_valid) ? 'give-hidden' : ''); ?> "
173 173
 					id="<?php echo "step-{$step}"; ?>">
174 174
 					<tbody>
175 175
 					<?php
176
-					switch ( $step ) {
176
+					switch ($step) {
177 177
 						case 1:
178 178
 							$this->render_upload_html();
179 179
 							break;
@@ -200,14 +200,14 @@  discard block
 block discarded – undo
200 200
 		public function import_success() {
201 201
 			// Imported successfully
202 202
 
203
-			$success = (bool) ( isset( $_GET['success'] ) ? give_clean( $_GET['success'] ) : false );
204
-			$undo = (bool) ( isset( $_GET['undo'] ) ? give_clean( $_GET['undo'] ) : false );
203
+			$success = (bool) (isset($_GET['success']) ? give_clean($_GET['success']) : false);
204
+			$undo = (bool) (isset($_GET['undo']) ? give_clean($_GET['undo']) : false);
205 205
 			$query_arg_setting = array(
206 206
 				'post_type' => 'give_forms',
207 207
 				'page'      => 'give-settings',
208 208
 			);
209 209
 
210
-			if ( $undo ) {
210
+			if ($undo) {
211 211
 				$success = false;
212 212
 			}
213 213
 
@@ -220,30 +220,30 @@  discard block
 block discarded – undo
220 220
 				'undo'      => 'true',
221 221
 			);
222 222
 
223
-			$title = __( 'Settings Importing Completed!', 'give' );
224
-			if ( $success ) {
223
+			$title = __('Settings Importing Completed!', 'give');
224
+			if ($success) {
225 225
 				$query_arg_success['undo'] = '1';
226 226
 				$query_arg_success['step'] = '3';
227 227
 				$query_arg_success['success'] = '1';
228
-				$text = __( 'Undo Importing', 'give' );
228
+				$text = __('Undo Importing', 'give');
229 229
 			} else {
230
-				if ( $undo ) {
231
-					$host_give_options = get_option( 'give_settings_old', array() );
232
-					update_option( 'give_settings', $host_give_options, false );
233
-					$title = __( 'Undo of Setting Imported Completed!', 'give' );
230
+				if ($undo) {
231
+					$host_give_options = get_option('give_settings_old', array());
232
+					update_option('give_settings', $host_give_options, false);
233
+					$title = __('Undo of Setting Imported Completed!', 'give');
234 234
 				} else {
235
-					$title = __( 'Failed to import', 'give' );
235
+					$title = __('Failed to import', 'give');
236 236
 				}
237 237
 
238
-				$text = __( 'Importing Again', 'give' );
238
+				$text = __('Importing Again', 'give');
239 239
 			}
240 240
 			?>
241 241
 			<tr valign="top" class="give-import-dropdown">
242 242
 				<th colspan="2">
243 243
 					<h2><?php echo $title; ?></h2>
244 244
 					<p>
245
-						<a class="button button-large button-secondary" href="<?php echo add_query_arg( $query_arg_success, admin_url( 'edit.php' ) ); ?>"><?php echo $text; ?></a>
246
-						<a class="button button-large button-secondary" href="<?php echo add_query_arg( $query_arg_setting, admin_url( 'edit.php' ) ); ?>"><?php echo __( 'View Settings', 'give' ); ?></a>
245
+						<a class="button button-large button-secondary" href="<?php echo add_query_arg($query_arg_success, admin_url('edit.php')); ?>"><?php echo $text; ?></a>
246
+						<a class="button button-large button-secondary" href="<?php echo add_query_arg($query_arg_setting, admin_url('edit.php')); ?>"><?php echo __('View Settings', 'give'); ?></a>
247 247
 					</p>
248 248
 				</th>
249 249
 			</tr>
@@ -256,14 +256,14 @@  discard block
 block discarded – undo
256 256
 		 * @since 1.8.17
257 257
 		 */
258 258
 		public function start_import() {
259
-			$type      = ( ! empty( $_GET['type'] ) ? give_clean( $_GET['type'] ) : 'replace' );
260
-			$file_name = ( ! empty( $_GET['file_name'] ) ? give_clean( $_GET['file_name'] ) : '' );
259
+			$type      = ( ! empty($_GET['type']) ? give_clean($_GET['type']) : 'replace');
260
+			$file_name = ( ! empty($_GET['file_name']) ? give_clean($_GET['file_name']) : '');
261 261
 
262 262
 			?>
263 263
 			<tr valign="top" class="give-import-dropdown">
264 264
 				<th colspan="2">
265
-					<h2 id="give-import-title"><?php esc_html_e( 'Importing', 'give' ) ?></h2>
266
-					<p class="give-field-description"><?php esc_html_e( 'Your settings are now being imported...', 'give' ) ?></p>
265
+					<h2 id="give-import-title"><?php esc_html_e('Importing', 'give') ?></h2>
266
+					<p class="give-field-description"><?php esc_html_e('Your settings are now being imported...', 'give') ?></p>
267 267
 				</th>
268 268
 			</tr>
269 269
 
@@ -290,14 +290,14 @@  discard block
 block discarded – undo
290 290
 			$step = $this->get_step();
291 291
 			?>
292 292
 			<ol class="give-progress-steps">
293
-				<li class="<?php echo( 1 === $step ? 'active' : '' ); ?>">
294
-					<?php esc_html_e( 'Upload JSON file', 'give' ); ?>
293
+				<li class="<?php echo(1 === $step ? 'active' : ''); ?>">
294
+					<?php esc_html_e('Upload JSON file', 'give'); ?>
295 295
 				</li>
296
-				<li class="<?php echo( 2 === $step ? 'active' : '' ); ?>">
297
-					<?php esc_html_e( 'Import', 'give' ); ?>
296
+				<li class="<?php echo(2 === $step ? 'active' : ''); ?>">
297
+					<?php esc_html_e('Import', 'give'); ?>
298 298
 				</li>
299
-				<li class="<?php echo( 3 === $step ? 'active' : '' ); ?>">
300
-					<?php esc_html_e( 'Done!', 'give' ); ?>
299
+				<li class="<?php echo(3 === $step ? 'active' : ''); ?>">
300
+					<?php esc_html_e('Done!', 'give'); ?>
301 301
 				</li>
302 302
 			</ol>
303 303
 			<?php
@@ -311,14 +311,14 @@  discard block
 block discarded – undo
311 311
 		 * @return int $step on which step doest the import is on.
312 312
 		 */
313 313
 		public function get_step() {
314
-			$step    = (int) ( isset( $_REQUEST['step'] ) ? give_clean( $_REQUEST['step'] ) : 0 );
314
+			$step    = (int) (isset($_REQUEST['step']) ? give_clean($_REQUEST['step']) : 0);
315 315
 			$on_step = 1;
316 316
 
317
-			if ( empty( $step ) || 1 === $step ) {
317
+			if (empty($step) || 1 === $step) {
318 318
 				$on_step = 1;
319
-			} elseif ( 2 === $step ) {
319
+			} elseif (2 === $step) {
320 320
 				$on_step = 2;
321
-			} elseif ( 3 === $step ) {
321
+			} elseif (3 === $step) {
322 322
 				$on_step = 3;
323 323
 			}
324 324
 
@@ -331,7 +331,7 @@  discard block
 block discarded – undo
331 331
 		 * @since 1.8.17
332 332
 		 */
333 333
 		public function render_page() {
334
-			include_once GIVE_PLUGIN_DIR . 'includes/admin/tools/views/html-admin-page-import-core-settings.php';
334
+			include_once GIVE_PLUGIN_DIR.'includes/admin/tools/views/html-admin-page-import-core-settings.php';
335 335
 		}
336 336
 
337 337
 		/**
@@ -343,28 +343,28 @@  discard block
 block discarded – undo
343 343
 		 * @return void
344 344
 		 */
345 345
 		public function render_upload_html() {
346
-			$json = ( isset( $_POST['json'] ) ? give_clean( $_POST['json'] ) : '' );
347
-			$type = ( isset( $_POST['type'] ) ? give_clean( $_POST['type'] ) : 'merge' );
346
+			$json = (isset($_POST['json']) ? give_clean($_POST['json']) : '');
347
+			$type = (isset($_POST['type']) ? give_clean($_POST['type']) : 'merge');
348 348
 			$step = $this->get_step();
349 349
 
350 350
 			?>
351 351
 			<tr valign="top">
352 352
 				<th colspan="2">
353
-					<h2 id="give-import-title"><?php esc_html_e( 'Import Core Settings from a JSON file', 'give' ) ?></h2>
354
-					<p class="give-field-description"><?php esc_html_e( 'This tool allows you to import Give settings from another Give installation. Settings imported contain data from Give core as well as any of our Premium Add-ons.', 'give' ) ?></p>
353
+					<h2 id="give-import-title"><?php esc_html_e('Import Core Settings from a JSON file', 'give') ?></h2>
354
+					<p class="give-field-description"><?php esc_html_e('This tool allows you to import Give settings from another Give installation. Settings imported contain data from Give core as well as any of our Premium Add-ons.', 'give') ?></p>
355 355
 				</th>
356 356
 			</tr>
357 357
 
358 358
 			<tr valign="top">
359 359
 				<th scope="row" class="titledesc">
360
-					<label for="json"><?php esc_html_e( 'Choose a JSON file:', 'give' ) ?></label>
360
+					<label for="json"><?php esc_html_e('Choose a JSON file:', 'give') ?></label>
361 361
 				</th>
362 362
 				<td class="give-forminp">
363 363
 					<div class="give-field-wrap">
364 364
 						<label for="json">
365 365
 							<input type="file" name="json" class="give-upload-json-file" value="<?php echo $json; ?>"
366 366
 							       accept=".json">
367
-							<p class="give-field-description"><?php esc_html_e( 'The file type must be JSON.', 'give' )?></p>
367
+							<p class="give-field-description"><?php esc_html_e('The file type must be JSON.', 'give')?></p>
368 368
 						</label>
369 369
 					</div>
370 370
 				</td>
@@ -373,21 +373,21 @@  discard block
 block discarded – undo
373 373
 			$settings = array(
374 374
 				array(
375 375
 					'id'          => 'type',
376
-					'name'        => __( 'Merge Type:', 'give' ),
377
-					'description' => __( 'Select "Merge" to retain existing settings, or "Replace" to overwrite with the settings from the JSON file', 'give' ),
376
+					'name'        => __('Merge Type:', 'give'),
377
+					'description' => __('Select "Merge" to retain existing settings, or "Replace" to overwrite with the settings from the JSON file', 'give'),
378 378
 					'default'     => $type,
379 379
 					'type'        => 'radio_inline',
380 380
 					'options'     => array(
381
-						'merge'   => __( 'Merge', 'give' ),
382
-						'replace' => __( 'Replace', 'give' ),
381
+						'merge'   => __('Merge', 'give'),
382
+						'replace' => __('Replace', 'give'),
383 383
 					),
384 384
 				),
385 385
 			);
386 386
 
387
-			$settings = apply_filters( 'give_import_core_setting_html', $settings );
387
+			$settings = apply_filters('give_import_core_setting_html', $settings);
388 388
 
389
-			if ( empty( $this->is_json_valid ) ) {
390
-				Give_Admin_Settings::output_fields( $settings, 'give_settings' );
389
+			if (empty($this->is_json_valid)) {
390
+				Give_Admin_Settings::output_fields($settings, 'give_settings');
391 391
 				?>
392 392
 				<tr valign="top">
393 393
 					<th></th>
@@ -395,7 +395,7 @@  discard block
 block discarded – undo
395 395
 						<input type="submit"
396 396
 						       class="button button-primary button-large button-secondary <?php echo "step-{$step}"; ?>"
397 397
 						       id="recount-stats-submit"
398
-						       value="<?php esc_attr_e( 'Submit', 'give' ); ?>"/>
398
+						       value="<?php esc_attr_e('Submit', 'give'); ?>"/>
399 399
 					</th>
400 400
 				</tr>
401 401
 				<?php
@@ -417,20 +417,20 @@  discard block
 block discarded – undo
417 417
 			$step = $this->get_step();
418 418
 
419 419
 			// Validation for first step.
420
-			if ( 1 === $step ) {
421
-				$type          = ( ! empty( $_REQUEST['type'] ) ? give_clean( $_REQUEST['type'] ) : 'replace' );
420
+			if (1 === $step) {
421
+				$type          = ( ! empty($_REQUEST['type']) ? give_clean($_REQUEST['type']) : 'replace');
422 422
 				$core_settings = self::upload_widget_settings_file();
423
-				if ( ! empty( $core_settings['error'] ) ) {
424
-					Give_Admin_Settings::add_error( 'give-import-csv', __( 'Please upload a valid JSON settings file.', 'give' ) );
423
+				if ( ! empty($core_settings['error'])) {
424
+					Give_Admin_Settings::add_error('give-import-csv', __('Please upload a valid JSON settings file.', 'give'));
425 425
 				} else {
426
-					$file_path = explode( '/', $core_settings['file'] );
427
-					$count     = ( count( $file_path ) - 1 );
428
-					$url       = give_import_page_url( (array) apply_filters( 'give_import_core_settings_importing_url', array(
426
+					$file_path = explode('/', $core_settings['file']);
427
+					$count     = (count($file_path) - 1);
428
+					$url       = give_import_page_url((array) apply_filters('give_import_core_settings_importing_url', array(
429 429
 						'step'          => '2',
430 430
 						'importer-type' => $this->importer_type,
431 431
 						'type'          => $type,
432
-						'file_name'     => $file_path[ $count ],
433
-					) ) );
432
+						'file_name'     => $file_path[$count],
433
+					)));
434 434
 
435 435
 
436 436
 					$this->is_json_valid = $url;
@@ -445,7 +445,7 @@  discard block
 block discarded – undo
445 445
 		 * @return bool
446 446
 		 */
447 447
 		private function is_donations_import_page() {
448
-			return 'import' === give_get_current_setting_tab() && isset( $_GET['importer-type'] ) && $this->importer_type === give_clean( $_GET['importer-type'] );
448
+			return 'import' === give_get_current_setting_tab() && isset($_GET['importer-type']) && $this->importer_type === give_clean($_GET['importer-type']);
449 449
 		}
450 450
 
451 451
 		/**
@@ -454,14 +454,14 @@  discard block
 block discarded – undo
454 454
 		 */
455 455
 		public static function upload_widget_settings_file() {
456 456
 			$upload = false;
457
-			if ( isset( $_FILES['json'] ) ) {
458
-				add_filter( 'upload_mimes', array( __CLASS__, 'json_upload_mimes' ) );
457
+			if (isset($_FILES['json'])) {
458
+				add_filter('upload_mimes', array(__CLASS__, 'json_upload_mimes'));
459 459
 
460
-				$upload = wp_handle_upload( $_FILES['json'], array( 'test_form' => false ) );
460
+				$upload = wp_handle_upload($_FILES['json'], array('test_form' => false));
461 461
 
462
-				remove_filter( 'upload_mimes', array( __CLASS__, 'json_upload_mimes' ) );
462
+				remove_filter('upload_mimes', array(__CLASS__, 'json_upload_mimes'));
463 463
 			} else {
464
-				Give_Admin_Settings::add_error( 'give-import-csv', __( 'Please upload or provide a valid JSON file.', 'give' ) );
464
+				Give_Admin_Settings::add_error('give-import-csv', __('Please upload or provide a valid JSON file.', 'give'));
465 465
 			}
466 466
 
467 467
 			return $upload;
@@ -472,7 +472,7 @@  discard block
 block discarded – undo
472 472
 		 *
473 473
 		 * @param array $existing_mimes
474 474
 		 */
475
-		public static function json_upload_mimes( $existing_mimes = array() ) {
475
+		public static function json_upload_mimes($existing_mimes = array()) {
476 476
 			$existing_mimes['json'] = 'application/json';
477 477
 
478 478
 			return $existing_mimes;
Please login to merge, or discard this patch.
includes/admin/tools/export/give-export-donations-exporter.php 1 patch
Spacing   +159 added lines, -159 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
12 12
  */
13 13
 
14 14
 // Exit if accessed directly.
15
-if ( ! defined( 'ABSPATH' ) ) {
15
+if ( ! defined('ABSPATH')) {
16 16
 	exit;
17 17
 }
18 18
 
@@ -85,28 +85,28 @@  discard block
 block discarded – undo
85 85
 	 *
86 86
 	 * @param array $request The Form Data passed into the batch processing.
87 87
 	 */
88
-	public function set_properties( $request ) {
88
+	public function set_properties($request) {
89 89
 
90 90
 		// Set data from form submission
91
-		if ( isset( $_POST['form'] ) ) {
92
-			$this->data = give_clean( wp_parse_args( $_POST['form'] ) );
91
+		if (isset($_POST['form'])) {
92
+			$this->data = give_clean(wp_parse_args($_POST['form']));
93 93
 		}
94 94
 
95 95
 		$this->form       = $this->data['forms'];
96
-		$this->categories = ! empty( $request['give_forms_categories'] ) ? (array) $request['give_forms_categories'] : array();
97
-		$this->tags       = ! empty( $request['give_forms_tags'] ) ? (array) $request['give_forms_tags'] : array();
98
-		$this->form_id    = $this->get_form_ids( $request );
99
-		$this->price_id   = isset( $request['give_price_option'] ) && ( 'all' !== $request['give_price_option'] && '' !== $request['give_price_option'] ) ? absint( $request['give_price_option'] ) : null;
100
-		$this->start      = isset( $request['start'] ) ? sanitize_text_field( $request['start'] ) : '';
101
-		$this->end        = isset( $request['end'] ) ? sanitize_text_field( $request['end'] ) : '';
102
-		$this->status     = isset( $request['status'] ) ? sanitize_text_field( $request['status'] ) : 'complete';
96
+		$this->categories = ! empty($request['give_forms_categories']) ? (array) $request['give_forms_categories'] : array();
97
+		$this->tags       = ! empty($request['give_forms_tags']) ? (array) $request['give_forms_tags'] : array();
98
+		$this->form_id    = $this->get_form_ids($request);
99
+		$this->price_id   = isset($request['give_price_option']) && ('all' !== $request['give_price_option'] && '' !== $request['give_price_option']) ? absint($request['give_price_option']) : null;
100
+		$this->start      = isset($request['start']) ? sanitize_text_field($request['start']) : '';
101
+		$this->end        = isset($request['end']) ? sanitize_text_field($request['end']) : '';
102
+		$this->status     = isset($request['status']) ? sanitize_text_field($request['status']) : 'complete';
103 103
 
104 104
 		/**
105 105
 		 * Hook to use after setting properties.
106 106
 		 *
107 107
 		 * @since 2.1.3
108 108
 		 */
109
-		do_action( 'give_export_donations_form_data', $this->data );
109
+		do_action('give_export_donations_form_data', $this->data);
110 110
 	}
111 111
 
112 112
 	/**
@@ -118,13 +118,13 @@  discard block
 block discarded – undo
118 118
 	 *
119 119
 	 * @return array|boolean|null $form get all the donation id that need to be exported
120 120
 	 */
121
-	public function get_form_ids( $request = array() ) {
122
-		$form = ! empty( $request['forms'] ) && 0 !== $request['forms'] ? absint( $request['forms'] ) : null;
121
+	public function get_form_ids($request = array()) {
122
+		$form = ! empty($request['forms']) && 0 !== $request['forms'] ? absint($request['forms']) : null;
123 123
 
124
-		$form_ids = ! empty( $request['form_ids'] ) ? sanitize_text_field( $request['form_ids'] ) : null;
124
+		$form_ids = ! empty($request['form_ids']) ? sanitize_text_field($request['form_ids']) : null;
125 125
 
126
-		if ( empty( $form ) && ! empty( $form_ids ) && ( ! empty( $this->categories ) || ! empty( $this->tags ) ) ) {
127
-			$form = explode( ',', $form_ids );
126
+		if (empty($form) && ! empty($form_ids) && ( ! empty($this->categories) || ! empty($this->tags))) {
127
+			$form = explode(',', $form_ids);
128 128
 		}
129 129
 
130 130
 		return $form;
@@ -141,14 +141,14 @@  discard block
 block discarded – undo
141 141
 	 */
142 142
 	public function csv_cols() {
143 143
 
144
-		$columns = isset( $this->data['give_give_donations_export_option'] ) ? $this->data['give_give_donations_export_option'] : array();
144
+		$columns = isset($this->data['give_give_donations_export_option']) ? $this->data['give_give_donations_export_option'] : array();
145 145
 
146 146
 		// We need columns.
147
-		if ( empty( $columns ) ) {
147
+		if (empty($columns)) {
148 148
 			return false;
149 149
 		}
150 150
 
151
-		$this->cols = $this->get_cols( $columns );
151
+		$this->cols = $this->get_cols($columns);
152 152
 
153 153
 		return $this->cols;
154 154
 	}
@@ -163,88 +163,88 @@  discard block
 block discarded – undo
163 163
 	 *
164 164
 	 * @return array
165 165
 	 */
166
-	private function get_cols( $columns ) {
166
+	private function get_cols($columns) {
167 167
 
168 168
 		$cols = array();
169 169
 
170
-		foreach ( $columns as $key => $value ) {
170
+		foreach ($columns as $key => $value) {
171 171
 
172
-			switch ( $key ) {
172
+			switch ($key) {
173 173
 				case 'donation_id':
174
-					$cols['donation_id'] = __( 'Donation ID', 'give' );
174
+					$cols['donation_id'] = __('Donation ID', 'give');
175 175
 					break;
176 176
 				case 'seq_id':
177
-					$cols['seq_id'] = __( 'Donation Number', 'give' );
177
+					$cols['seq_id'] = __('Donation Number', 'give');
178 178
 					break;
179 179
 				case 'title_prefix':
180
-					$cols['title_prefix'] = __( 'Title Prefix', 'give' );
180
+					$cols['title_prefix'] = __('Title Prefix', 'give');
181 181
 					break;
182 182
 				case 'first_name':
183
-					$cols['first_name'] = __( 'First Name', 'give' );
183
+					$cols['first_name'] = __('First Name', 'give');
184 184
 					break;
185 185
 				case 'last_name':
186
-					$cols['last_name'] = __( 'Last Name', 'give' );
186
+					$cols['last_name'] = __('Last Name', 'give');
187 187
 					break;
188 188
 				case 'email':
189
-					$cols['email'] = __( 'Email Address', 'give' );
189
+					$cols['email'] = __('Email Address', 'give');
190 190
 					break;
191 191
 				case 'company':
192
-					$cols['company'] = __( 'Company Name', 'give' );
192
+					$cols['company'] = __('Company Name', 'give');
193 193
 					break;
194 194
 				case 'address':
195
-					$cols['address_line1']   = __( 'Address 1', 'give' );
196
-					$cols['address_line2']   = __( 'Address 2', 'give' );
197
-					$cols['address_city']    = __( 'City', 'give' );
198
-					$cols['address_state']   = __( 'State', 'give' );
199
-					$cols['address_zip']     = __( 'Zip', 'give' );
200
-					$cols['address_country'] = __( 'Country', 'give' );
195
+					$cols['address_line1']   = __('Address 1', 'give');
196
+					$cols['address_line2']   = __('Address 2', 'give');
197
+					$cols['address_city']    = __('City', 'give');
198
+					$cols['address_state']   = __('State', 'give');
199
+					$cols['address_zip']     = __('Zip', 'give');
200
+					$cols['address_country'] = __('Country', 'give');
201 201
 					break;
202 202
 				case 'donation_total':
203
-					$cols['donation_total'] = __( 'Donation Total', 'give' );
203
+					$cols['donation_total'] = __('Donation Total', 'give');
204 204
 					break;
205 205
 				case 'currency_code':
206
-					$cols['currency_code'] = __( 'Currency Code', 'give' );
206
+					$cols['currency_code'] = __('Currency Code', 'give');
207 207
 					break;
208 208
 				case 'currency_symbol':
209
-					$cols['currency_symbol'] = __( 'Currency Symbol', 'give' );
209
+					$cols['currency_symbol'] = __('Currency Symbol', 'give');
210 210
 					break;
211 211
 				case 'donation_status':
212
-					$cols['donation_status'] = __( 'Donation Status', 'give' );
212
+					$cols['donation_status'] = __('Donation Status', 'give');
213 213
 					break;
214 214
 				case 'payment_gateway':
215
-					$cols['payment_gateway'] = __( 'Payment Gateway', 'give' );
215
+					$cols['payment_gateway'] = __('Payment Gateway', 'give');
216 216
 				case 'payment_mode':
217
-					$cols['payment_mode'] = __( 'Payment Mode', 'give' );
217
+					$cols['payment_mode'] = __('Payment Mode', 'give');
218 218
 					break;
219 219
 				case 'form_id':
220
-					$cols['form_id'] = __( 'Form ID', 'give' );
220
+					$cols['form_id'] = __('Form ID', 'give');
221 221
 					break;
222 222
 				case 'form_title':
223
-					$cols['form_title'] = __( 'Form Title', 'give' );
223
+					$cols['form_title'] = __('Form Title', 'give');
224 224
 					break;
225 225
 				case 'form_level_id':
226
-					$cols['form_level_id'] = __( 'Level ID', 'give' );
226
+					$cols['form_level_id'] = __('Level ID', 'give');
227 227
 					break;
228 228
 				case 'form_level_title':
229
-					$cols['form_level_title'] = __( 'Level Title', 'give' );
229
+					$cols['form_level_title'] = __('Level Title', 'give');
230 230
 					break;
231 231
 				case 'donation_date':
232
-					$cols['donation_date'] = __( 'Donation Date', 'give' );
232
+					$cols['donation_date'] = __('Donation Date', 'give');
233 233
 					break;
234 234
 				case 'donation_time':
235
-					$cols['donation_time'] = __( 'Donation Time', 'give' );
235
+					$cols['donation_time'] = __('Donation Time', 'give');
236 236
 					break;
237 237
 				case 'userid':
238
-					$cols['userid'] = __( 'User ID', 'give' );
238
+					$cols['userid'] = __('User ID', 'give');
239 239
 					break;
240 240
 				case 'donorid':
241
-					$cols['donorid'] = __( 'Donor ID', 'give' );
241
+					$cols['donorid'] = __('Donor ID', 'give');
242 242
 					break;
243 243
 				case 'donor_ip':
244
-					$cols['donor_ip'] = __( 'Donor IP Address', 'give' );
244
+					$cols['donor_ip'] = __('Donor IP Address', 'give');
245 245
 					break;
246 246
 				default:
247
-					$cols[ $key ] = $key;
247
+					$cols[$key] = $key;
248 248
 
249 249
 			}
250 250
 		}
@@ -257,7 +257,7 @@  discard block
 block discarded – undo
257 257
 		 * @param array $cols columns name for CSV
258 258
 		 * @param array $columns columns select by admin to export
259 259
 		 */
260
-		return (array) apply_filters( 'give_export_donation_get_columns_name', $cols, $columns );
260
+		return (array) apply_filters('give_export_donation_get_columns_name', $cols, $columns);
261 261
 	}
262 262
 
263 263
 	/**
@@ -269,24 +269,24 @@  discard block
 block discarded – undo
269 269
 	 *
270 270
 	 * @return array $args donation argument
271 271
 	 */
272
-	public function get_donation_argument( $args = array() ) {
272
+	public function get_donation_argument($args = array()) {
273 273
 		$defaults = array(
274 274
 			'number' => 30,
275 275
 			'page'   => $this->step,
276 276
 			'status' => $this->status,
277 277
 		);
278 278
 		// Date query.
279
-		if ( ! empty( $this->start ) || ! empty( $this->end ) ) {
280
-			if ( ! empty( $this->start ) ) {
281
-				$defaults['date_query'][0]['after'] = date( 'Y-n-d 00:00:00', strtotime( $this->start ) );
279
+		if ( ! empty($this->start) || ! empty($this->end)) {
280
+			if ( ! empty($this->start)) {
281
+				$defaults['date_query'][0]['after'] = date('Y-n-d 00:00:00', strtotime($this->start));
282 282
 			}
283
-			if ( ! empty( $this->end ) ) {
284
-				$defaults['date_query'][0]['before'] = date( 'Y-n-d 00:00:00', strtotime( $this->end ) );
283
+			if ( ! empty($this->end)) {
284
+				$defaults['date_query'][0]['before'] = date('Y-n-d 00:00:00', strtotime($this->end));
285 285
 			}
286 286
 		}
287 287
 
288
-		if ( ! empty( $this->form_id ) ) {
289
-			$defaults['give_forms'] = is_array( $this->form_id ) ? $this->form_id : array( $this->form_id );
288
+		if ( ! empty($this->form_id)) {
289
+			$defaults['give_forms'] = is_array($this->form_id) ? $this->form_id : array($this->form_id);
290 290
 		}
291 291
 
292 292
 		/**
@@ -295,7 +295,7 @@  discard block
 block discarded – undo
295 295
 		 *
296 296
 		 * @since 2.1.3
297 297
 		 */
298
-		return apply_filters( 'give_export_donations_donation_query_args', wp_parse_args( $args, $defaults ) );
298
+		return apply_filters('give_export_donations_donation_query_args', wp_parse_args($args, $defaults));
299 299
 	}
300 300
 
301 301
 	/**
@@ -314,130 +314,130 @@  discard block
 block discarded – undo
314 314
 		$data = array();
315 315
 		$i    = 0;
316 316
 		// Payment query.
317
-		$payments = give_get_payments( $this->get_donation_argument() );
317
+		$payments = give_get_payments($this->get_donation_argument());
318 318
 
319
-		if ( $payments ) {
319
+		if ($payments) {
320 320
 
321
-			foreach ( $payments as $payment ) {
321
+			foreach ($payments as $payment) {
322 322
 
323 323
 				$columns      = $this->csv_cols();
324
-				$payment      = new Give_Payment( $payment->ID );
324
+				$payment      = new Give_Payment($payment->ID);
325 325
 				$payment_meta = $payment->payment_meta;
326 326
 				$address      = $payment->address;
327 327
 
328 328
 				// Set columns.
329
-				if ( ! empty( $columns['donation_id'] ) ) {
330
-					$data[ $i ]['donation_id'] = $payment->ID;
329
+				if ( ! empty($columns['donation_id'])) {
330
+					$data[$i]['donation_id'] = $payment->ID;
331 331
 				}
332 332
 
333
-				if ( ! empty( $columns['seq_id'] ) ) {
334
-					$data[ $i ]['seq_id'] = Give()->seq_donation_number->get_serial_code( $payment->ID );
333
+				if ( ! empty($columns['seq_id'])) {
334
+					$data[$i]['seq_id'] = Give()->seq_donation_number->get_serial_code($payment->ID);
335 335
 				}
336 336
 
337
-				if ( ! empty( $columns['title_prefix'] ) ) {
338
-					$data[ $i ]['title_prefix'] = ! empty( $payment->title_prefix ) ? $payment->title_prefix : '';
337
+				if ( ! empty($columns['title_prefix'])) {
338
+					$data[$i]['title_prefix'] = ! empty($payment->title_prefix) ? $payment->title_prefix : '';
339 339
 				}
340 340
 
341
-				if ( ! empty( $columns['first_name'] ) ) {
342
-					$data[ $i ]['first_name'] = isset( $payment->first_name ) ? $payment->first_name : '';
341
+				if ( ! empty($columns['first_name'])) {
342
+					$data[$i]['first_name'] = isset($payment->first_name) ? $payment->first_name : '';
343 343
 				}
344 344
 
345
-				if ( ! empty( $columns['last_name'] ) ) {
346
-					$data[ $i ]['last_name'] = isset( $payment->last_name ) ? $payment->last_name : '';
345
+				if ( ! empty($columns['last_name'])) {
346
+					$data[$i]['last_name'] = isset($payment->last_name) ? $payment->last_name : '';
347 347
 				}
348 348
 
349
-				if ( ! empty( $columns['email'] ) ) {
350
-					$data[ $i ]['email'] = $payment->email;
349
+				if ( ! empty($columns['email'])) {
350
+					$data[$i]['email'] = $payment->email;
351 351
 				}
352 352
 
353
-				if ( ! empty( $columns['company'] ) ) {
354
-					$data[ $i ]['company'] = empty( $payment_meta['_give_donation_company'] ) ? '' : str_replace( "\'", "'", $payment_meta['_give_donation_company'] );
353
+				if ( ! empty($columns['company'])) {
354
+					$data[$i]['company'] = empty($payment_meta['_give_donation_company']) ? '' : str_replace("\'", "'", $payment_meta['_give_donation_company']);
355 355
 				}
356 356
 
357
-				if ( ! empty( $columns['address_line1'] ) ) {
358
-					$data[ $i ]['address_line1']   = isset( $address['line1'] ) ? $address['line1'] : '';
359
-					$data[ $i ]['address_line2']   = isset( $address['line2'] ) ? $address['line2'] : '';
360
-					$data[ $i ]['address_city']    = isset( $address['city'] ) ? $address['city'] : '';
361
-					$data[ $i ]['address_state']   = isset( $address['state'] ) ? $address['state'] : '';
362
-					$data[ $i ]['address_zip']     = isset( $address['zip'] ) ? $address['zip'] : '';
363
-					$data[ $i ]['address_country'] = isset( $address['country'] ) ? $address['country'] : '';
357
+				if ( ! empty($columns['address_line1'])) {
358
+					$data[$i]['address_line1']   = isset($address['line1']) ? $address['line1'] : '';
359
+					$data[$i]['address_line2']   = isset($address['line2']) ? $address['line2'] : '';
360
+					$data[$i]['address_city']    = isset($address['city']) ? $address['city'] : '';
361
+					$data[$i]['address_state']   = isset($address['state']) ? $address['state'] : '';
362
+					$data[$i]['address_zip']     = isset($address['zip']) ? $address['zip'] : '';
363
+					$data[$i]['address_country'] = isset($address['country']) ? $address['country'] : '';
364 364
 				}
365 365
 
366
-				if ( ! empty( $columns['donation_total'] ) ) {
367
-					$data[ $i ]['donation_total'] = give_format_amount( give_donation_amount( $payment->ID ) );
366
+				if ( ! empty($columns['donation_total'])) {
367
+					$data[$i]['donation_total'] = give_format_amount(give_donation_amount($payment->ID));
368 368
 				}
369 369
 
370
-				if ( ! empty( $columns['currency_code'] ) ) {
371
-					$data[ $i ]['currency_code'] = empty( $payment_meta['_give_payment_currency'] ) ? give_get_currency() : $payment_meta['_give_payment_currency'];
370
+				if ( ! empty($columns['currency_code'])) {
371
+					$data[$i]['currency_code'] = empty($payment_meta['_give_payment_currency']) ? give_get_currency() : $payment_meta['_give_payment_currency'];
372 372
 				}
373 373
 
374
-				if ( ! empty( $columns['currency_symbol'] ) ) {
375
-					$currency_code                 = $data[ $i ]['currency_code'];
376
-					$data[ $i ]['currency_symbol'] = give_currency_symbol( $currency_code, true );
374
+				if ( ! empty($columns['currency_symbol'])) {
375
+					$currency_code                 = $data[$i]['currency_code'];
376
+					$data[$i]['currency_symbol'] = give_currency_symbol($currency_code, true);
377 377
 				}
378 378
 
379
-				if ( ! empty( $columns['donation_status'] ) ) {
380
-					$data[ $i ]['donation_status'] = give_get_payment_status( $payment, true );
379
+				if ( ! empty($columns['donation_status'])) {
380
+					$data[$i]['donation_status'] = give_get_payment_status($payment, true);
381 381
 				}
382 382
 
383
-				if ( ! empty( $columns['payment_gateway'] ) ) {
384
-					$data[ $i ]['payment_gateway'] = $payment->gateway;
383
+				if ( ! empty($columns['payment_gateway'])) {
384
+					$data[$i]['payment_gateway'] = $payment->gateway;
385 385
 				}
386 386
 
387
-				if ( ! empty( $columns['payment_mode'] ) ) {
388
-					$data[ $i ]['payment_mode'] = $payment->mode;
387
+				if ( ! empty($columns['payment_mode'])) {
388
+					$data[$i]['payment_mode'] = $payment->mode;
389 389
 				}
390 390
 
391
-				if ( ! empty( $columns['form_id'] ) ) {
392
-					$data[ $i ]['form_id'] = $payment->form_id;
391
+				if ( ! empty($columns['form_id'])) {
392
+					$data[$i]['form_id'] = $payment->form_id;
393 393
 				}
394 394
 
395
-				if ( ! empty( $columns['form_title'] ) ) {
396
-					$data[ $i ]['form_title'] = get_the_title( $payment->form_id );
395
+				if ( ! empty($columns['form_title'])) {
396
+					$data[$i]['form_title'] = get_the_title($payment->form_id);
397 397
 				}
398 398
 
399
-				if ( ! empty( $columns['form_level_id'] ) ) {
400
-					$data[ $i ]['form_level_id'] = $payment->price_id;
399
+				if ( ! empty($columns['form_level_id'])) {
400
+					$data[$i]['form_level_id'] = $payment->price_id;
401 401
 				}
402 402
 
403
-				if ( ! empty( $columns['form_level_title'] ) ) {
404
-					$var_prices = give_has_variable_prices( $payment->form_id );
405
-					if ( empty( $var_prices ) ) {
406
-						$data[ $i ]['form_level_title'] = '';
403
+				if ( ! empty($columns['form_level_title'])) {
404
+					$var_prices = give_has_variable_prices($payment->form_id);
405
+					if (empty($var_prices)) {
406
+						$data[$i]['form_level_title'] = '';
407 407
 					} else {
408
-						if ( 'custom' === $payment->price_id ) {
409
-							$custom_amount_text = give_get_meta( $payment->form_id, '_give_custom_amount_text', true );
408
+						if ('custom' === $payment->price_id) {
409
+							$custom_amount_text = give_get_meta($payment->form_id, '_give_custom_amount_text', true);
410 410
 
411
-							if ( empty( $custom_amount_text ) ) {
412
-								$custom_amount_text = esc_html__( 'Custom', 'give' );
411
+							if (empty($custom_amount_text)) {
412
+								$custom_amount_text = esc_html__('Custom', 'give');
413 413
 							}
414
-							$data[ $i ]['form_level_title'] = $custom_amount_text;
414
+							$data[$i]['form_level_title'] = $custom_amount_text;
415 415
 						} else {
416
-							$data[ $i ]['form_level_title'] = give_get_price_option_name( $payment->form_id, $payment->price_id );
416
+							$data[$i]['form_level_title'] = give_get_price_option_name($payment->form_id, $payment->price_id);
417 417
 						}
418 418
 					}
419 419
 				}
420 420
 
421
-				if ( ! empty( $columns['donation_date'] ) ) {
422
-					$payment_date                = strtotime( $payment->date );
423
-					$data[ $i ]['donation_date'] = date( give_date_format(), $payment_date );
421
+				if ( ! empty($columns['donation_date'])) {
422
+					$payment_date                = strtotime($payment->date);
423
+					$data[$i]['donation_date'] = date(give_date_format(), $payment_date);
424 424
 				}
425 425
 
426
-				if ( ! empty( $columns['donation_time'] ) ) {
427
-					$payment_date                = strtotime( $payment->date );
428
-					$data[ $i ]['donation_time'] = date_i18n( 'H', $payment_date ) . ':' . date( 'i', $payment_date );
426
+				if ( ! empty($columns['donation_time'])) {
427
+					$payment_date                = strtotime($payment->date);
428
+					$data[$i]['donation_time'] = date_i18n('H', $payment_date).':'.date('i', $payment_date);
429 429
 				}
430 430
 
431
-				if ( ! empty( $columns['userid'] ) ) {
432
-					$data[ $i ]['userid'] = $payment->user_id;
431
+				if ( ! empty($columns['userid'])) {
432
+					$data[$i]['userid'] = $payment->user_id;
433 433
 				}
434 434
 
435
-				if ( ! empty( $columns['donorid'] ) ) {
436
-					$data[ $i ]['donorid'] = $payment->customer_id;
435
+				if ( ! empty($columns['donorid'])) {
436
+					$data[$i]['donorid'] = $payment->customer_id;
437 437
 				}
438 438
 
439
-				if ( ! empty( $columns['donor_ip'] ) ) {
440
-					$data[ $i ]['donor_ip'] = give_get_payment_user_ip( $payment->ID );
439
+				if ( ! empty($columns['donor_ip'])) {
440
+					$data[$i]['donor_ip'] = give_get_payment_user_ip($payment->ID);
441 441
 				}
442 442
 
443 443
 				// Add custom field data.
@@ -469,15 +469,15 @@  discard block
 block discarded – undo
469 469
 				);
470 470
 
471 471
 				// Removing above keys...
472
-				foreach ( $remove_keys as $key ) {
473
-					unset( $columns[ $key ] );
472
+				foreach ($remove_keys as $key) {
473
+					unset($columns[$key]);
474 474
 				}
475 475
 
476 476
 				// Now loop through remaining meta fields.
477
-				foreach ( $columns as $col ) {
478
-					$field_data         = get_post_meta( $payment->ID, $col, true );
479
-					$data[ $i ][ $col ] = $field_data;
480
-					unset( $columns[ $col ] );
477
+				foreach ($columns as $col) {
478
+					$field_data         = get_post_meta($payment->ID, $col, true);
479
+					$data[$i][$col] = $field_data;
480
+					unset($columns[$col]);
481 481
 				}
482 482
 
483 483
 				/**
@@ -492,27 +492,27 @@  discard block
 block discarded – undo
492 492
 				 *
493 493
 				 * @return array Donation data
494 494
 				 */
495
-				$data[ $i ] = apply_filters( 'give_export_donation_data', $data[ $i ], $payment, $columns, $this );
495
+				$data[$i] = apply_filters('give_export_donation_data', $data[$i], $payment, $columns, $this);
496 496
 
497 497
 				$new_data = array();
498
-				$old_data = $data[ $i ];
498
+				$old_data = $data[$i];
499 499
 
500 500
 				// sorting the columns bas on row
501
-				foreach ( $this->csv_cols() as $key => $value ) {
502
-					if ( array_key_exists( $key, $old_data ) ) {
503
-						$new_data[ $key ] = $old_data[ $key ];
501
+				foreach ($this->csv_cols() as $key => $value) {
502
+					if (array_key_exists($key, $old_data)) {
503
+						$new_data[$key] = $old_data[$key];
504 504
 					}
505 505
 				}
506 506
 
507
-				$data[ $i ] = $new_data;
507
+				$data[$i] = $new_data;
508 508
 
509 509
 				// Increment iterator.
510
-				$i ++;
510
+				$i++;
511 511
 
512 512
 			}
513 513
 
514
-			$data = apply_filters( 'give_export_get_data', $data );
515
-			$data = apply_filters( "give_export_get_data_{$this->export_type}", $data );
514
+			$data = apply_filters('give_export_get_data', $data);
515
+			$data = apply_filters("give_export_get_data_{$this->export_type}", $data);
516 516
 
517 517
 			return $data;
518 518
 
@@ -530,17 +530,17 @@  discard block
 block discarded – undo
530 530
 	 * @return int
531 531
 	 */
532 532
 	public function get_percentage_complete() {
533
-		$args = $this->get_donation_argument( array( 'number' => - 1 ) );
534
-		if ( isset( $args['page'] ) ) {
535
-			unset( $args['page'] );
533
+		$args = $this->get_donation_argument(array('number' => -1));
534
+		if (isset($args['page'])) {
535
+			unset($args['page']);
536 536
 		}
537
-		$query      = give_get_payments( $args );
538
-		$total      = count( $query );
537
+		$query      = give_get_payments($args);
538
+		$total      = count($query);
539 539
 		$percentage = 100;
540
-		if ( $total > 0 ) {
541
-			$percentage = ( ( 30 * $this->step ) / $total ) * 100;
540
+		if ($total > 0) {
541
+			$percentage = ((30 * $this->step) / $total) * 100;
542 542
 		}
543
-		if ( $percentage > 100 ) {
543
+		if ($percentage > 100) {
544 544
 			$percentage = 100;
545 545
 		}
546 546
 
@@ -562,23 +562,23 @@  discard block
 block discarded – undo
562 562
 		$data     = $this->get_data();
563 563
 		$cols     = $this->get_csv_cols();
564 564
 
565
-		if ( $data ) {
565
+		if ($data) {
566 566
 
567 567
 			// Output each row
568
-			foreach ( $data as $row ) {
568
+			foreach ($data as $row) {
569 569
 				$i = 1;
570
-				foreach ( $row as $col_id => $column ) {
570
+				foreach ($row as $col_id => $column) {
571 571
 					// Make sure the column is valid
572
-					if ( array_key_exists( $col_id, $cols ) ) {
573
-						$row_data .= '"' . preg_replace( '/"/', "'", $column ) . '"';
574
-						$row_data .= $i == count( $cols ) ? '' : ',';
575
-						$i ++;
572
+					if (array_key_exists($col_id, $cols)) {
573
+						$row_data .= '"'.preg_replace('/"/', "'", $column).'"';
574
+						$row_data .= $i == count($cols) ? '' : ',';
575
+						$i++;
576 576
 					}
577 577
 				}
578 578
 				$row_data .= "\r\n";
579 579
 			}
580 580
 
581
-			$this->stash_step_data( $row_data );
581
+			$this->stash_step_data($row_data);
582 582
 
583 583
 			return $row_data;
584 584
 		}
Please login to merge, or discard this patch.
includes/admin/tools/export/pdf-reports.php 1 patch
Spacing   +158 added lines, -158 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@  discard block
 block discarded – undo
10 10
  */
11 11
 
12 12
 // Exit if accessed directly..
13
-if ( ! defined( 'ABSPATH' ) ) {
13
+if ( ! defined('ABSPATH')) {
14 14
 	exit;
15 15
 }
16 16
 
@@ -25,136 +25,136 @@  discard block
 block discarded – undo
25 25
  *
26 26
  * @uses   give_pdf
27 27
  */
28
-function give_generate_pdf( $data ) {
28
+function give_generate_pdf($data) {
29 29
 
30
-	if ( ! current_user_can( 'view_give_reports' ) ) {
31
-		wp_die( __( 'You do not have permission to generate PDF sales reports.', 'give' ), __( 'Error', 'give' ), array( 'response' => 403 ) );
30
+	if ( ! current_user_can('view_give_reports')) {
31
+		wp_die(__('You do not have permission to generate PDF sales reports.', 'give'), __('Error', 'give'), array('response' => 403));
32 32
 	}
33 33
 
34
-	if ( ! wp_verify_nonce( $_GET['_wpnonce'], 'give_generate_pdf' ) ) {
35
-		wp_die( __( 'Nonce verification failed.', 'give' ), __( 'Error', 'give' ), array( 'response' => 403 ) );
34
+	if ( ! wp_verify_nonce($_GET['_wpnonce'], 'give_generate_pdf')) {
35
+		wp_die(__('Nonce verification failed.', 'give'), __('Error', 'give'), array('response' => 403));
36 36
 	}
37 37
 
38
-	if ( ! file_exists( GIVE_PLUGIN_DIR . '/includes/libraries/give-pdf.php' ) ) {
39
-		wp_die( __( 'Dependency missing.', 'give' ), __( 'Error', 'give' ), array( 'response' => 403 ) );
38
+	if ( ! file_exists(GIVE_PLUGIN_DIR.'/includes/libraries/give-pdf.php')) {
39
+		wp_die(__('Dependency missing.', 'give'), __('Error', 'give'), array('response' => 403));
40 40
 	}
41 41
 
42
-	require_once GIVE_PLUGIN_DIR . '/includes/libraries/give-pdf.php';
42
+	require_once GIVE_PLUGIN_DIR.'/includes/libraries/give-pdf.php';
43 43
 
44 44
 	$daterange = utf8_decode(
45 45
 		sprintf(
46 46
 		/* translators: 1: start date 2: end date */
47
-			__( '%1$s to %2$s', 'give' ),
48
-			date_i18n( give_date_format(), mktime( 0, 0, 0, 1, 1, date( 'Y' ) ) ),
49
-			date_i18n( give_date_format() )
47
+			__('%1$s to %2$s', 'give'),
48
+			date_i18n(give_date_format(), mktime(0, 0, 0, 1, 1, date('Y'))),
49
+			date_i18n(give_date_format())
50 50
 		)
51 51
 	);
52 52
 
53
-	$categories_enabled = give_is_setting_enabled( give_get_option( 'categories', 'disabled' ) );
54
-	$tags_enabled       = give_is_setting_enabled( give_get_option( 'tags', 'disabled' ) );
53
+	$categories_enabled = give_is_setting_enabled(give_get_option('categories', 'disabled'));
54
+	$tags_enabled       = give_is_setting_enabled(give_get_option('tags', 'disabled'));
55 55
 
56
-	$pdf          = new Give_PDF( 'L', 'mm', 'A', true, 'UTF-8', false );
57
-	$default_font = apply_filters( 'give_pdf_default_font', 'Helvetica' );
56
+	$pdf          = new Give_PDF('L', 'mm', 'A', true, 'UTF-8', false);
57
+	$default_font = apply_filters('give_pdf_default_font', 'Helvetica');
58 58
 	$custom_font  = 'dejavusans';
59 59
 	$font_style   = '';
60 60
 
61 61
 	if (
62
-		file_exists( GIVE_PLUGIN_DIR . '/includes/libraries/tcpdf/fonts/CODE2000.TTF' ) &&
62
+		file_exists(GIVE_PLUGIN_DIR.'/includes/libraries/tcpdf/fonts/CODE2000.TTF') &&
63 63
 
64 64
 		// RIAL exist for backward compatibility.
65
-		in_array( give_get_currency(), array( 'RIAL', 'RUB', 'IRR' ) )
65
+		in_array(give_get_currency(), array('RIAL', 'RUB', 'IRR'))
66 66
 	) {
67
-		TCPDF_FONTS::addTTFfont( GIVE_PLUGIN_DIR . '/includes/libraries/tcpdf/fonts/CODE2000.TTF', '' );
67
+		TCPDF_FONTS::addTTFfont(GIVE_PLUGIN_DIR.'/includes/libraries/tcpdf/fonts/CODE2000.TTF', '');
68 68
 		$custom_font = 'CODE2000';
69 69
 		$font_style  = 'B';
70 70
 	}
71 71
 
72
-	$pdf->AddPage( 'L', 'A4' );
73
-	$pdf->setImageScale( 1.5 );
74
-	$pdf->SetTitle( utf8_decode( __( 'Donation report for the current year for all forms', 'give' ) ) );
75
-	$pdf->SetAuthor( utf8_decode( __( 'Give - Democratizing Generosity', 'give' ) ) );
76
-	$pdf->SetCreator( utf8_decode( __( 'Give - Democratizing Generosity', 'give' ) ) );
72
+	$pdf->AddPage('L', 'A4');
73
+	$pdf->setImageScale(1.5);
74
+	$pdf->SetTitle(utf8_decode(__('Donation report for the current year for all forms', 'give')));
75
+	$pdf->SetAuthor(utf8_decode(__('Give - Democratizing Generosity', 'give')));
76
+	$pdf->SetCreator(utf8_decode(__('Give - Democratizing Generosity', 'give')));
77 77
 
78 78
 	// Image URL should have absolute path. @see https://tcpdf.org/examples/example_009/.
79
-	$pdf->Image( apply_filters( 'give_pdf_export_logo', GIVE_PLUGIN_DIR . 'assets/dist/images/give-logo-small.png' ), 247, 8 );
79
+	$pdf->Image(apply_filters('give_pdf_export_logo', GIVE_PLUGIN_DIR.'assets/dist/images/give-logo-small.png'), 247, 8);
80 80
 
81
-	$pdf->SetMargins( 8, 8, 8 );
82
-	$pdf->SetX( 8 );
81
+	$pdf->SetMargins(8, 8, 8);
82
+	$pdf->SetX(8);
83 83
 
84
-	$pdf->SetFont( $default_font, '', 16 );
85
-	$pdf->SetTextColor( 50, 50, 50 );
86
-	$pdf->Cell( 0, 3, utf8_decode( __( 'Donation report for the current year for all forms', 'give' ) ), 0, 2, 'L', false );
84
+	$pdf->SetFont($default_font, '', 16);
85
+	$pdf->SetTextColor(50, 50, 50);
86
+	$pdf->Cell(0, 3, utf8_decode(__('Donation report for the current year for all forms', 'give')), 0, 2, 'L', false);
87 87
 
88
-	$pdf->SetFont( $default_font, '', 13 );
89
-	$pdf->SetTextColor( 150, 150, 150 );
90
-	$pdf->Ln( 1 );
91
-	$pdf->Cell( 0, 6, utf8_decode( __( 'Date Range: ', 'give' ) ) . $daterange, 0, 2, 'L', false );
88
+	$pdf->SetFont($default_font, '', 13);
89
+	$pdf->SetTextColor(150, 150, 150);
90
+	$pdf->Ln(1);
91
+	$pdf->Cell(0, 6, utf8_decode(__('Date Range: ', 'give')).$daterange, 0, 2, 'L', false);
92 92
 	$pdf->Ln();
93
-	$pdf->SetTextColor( 50, 50, 50 );
94
-	$pdf->SetFont( $default_font, '', 14 );
95
-	$pdf->Cell( 0, 10, utf8_decode( __( 'Table View', 'give' ) ), 0, 2, 'L', false );
96
-	$pdf->SetFont( $default_font, '', 12 );
93
+	$pdf->SetTextColor(50, 50, 50);
94
+	$pdf->SetFont($default_font, '', 14);
95
+	$pdf->Cell(0, 10, utf8_decode(__('Table View', 'give')), 0, 2, 'L', false);
96
+	$pdf->SetFont($default_font, '', 12);
97 97
 
98
-	$pdf->SetFillColor( 238, 238, 238 );
99
-	$pdf->SetTextColor( 0, 0, 0, 100 ); // Set Black color.
100
-	$pdf->Cell( 50, 6, utf8_decode( __( 'Form Name', 'give' ) ), 1, 0, 'L', true );
101
-	$pdf->Cell( 50, 6, utf8_decode( __( 'Price', 'give' ) ), 1, 0, 'L', true );
98
+	$pdf->SetFillColor(238, 238, 238);
99
+	$pdf->SetTextColor(0, 0, 0, 100); // Set Black color.
100
+	$pdf->Cell(50, 6, utf8_decode(__('Form Name', 'give')), 1, 0, 'L', true);
101
+	$pdf->Cell(50, 6, utf8_decode(__('Price', 'give')), 1, 0, 'L', true);
102 102
 
103 103
 	// Display Categories Heading only, if user has opted for it.
104
-	if ( $categories_enabled ) {
105
-		$pdf->Cell( 45, 6, utf8_decode( __( 'Categories', 'give' ) ), 1, 0, 'L', true );
104
+	if ($categories_enabled) {
105
+		$pdf->Cell(45, 6, utf8_decode(__('Categories', 'give')), 1, 0, 'L', true);
106 106
 	}
107 107
 
108 108
 	// Display Tags Heading only, if user has opted for it.
109
-	if ( $tags_enabled ) {
110
-		$pdf->Cell( 45, 6, utf8_decode( __( 'Tags', 'give' ) ), 1, 0, 'L', true );
109
+	if ($tags_enabled) {
110
+		$pdf->Cell(45, 6, utf8_decode(__('Tags', 'give')), 1, 0, 'L', true);
111 111
 	}
112 112
 
113
-	$pdf->Cell( 45, 6, utf8_decode( __( 'Number of Donations', 'give' ) ), 1, 0, 'L', true );
114
-	$pdf->Cell( 45, 6, utf8_decode( __( 'Income to Date', 'give' ) ), 1, 1, 'L', true );
113
+	$pdf->Cell(45, 6, utf8_decode(__('Number of Donations', 'give')), 1, 0, 'L', true);
114
+	$pdf->Cell(45, 6, utf8_decode(__('Income to Date', 'give')), 1, 1, 'L', true);
115 115
 
116 116
 	// Set Custom Font to support various currencies.
117
-	$pdf->SetFont( apply_filters( 'give_pdf_custom_font', $custom_font ), $font_style, 12 );
117
+	$pdf->SetFont(apply_filters('give_pdf_custom_font', $custom_font), $font_style, 12);
118 118
 
119 119
 	// Object for getting stats.
120 120
 	$donation_stats = new Give_Payment_Stats();
121 121
 
122
-	$give_forms = get_posts( array(
122
+	$give_forms = get_posts(array(
123 123
 		'post_type'        => 'give_forms',
124
-		'posts_per_page'   => - 1,
124
+		'posts_per_page'   => -1,
125 125
 		'suppress_filters' => false,
126
-	) );
126
+	));
127 127
 
128
-	if ( $give_forms ) {
129
-		$pdf->SetWidths( array( 50, 50, 45, 45, 45, 45 ) );
128
+	if ($give_forms) {
129
+		$pdf->SetWidths(array(50, 50, 45, 45, 45, 45));
130 130
 
131
-		foreach ( $give_forms as $form ):
132
-			$pdf->SetFillColor( 255, 255, 255 );
131
+		foreach ($give_forms as $form):
132
+			$pdf->SetFillColor(255, 255, 255);
133 133
 
134 134
 			$title = $form->post_title;
135 135
 
136
-			if ( give_has_variable_prices( $form->ID ) ) {
137
-				$price = html_entity_decode( give_price_range( $form->ID, false ), ENT_COMPAT, 'UTF-8' );
136
+			if (give_has_variable_prices($form->ID)) {
137
+				$price = html_entity_decode(give_price_range($form->ID, false), ENT_COMPAT, 'UTF-8');
138 138
 			} else {
139
-				$price = give_currency_filter( give_get_form_price( $form->ID ), array( 'decode_currency' => true ) );
139
+				$price = give_currency_filter(give_get_form_price($form->ID), array('decode_currency' => true));
140 140
 			}
141 141
 
142 142
 			// Display Categories Data only, if user has opted for it.
143 143
 			$categories = array();
144
-			if ( $categories_enabled ) {
145
-				$categories = get_the_term_list( $form->ID, 'give_forms_category', '', ', ', '' );
146
-				$categories = ! is_wp_error( $categories ) ? strip_tags( $categories ) : '';
144
+			if ($categories_enabled) {
145
+				$categories = get_the_term_list($form->ID, 'give_forms_category', '', ', ', '');
146
+				$categories = ! is_wp_error($categories) ? strip_tags($categories) : '';
147 147
 			}
148 148
 
149 149
 			// Display Tags Data only, if user has opted for it.
150 150
 			$tags = array();
151
-			if ( $tags_enabled ) {
152
-				$tags = get_the_term_list( $form->ID, 'give_forms_tag', '', ', ', '' );
153
-				$tags = ! is_wp_error( $tags ) ? strip_tags( $tags ) : '';
151
+			if ($tags_enabled) {
152
+				$tags = get_the_term_list($form->ID, 'give_forms_tag', '', ', ', '');
153
+				$tags = ! is_wp_error($tags) ? strip_tags($tags) : '';
154 154
 			}
155 155
 
156
-			$sales    = $donation_stats->get_sales( $form->ID, 'this_year' );
157
-			$earnings = give_currency_filter( give_format_amount( $donation_stats->get_earnings( $form->ID, 'this_year' ), array( 'sanitize' => false, ) ), array( 'decode_currency' => true ) );
156
+			$sales    = $donation_stats->get_sales($form->ID, 'this_year');
157
+			$earnings = give_currency_filter(give_format_amount($donation_stats->get_earnings($form->ID, 'this_year'), array('sanitize' => false,)), array('decode_currency' => true));
158 158
 
159 159
 			// This will help filter data before appending it to PDF Receipt.
160 160
 			$prepare_pdf_data   = array();
@@ -162,54 +162,54 @@  discard block
 block discarded – undo
162 162
 			$prepare_pdf_data[] = $price;
163 163
 
164 164
 			// Append Categories Data only, if user has opted for it.
165
-			if ( $categories_enabled ) {
165
+			if ($categories_enabled) {
166 166
 				$prepare_pdf_data[] = $categories;
167 167
 			}
168 168
 
169 169
 			// Append Tags Data only, if user has opted for it.
170
-			if ( $tags_enabled ) {
170
+			if ($tags_enabled) {
171 171
 				$prepare_pdf_data[] = $tags;
172 172
 			}
173 173
 
174 174
 			$prepare_pdf_data[] = $sales;
175 175
 			$prepare_pdf_data[] = $earnings;
176 176
 
177
-			$pdf->Row( $prepare_pdf_data );
177
+			$pdf->Row($prepare_pdf_data);
178 178
 
179 179
 		endforeach;
180 180
 	} else {
181 181
 
182 182
 		// Fix: Minor Styling Alignment Issue for PDF.
183
-		if ( $categories_enabled && $tags_enabled ) {
183
+		if ($categories_enabled && $tags_enabled) {
184 184
 			$no_found_width = 280;
185
-		} elseif ( $categories_enabled || $tags_enabled ) {
185
+		} elseif ($categories_enabled || $tags_enabled) {
186 186
 			$no_found_width = 235;
187 187
 		} else {
188 188
 			$no_found_width = 190;
189 189
 		}
190
-		$title = utf8_decode( __( 'No forms found.', 'give' ) );
191
-		$pdf->MultiCell( $no_found_width, 5, $title, 1, 'C', false, 1, '', '', true, 0, false, true, 0, 'T', false );
190
+		$title = utf8_decode(__('No forms found.', 'give'));
191
+		$pdf->MultiCell($no_found_width, 5, $title, 1, 'C', false, 1, '', '', true, 0, false, true, 0, 'T', false);
192 192
 	}// End if().
193 193
 	$pdf->Ln();
194
-	$pdf->SetTextColor( 50, 50, 50 );
195
-	$pdf->SetFont( $default_font, '', 14 );
194
+	$pdf->SetTextColor(50, 50, 50);
195
+	$pdf->SetFont($default_font, '', 14);
196 196
 
197 197
 	// Output Graph on a new page.
198
-	$pdf->AddPage( 'L', 'A4' );
199
-	$pdf->Cell( 0, 10, utf8_decode( __( 'Graph View', 'give' ) ), 0, 2, 'L', false );
200
-	$pdf->SetFont( $default_font, '', 12 );
198
+	$pdf->AddPage('L', 'A4');
199
+	$pdf->Cell(0, 10, utf8_decode(__('Graph View', 'give')), 0, 2, 'L', false);
200
+	$pdf->SetFont($default_font, '', 12);
201 201
 
202
-	$image = html_entity_decode( urldecode( give_draw_chart_image() ) );
203
-	$image = str_replace( ' ', '%20', $image );
202
+	$image = html_entity_decode(urldecode(give_draw_chart_image()));
203
+	$image = str_replace(' ', '%20', $image);
204 204
 
205
-	$pdf->SetX( 25 );
206
-	$pdf->Image( $image . '&file=.png' );
207
-	$pdf->Ln( 7 );
208
-	$pdf->Output( apply_filters( 'give_sales_earnings_pdf_export_filename', 'give-report-' . date_i18n( 'Y-m-d' ) ) . '.pdf', 'D' );
205
+	$pdf->SetX(25);
206
+	$pdf->Image($image.'&file=.png');
207
+	$pdf->Ln(7);
208
+	$pdf->Output(apply_filters('give_sales_earnings_pdf_export_filename', 'give-report-'.date_i18n('Y-m-d')).'.pdf', 'D');
209 209
 	exit();
210 210
 }
211 211
 
212
-add_action( 'give_generate_pdf', 'give_generate_pdf' );
212
+add_action('give_generate_pdf', 'give_generate_pdf');
213 213
 
214 214
 /**
215 215
  * Draws Chart for PDF Report.
@@ -226,38 +226,38 @@  discard block
 block discarded – undo
226 226
  * @return string $chart->getUrl() URL for the Google Chart
227 227
  */
228 228
 function give_draw_chart_image() {
229
-	require_once GIVE_PLUGIN_DIR . '/includes/libraries/googlechartlib/GoogleChart.php';
230
-	require_once GIVE_PLUGIN_DIR . '/includes/libraries/googlechartlib/markers/GoogleChartShapeMarker.php';
231
-	require_once GIVE_PLUGIN_DIR . '/includes/libraries/googlechartlib/markers/GoogleChartTextMarker.php';
229
+	require_once GIVE_PLUGIN_DIR.'/includes/libraries/googlechartlib/GoogleChart.php';
230
+	require_once GIVE_PLUGIN_DIR.'/includes/libraries/googlechartlib/markers/GoogleChartShapeMarker.php';
231
+	require_once GIVE_PLUGIN_DIR.'/includes/libraries/googlechartlib/markers/GoogleChartTextMarker.php';
232 232
 
233
-	$chart = new GoogleChart( 'lc', 900, 330 );
233
+	$chart = new GoogleChart('lc', 900, 330);
234 234
 
235 235
 	$i        = 1;
236 236
 	$earnings = "";
237 237
 	$sales    = "";
238 238
 
239
-	while ( $i <= 12 ) :
240
-		$earnings .= give_get_earnings_by_date( null, $i, date( 'Y' ) ) . ",";
241
-		$sales    .= give_get_sales_by_date( null, $i, date( 'Y' ) ) . ",";
242
-		$i ++;
239
+	while ($i <= 12) :
240
+		$earnings .= give_get_earnings_by_date(null, $i, date('Y')).",";
241
+		$sales    .= give_get_sales_by_date(null, $i, date('Y')).",";
242
+		$i++;
243 243
 	endwhile;
244 244
 
245
-	$earnings_array = explode( ",", $earnings );
246
-	$sales_array    = explode( ",", $sales );
245
+	$earnings_array = explode(",", $earnings);
246
+	$sales_array    = explode(",", $sales);
247 247
 
248 248
 	$i = 0;
249
-	while ( $i <= 11 ) {
250
-		if ( empty( $sales_array[ $i ] ) ) {
251
-			$sales_array[ $i ] = 0;
249
+	while ($i <= 11) {
250
+		if (empty($sales_array[$i])) {
251
+			$sales_array[$i] = 0;
252 252
 		}
253
-		$i ++;
253
+		$i++;
254 254
 	}
255 255
 
256 256
 	$min_earnings   = 0;
257
-	$max_earnings   = max( $earnings_array );
258
-	$earnings_scale = round( $max_earnings, - 1 );
257
+	$max_earnings   = max($earnings_array);
258
+	$earnings_scale = round($max_earnings, - 1);
259 259
 
260
-	$data = new GoogleChartData( array(
260
+	$data = new GoogleChartData(array(
261 261
 		$earnings_array[0],
262 262
 		$earnings_array[1],
263 263
 		$earnings_array[2],
@@ -270,25 +270,25 @@  discard block
 block discarded – undo
270 270
 		$earnings_array[9],
271 271
 		$earnings_array[10],
272 272
 		$earnings_array[11],
273
-	) );
273
+	));
274 274
 
275
-	$data->setLegend( __( 'Income', 'give' ) );
276
-	$data->setColor( '1b58a3' );
277
-	$chart->addData( $data );
275
+	$data->setLegend(__('Income', 'give'));
276
+	$data->setColor('1b58a3');
277
+	$chart->addData($data);
278 278
 
279
-	$shape_marker = new GoogleChartShapeMarker( GoogleChartShapeMarker::CIRCLE );
280
-	$shape_marker->setColor( '000000' );
281
-	$shape_marker->setSize( 7 );
282
-	$shape_marker->setBorder( 2 );
283
-	$shape_marker->setData( $data );
284
-	$chart->addMarker( $shape_marker );
279
+	$shape_marker = new GoogleChartShapeMarker(GoogleChartShapeMarker::CIRCLE);
280
+	$shape_marker->setColor('000000');
281
+	$shape_marker->setSize(7);
282
+	$shape_marker->setBorder(2);
283
+	$shape_marker->setData($data);
284
+	$chart->addMarker($shape_marker);
285 285
 
286
-	$value_marker = new GoogleChartTextMarker( GoogleChartTextMarker::VALUE );
287
-	$value_marker->setColor( '000000' );
288
-	$value_marker->setData( $data );
289
-	$chart->addMarker( $value_marker );
286
+	$value_marker = new GoogleChartTextMarker(GoogleChartTextMarker::VALUE);
287
+	$value_marker->setColor('000000');
288
+	$value_marker->setData($data);
289
+	$chart->addMarker($value_marker);
290 290
 
291
-	$data = new GoogleChartData( array(
291
+	$data = new GoogleChartData(array(
292 292
 		$sales_array[0],
293 293
 		$sales_array[1],
294 294
 		$sales_array[2],
@@ -301,46 +301,46 @@  discard block
 block discarded – undo
301 301
 		$sales_array[9],
302 302
 		$sales_array[10],
303 303
 		$sales_array[11],
304
-	) );
305
-	$data->setLegend( __( 'Donations', 'give' ) );
306
-	$data->setColor( 'ff6c1c' );
307
-	$chart->addData( $data );
308
-
309
-	$chart->setTitle( __( 'Donations by Month for all Give Forms', 'give' ), '336699', 18 );
310
-
311
-	$chart->setScale( 0, $max_earnings );
312
-
313
-	$y_axis = new GoogleChartAxis( 'y' );
314
-	$y_axis->setDrawTickMarks( true )->setLabels( array( 0, $max_earnings ) );
315
-	$chart->addAxis( $y_axis );
316
-
317
-	$x_axis = new GoogleChartAxis( 'x' );
318
-	$x_axis->setTickMarks( 5 );
319
-	$x_axis->setLabels( array(
320
-		__( 'Jan', 'give' ),
321
-		__( 'Feb', 'give' ),
322
-		__( 'Mar', 'give' ),
323
-		__( 'Apr', 'give' ),
324
-		__( 'May', 'give' ),
325
-		__( 'June', 'give' ),
326
-		__( 'July', 'give' ),
327
-		__( 'Aug', 'give' ),
328
-		__( 'Sept', 'give' ),
329
-		__( 'Oct', 'give' ),
330
-		__( 'Nov', 'give' ),
331
-		__( 'Dec', 'give' ),
332
-	) );
333
-	$chart->addAxis( $x_axis );
334
-
335
-	$shape_marker = new GoogleChartShapeMarker( GoogleChartShapeMarker::CIRCLE );
336
-	$shape_marker->setSize( 6 );
337
-	$shape_marker->setBorder( 2 );
338
-	$shape_marker->setData( $data );
339
-	$chart->addMarker( $shape_marker );
340
-
341
-	$value_marker = new GoogleChartTextMarker( GoogleChartTextMarker::VALUE );
342
-	$value_marker->setData( $data );
343
-	$chart->addMarker( $value_marker );
304
+	));
305
+	$data->setLegend(__('Donations', 'give'));
306
+	$data->setColor('ff6c1c');
307
+	$chart->addData($data);
308
+
309
+	$chart->setTitle(__('Donations by Month for all Give Forms', 'give'), '336699', 18);
310
+
311
+	$chart->setScale(0, $max_earnings);
312
+
313
+	$y_axis = new GoogleChartAxis('y');
314
+	$y_axis->setDrawTickMarks(true)->setLabels(array(0, $max_earnings));
315
+	$chart->addAxis($y_axis);
316
+
317
+	$x_axis = new GoogleChartAxis('x');
318
+	$x_axis->setTickMarks(5);
319
+	$x_axis->setLabels(array(
320
+		__('Jan', 'give'),
321
+		__('Feb', 'give'),
322
+		__('Mar', 'give'),
323
+		__('Apr', 'give'),
324
+		__('May', 'give'),
325
+		__('June', 'give'),
326
+		__('July', 'give'),
327
+		__('Aug', 'give'),
328
+		__('Sept', 'give'),
329
+		__('Oct', 'give'),
330
+		__('Nov', 'give'),
331
+		__('Dec', 'give'),
332
+	));
333
+	$chart->addAxis($x_axis);
334
+
335
+	$shape_marker = new GoogleChartShapeMarker(GoogleChartShapeMarker::CIRCLE);
336
+	$shape_marker->setSize(6);
337
+	$shape_marker->setBorder(2);
338
+	$shape_marker->setData($data);
339
+	$chart->addMarker($shape_marker);
340
+
341
+	$value_marker = new GoogleChartTextMarker(GoogleChartTextMarker::VALUE);
342
+	$value_marker->setData($data);
343
+	$chart->addMarker($value_marker);
344 344
 
345 345
 	return $chart->getUrl();
346 346
 }
Please login to merge, or discard this patch.
includes/admin/upgrades/views/upgrades.php 2 patches
Spacing   +36 added lines, -36 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@  discard block
 block discarded – undo
10 10
  */
11 11
 
12 12
 // Exit if accessed directly.
13
-if ( ! defined( 'ABSPATH' ) ) {
13
+if ( ! defined('ABSPATH')) {
14 14
 	exit;
15 15
 }
16 16
 
@@ -18,70 +18,70 @@  discard block
 block discarded – undo
18 18
 ?>
19 19
 <div class="wrap" id="poststuff">
20 20
 	<div id="give-updates">
21
-		<h1 id="give-updates-h1"><?php esc_html_e( 'Give - Updates', 'give' ); ?></h1>
21
+		<h1 id="give-updates-h1"><?php esc_html_e('Give - Updates', 'give'); ?></h1>
22 22
 		<hr class="wp-header-end">
23 23
 
24 24
 		<?php $db_updates = $give_updates->get_pending_db_update_count(); ?>
25
-		<?php if ( ! empty( $db_updates ) ) : ?>
25
+		<?php if ( ! empty($db_updates)) : ?>
26 26
 			<?php
27 27
 			$is_doing_updates = $give_updates->is_doing_updates();
28
-			$db_update_url    = add_query_arg( array( 'type' => 'database', ) );
29
-			$resume_updates   = get_option( 'give_doing_upgrade' );
30
-			$width            = ! empty( $resume_updates ) ? $resume_updates['percentage'] : 0;
28
+			$db_update_url    = add_query_arg(array('type' => 'database',));
29
+			$resume_updates   = get_option('give_doing_upgrade');
30
+			$width            = ! empty($resume_updates) ? $resume_updates['percentage'] : 0;
31 31
 			?>
32 32
 			<div class="give-update-panel-content">
33
-				<p><?php printf( __( 'Give regularly receives new features, bug fixes, and enhancements. It is important to always stay up-to-date with latest version of Give core and its add-ons.  Please create a backup of your site before updating. To update add-ons be sure your <a href="%1$s">license keys</a> are activated.', 'give' ), 'https://givewp.com/my-account/' ); ?></p>
33
+				<p><?php printf(__('Give regularly receives new features, bug fixes, and enhancements. It is important to always stay up-to-date with latest version of Give core and its add-ons.  Please create a backup of your site before updating. To update add-ons be sure your <a href="%1$s">license keys</a> are activated.', 'give'), 'https://givewp.com/my-account/'); ?></p>
34 34
 			</div>
35 35
 
36
-			<div id="give-db-updates" data-resume-update="<?php echo absint( $give_updates->is_doing_updates() ); ?>">
36
+			<div id="give-db-updates" data-resume-update="<?php echo absint($give_updates->is_doing_updates()); ?>">
37 37
 				<div class="postbox-container">
38 38
 					<div class="postbox">
39
-						<h2 class="hndle"><?php _e( 'Database Updates', 'give' ); ?></h2>
39
+						<h2 class="hndle"><?php _e('Database Updates', 'give'); ?></h2>
40 40
 						<div class="inside">
41 41
 							<div class="panel-content">
42 42
 								<p class="give-update-button">
43 43
 									<?php
44
-									if( ! give_test_ajax_works() ) {
44
+									if ( ! give_test_ajax_works()) {
45 45
 										echo sprintf(
46 46
 											'<div class="notice notice-warning inline"><p>%s</p></div>',
47
-											__( 'Give is currently updating the database. Please do not refresh or leave this page while the update is in progress.', 'give' )
47
+											__('Give is currently updating the database. Please do not refresh or leave this page while the update is in progress.', 'give')
48 48
 										);
49 49
 									}
50 50
 									?>
51 51
 									<span class="give-doing-update-text-p" <?php echo Give_Updates::$background_updater->is_paused_process() ? 'style="display:none;"' : ''; ?>>
52 52
 										<?php
53 53
 										echo sprintf(
54
-											__( '%1$s <a href="%2$s" class="give-update-now %3$s">%4$s</a>', 'give' ),
54
+											__('%1$s <a href="%2$s" class="give-update-now %3$s">%4$s</a>', 'give'),
55 55
 											$is_doing_updates
56 56
 												? sprintf(
57 57
 													'%s%s',
58
-													__( 'Give is currently updating the database', 'give' ),
59
-													give_test_ajax_works() ?  ' ' . __( 'in the background.', 'give' ) : '.'
58
+													__('Give is currently updating the database', 'give'),
59
+													give_test_ajax_works() ? ' '.__('in the background.', 'give') : '.'
60 60
 												)
61
-												: __( 'Give needs to update the database.', 'give' ),
61
+												: __('Give needs to update the database.', 'give'),
62 62
 											$db_update_url,
63
-											( $is_doing_updates ? 'give-hidden' : '' ),
64
-											__( 'Update now', 'give' )
63
+											($is_doing_updates ? 'give-hidden' : ''),
64
+											__('Update now', 'give')
65 65
 										);
66 66
 										?>
67 67
 									</span>
68 68
 									<span class="give-update-paused-text-p" <?php echo ! Give_Updates::$background_updater->is_paused_process() ? 'style="display:none;"' : ''; ?>>
69
-										<?php if ( get_option( 'give_upgrade_error' ) ) : ?>
70
-											&nbsp<?php _e( 'An unexpected issue occurred during the database update which caused it to stop automatically. Please contact support for assistance.', 'give' ); ?>
69
+										<?php if (get_option('give_upgrade_error')) : ?>
70
+											&nbsp<?php _e('An unexpected issue occurred during the database update which caused it to stop automatically. Please contact support for assistance.', 'give'); ?>
71 71
 										<?php else : ?>
72
-											<?php _e( 'The updates have been paused.', 'give' ); ?>
72
+											<?php _e('The updates have been paused.', 'give'); ?>
73 73
 										<?php endif; ?>
74 74
 									</span>
75 75
 
76
-									<?php if ( Give_Updates::$background_updater->is_paused_process() ) : ?>
77
-										<?php $is_disabled = isset( $_GET['give-restart-db-upgrades'] ) ? ' disabled' : ''; ?>
76
+									<?php if (Give_Updates::$background_updater->is_paused_process()) : ?>
77
+										<?php $is_disabled = isset($_GET['give-restart-db-upgrades']) ? ' disabled' : ''; ?>
78 78
 										<button id="give-restart-upgrades" class="button button-primary alignright"
79
-										        data-redirect-url="<?php echo esc_url( admin_url( '/edit.php?post_type=give_forms&page=give-updates&give-restart-db-upgrades=1' ) ); ?>"<?php echo $is_disabled; ?>><?php _e( 'Restart Upgrades', 'give' ); ?></button>
80
-									<?php elseif ( $give_updates->is_doing_updates() ): ?>
81
-										<?php $is_disabled = isset( $_GET['give-pause-db-upgrades'] ) ? ' disabled' : ''; ?>
79
+										        data-redirect-url="<?php echo esc_url(admin_url('/edit.php?post_type=give_forms&page=give-updates&give-restart-db-upgrades=1')); ?>"<?php echo $is_disabled; ?>><?php _e('Restart Upgrades', 'give'); ?></button>
80
+									<?php elseif ($give_updates->is_doing_updates()): ?>
81
+										<?php $is_disabled = isset($_GET['give-pause-db-upgrades']) ? ' disabled' : ''; ?>
82 82
 										<button id="give-pause-upgrades" class="button button-primary alignright"
83
-										        data-redirect-url="<?php echo esc_url( admin_url( '/edit.php?post_type=give_forms&page=give-updates&give-pause-db-upgrades=1' ) ); ?>"<?php echo $is_disabled; ?>>
84
-											<?php _e( 'Pause Upgrades', 'give' ); ?>
83
+										        data-redirect-url="<?php echo esc_url(admin_url('/edit.php?post_type=give_forms&page=give-updates&give-pause-db-upgrades=1')); ?>"<?php echo $is_disabled; ?>>
84
+											<?php _e('Pause Upgrades', 'give'); ?>
85 85
 										</button>
86 86
 									<?php endif; ?>
87 87
 								</p>
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
 									<strong>
92 92
 										<?php
93 93
 										echo sprintf(
94
-											__( 'Update %s of %s', 'give' ),
94
+											__('Update %s of %s', 'give'),
95 95
 											$give_updates->get_running_db_update(),
96 96
 											$give_updates->get_total_new_db_update_count()
97 97
 										);
@@ -99,10 +99,10 @@  discard block
 block discarded – undo
99 99
 									</strong>
100 100
 								</p>
101 101
 								<div class="progress-content">
102
-									<?php if ( $is_doing_updates ) : ?>
102
+									<?php if ($is_doing_updates) : ?>
103 103
 										<div class="notice-wrap give-clearfix">
104 104
 
105
-											<?php if ( ! Give_Updates::$background_updater->is_paused_process() ) : ?>
105
+											<?php if ( ! Give_Updates::$background_updater->is_paused_process()) : ?>
106 106
 												<span class="spinner is-active"></span>
107 107
 											<?php endif; ?>
108 108
 
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
 									<?php endif; ?>
114 114
 								</div>
115 115
 							</div>
116
-							<?php if ( ! $is_doing_updates ) : ?>
116
+							<?php if ( ! $is_doing_updates) : ?>
117 117
 								<div class="give-run-database-update"></div>
118 118
 							<?php endif; ?>
119 119
 						</div>
@@ -121,18 +121,18 @@  discard block
 block discarded – undo
121 121
 					</div><!-- .postbox -->
122 122
 				</div> <!-- .post-container -->
123 123
 			</div>
124
-		<?php else: include GIVE_PLUGIN_DIR . 'includes/admin/upgrades/views/db-upgrades-complete-metabox.php'; ?>
124
+		<?php else: include GIVE_PLUGIN_DIR.'includes/admin/upgrades/views/db-upgrades-complete-metabox.php'; ?>
125 125
 		<?php endif; ?>
126 126
 
127 127
 		<?php $plugin_updates = $give_updates->get_total_plugin_update_count(); ?>
128
-		<?php if ( ! empty( $plugin_updates ) ) : ?>
129
-			<?php $plugin_update_url = add_query_arg( array(
128
+		<?php if ( ! empty($plugin_updates)) : ?>
129
+			<?php $plugin_update_url = add_query_arg(array(
130 130
 				'plugin_status' => 'give',
131
-			), admin_url( '/plugins.php' ) ); ?>
131
+			), admin_url('/plugins.php')); ?>
132 132
 			<div id="give-plugin-updates">
133 133
 				<div class="postbox-container">
134 134
 					<div class="postbox">
135
-						<h2 class="hndle"><?php _e( 'Add-on Updates', 'give' ); ?></h2>
135
+						<h2 class="hndle"><?php _e('Add-on Updates', 'give'); ?></h2>
136 136
 						<div class="inside">
137 137
 							<div class="panel-content">
138 138
 								<p>
Please login to merge, or discard this patch.
Braces   +9 added lines, -3 removed lines patch added patch discarded remove patch
@@ -68,8 +68,11 @@  discard block
 block discarded – undo
68 68
 									<span class="give-update-paused-text-p" <?php echo ! Give_Updates::$background_updater->is_paused_process() ? 'style="display:none;"' : ''; ?>>
69 69
 										<?php if ( get_option( 'give_upgrade_error' ) ) : ?>
70 70
 											&nbsp<?php _e( 'An unexpected issue occurred during the database update which caused it to stop automatically. Please contact support for assistance.', 'give' ); ?>
71
-										<?php else : ?>
72
-											<?php _e( 'The updates have been paused.', 'give' ); ?>
71
+										<?php else {
72
+	: ?>
73
+											<?php _e( 'The updates have been paused.', 'give' );
74
+}
75
+?>
73 76
 										<?php endif; ?>
74 77
 									</span>
75 78
 
@@ -121,7 +124,10 @@  discard block
 block discarded – undo
121 124
 					</div><!-- .postbox -->
122 125
 				</div> <!-- .post-container -->
123 126
 			</div>
124
-		<?php else: include GIVE_PLUGIN_DIR . 'includes/admin/upgrades/views/db-upgrades-complete-metabox.php'; ?>
127
+		<?php else {
128
+	: include GIVE_PLUGIN_DIR . 'includes/admin/upgrades/views/db-upgrades-complete-metabox.php';
129
+}
130
+?>
125 131
 		<?php endif; ?>
126 132
 
127 133
 		<?php $plugin_updates = $give_updates->get_total_plugin_update_count(); ?>
Please login to merge, or discard this patch.
includes/admin/shortcodes/class-shortcode-button.php 1 patch
Spacing   +53 added lines, -53 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
12 12
  */
13 13
 
14 14
 // Exit if accessed directly.
15
-if ( ! defined( 'ABSPATH' ) ) {
15
+if ( ! defined('ABSPATH')) {
16 16
 	exit;
17 17
 }
18 18
 
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
 	 * Class constructor
33 33
 	 */
34 34
 	public function __construct() {
35
-		add_action( 'admin_init', array( $this, 'init'), 999 );
35
+		add_action('admin_init', array($this, 'init'), 999);
36 36
 	}
37 37
 
38 38
 	/**
@@ -41,17 +41,17 @@  discard block
 block discarded – undo
41 41
 	 * @since 2.1.0
42 42
 	 * @access public
43 43
 	 */
44
-	public function init(){
45
-		if ( $this->is_add_button() ) {
46
-			add_filter( 'mce_external_plugins', array( $this, 'mce_external_plugins' ), 15 );
44
+	public function init() {
45
+		if ($this->is_add_button()) {
46
+			add_filter('mce_external_plugins', array($this, 'mce_external_plugins'), 15);
47 47
 
48
-			add_action( 'admin_enqueue_scripts', array( $this, 'admin_enqueue_assets' ) );
49
-			add_action( 'admin_enqueue_scripts', array( $this, 'admin_localize_scripts' ), 13 );
50
-			add_action( 'media_buttons', array( $this, 'shortcode_button' ) );
48
+			add_action('admin_enqueue_scripts', array($this, 'admin_enqueue_assets'));
49
+			add_action('admin_enqueue_scripts', array($this, 'admin_localize_scripts'), 13);
50
+			add_action('media_buttons', array($this, 'shortcode_button'));
51 51
 		}
52 52
 
53
-		add_action( "wp_ajax_give_shortcode", array( $this, 'shortcode_ajax' ) );
54
-		add_action( "wp_ajax_nopriv_give_shortcode", array( $this, 'shortcode_ajax' ) );
53
+		add_action("wp_ajax_give_shortcode", array($this, 'shortcode_ajax'));
54
+		add_action("wp_ajax_nopriv_give_shortcode", array($this, 'shortcode_ajax'));
55 55
 	}
56 56
 
57 57
 	/**
@@ -63,13 +63,13 @@  discard block
 block discarded – undo
63 63
 	 *
64 64
 	 * @since 1.0
65 65
 	 */
66
-	public function mce_external_plugins( $plugin_array ) {
66
+	public function mce_external_plugins($plugin_array) {
67 67
 
68
-		if ( ! current_user_can( 'edit_posts' ) && ! current_user_can( 'edit_pages' ) ) {
68
+		if ( ! current_user_can('edit_posts') && ! current_user_can('edit_pages')) {
69 69
 			return false;
70 70
 		}
71 71
 
72
-		$plugin_array['give_shortcode'] = GIVE_PLUGIN_URL . 'includes/admin/shortcodes/mce-plugin.js';
72
+		$plugin_array['give_shortcode'] = GIVE_PLUGIN_URL.'includes/admin/shortcodes/mce-plugin.js';
73 73
 
74 74
 		return $plugin_array;
75 75
 	}
@@ -82,19 +82,19 @@  discard block
 block discarded – undo
82 82
 	 * @since 1.0
83 83
 	 */
84 84
 	public function admin_enqueue_assets() {
85
-		$direction = ( is_rtl() || isset( $_GET['d'] ) && 'rtl' === $_GET['d'] ) ? '.rtl' : '';
85
+		$direction = (is_rtl() || isset($_GET['d']) && 'rtl' === $_GET['d']) ? '.rtl' : '';
86 86
 
87 87
 		wp_enqueue_script(
88 88
 			'give_shortcode',
89
-			GIVE_PLUGIN_URL . 'assets/dist/js/admin-shortcodes.js',
90
-			array( 'jquery' ),
89
+			GIVE_PLUGIN_URL.'assets/dist/js/admin-shortcodes.js',
90
+			array('jquery'),
91 91
 			GIVE_VERSION,
92 92
 			true
93 93
 		);
94 94
 
95 95
 		wp_enqueue_style(
96 96
 			'give-admin-shortcode-button-style',
97
-			GIVE_PLUGIN_URL . 'assets/dist/css/admin-shortcode-button' . $direction . '.css',
97
+			GIVE_PLUGIN_URL.'assets/dist/css/admin-shortcode-button'.$direction.'.css',
98 98
 			array(),
99 99
 			GIVE_VERSION
100 100
 		);
@@ -109,17 +109,17 @@  discard block
 block discarded – undo
109 109
 	 */
110 110
 	public function admin_localize_scripts() {
111 111
 
112
-		if ( ! empty( self::$shortcodes ) ) {
112
+		if ( ! empty(self::$shortcodes)) {
113 113
 
114 114
 			$variables = array();
115 115
 
116
-			foreach ( self::$shortcodes as $shortcode => $values ) {
117
-				if ( ! empty( $values['required'] ) ) {
118
-					$variables[ $shortcode ] = $values['required'];
116
+			foreach (self::$shortcodes as $shortcode => $values) {
117
+				if ( ! empty($values['required'])) {
118
+					$variables[$shortcode] = $values['required'];
119 119
 				}
120 120
 			}
121 121
 
122
-			wp_localize_script( 'give_shortcode', 'scShortcodes', $variables );
122
+			wp_localize_script('give_shortcode', 'scShortcodes', $variables);
123 123
 		}
124 124
 	}
125 125
 
@@ -134,16 +134,16 @@  discard block
 block discarded – undo
134 134
 
135 135
 		$shortcodes = array();
136 136
 
137
-		foreach ( self::$shortcodes as $shortcode => $values ) {
137
+		foreach (self::$shortcodes as $shortcode => $values) {
138 138
 
139 139
 			/**
140 140
 			 * Filters the condition for including the current shortcode
141 141
 			 *
142 142
 			 * @since 1.0
143 143
 			 */
144
-			if ( apply_filters( sanitize_title( $shortcode ) . '_condition', true ) ) {
144
+			if (apply_filters(sanitize_title($shortcode).'_condition', true)) {
145 145
 
146
-				$shortcodes[ $shortcode ] = sprintf(
146
+				$shortcodes[$shortcode] = sprintf(
147 147
 					'<div class="sc-shortcode mce-menu-item give-shortcode-item-%1$s" data-shortcode="%2$s">%3$s</div>',
148 148
 					$shortcode,
149 149
 					$shortcode,
@@ -152,37 +152,37 @@  discard block
 block discarded – undo
152 152
 			}
153 153
 		}
154 154
 
155
-		if ( ! empty( $shortcodes ) ) {
155
+		if ( ! empty($shortcodes)) {
156 156
 
157 157
 			// check current WP version
158
-			$img = ( version_compare( get_bloginfo( 'version' ), '3.5', '<' ) )
159
-				? '<img src="' . GIVE_PLUGIN_URL . 'assets/dist/images/give-media.png" />'
160
-				: '<span class="wp-media-buttons-icon" id="give-media-button" style="background-image: url(' . give_svg_icons( 'give_grey' ) . ');"></span>';
158
+			$img = (version_compare(get_bloginfo('version'), '3.5', '<'))
159
+				? '<img src="'.GIVE_PLUGIN_URL.'assets/dist/images/give-media.png" />'
160
+				: '<span class="wp-media-buttons-icon" id="give-media-button" style="background-image: url('.give_svg_icons('give_grey').');"></span>';
161 161
 
162
-			reset( $shortcodes );
162
+			reset($shortcodes);
163 163
 
164
-			if ( 1 === count( $shortcodes ) ) {
164
+			if (1 === count($shortcodes)) {
165 165
 
166
-				$shortcode = key( $shortcodes );
166
+				$shortcode = key($shortcodes);
167 167
 
168 168
 				printf(
169 169
 					'<button type="button" class="button sc-shortcode" data-shortcode="%s">%s</button>',
170 170
 					$shortcode,
171
-					sprintf( '%s %s %s',
171
+					sprintf('%s %s %s',
172 172
 						$img,
173
-						__( 'Insert', 'give' ),
174
-						self::$shortcodes[ $shortcode ]['label']
173
+						__('Insert', 'give'),
174
+						self::$shortcodes[$shortcode]['label']
175 175
 					)
176 176
 				);
177 177
 			} else {
178 178
 				printf(
179
-					'<div class="sc-wrap">' .
180
-					'<button class="button sc-button" type="button">%s %s</button>' .
181
-					'<div class="sc-menu mce-menu">%s</div>' .
179
+					'<div class="sc-wrap">'.
180
+					'<button class="button sc-button" type="button">%s %s</button>'.
181
+					'<div class="sc-menu mce-menu">%s</div>'.
182 182
 					'</div>',
183 183
 					$img,
184
-					__( 'Give Shortcodes', 'give' ),
185
-					implode( '', array_values( $shortcodes ) )
184
+					__('Give Shortcodes', 'give'),
185
+					implode('', array_values($shortcodes))
186 186
 				);
187 187
 			}
188 188
 		}
@@ -197,15 +197,15 @@  discard block
 block discarded – undo
197 197
 	 */
198 198
 	public function shortcode_ajax() {
199 199
 
200
-		$shortcode = isset( $_POST['shortcode'] ) ? $_POST['shortcode'] : false;
200
+		$shortcode = isset($_POST['shortcode']) ? $_POST['shortcode'] : false;
201 201
 		$response  = false;
202 202
 
203
-		if ( $shortcode && array_key_exists( $shortcode, self::$shortcodes ) ) {
203
+		if ($shortcode && array_key_exists($shortcode, self::$shortcodes)) {
204 204
 
205
-			$data = self::$shortcodes[ $shortcode ];
205
+			$data = self::$shortcodes[$shortcode];
206 206
 
207
-			if ( ! empty( $data['errors'] ) ) {
208
-				$data['btn_okay'] = array( esc_html__( 'Okay', 'give' ) );
207
+			if ( ! empty($data['errors'])) {
208
+				$data['btn_okay'] = array(esc_html__('Okay', 'give'));
209 209
 			}
210 210
 
211 211
 			$response = array(
@@ -217,10 +217,10 @@  discard block
 block discarded – undo
217 217
 			);
218 218
 		} else {
219 219
 			// todo: handle error
220
-			error_log( print_r( 'AJAX error!', 1 ) );
220
+			error_log(print_r('AJAX error!', 1));
221 221
 		}
222 222
 
223
-		wp_send_json( $response );
223
+		wp_send_json($response);
224 224
 	}
225 225
 
226 226
 
@@ -234,22 +234,22 @@  discard block
 block discarded – undo
234 234
 	private function is_add_button() {
235 235
 		global $pagenow;
236 236
 
237
-		$shortcode_button_pages = apply_filters( 'give_shortcode_button_pages', array(
237
+		$shortcode_button_pages = apply_filters('give_shortcode_button_pages', array(
238 238
 			'post.php',
239 239
 			'page.php',
240 240
 			'post-new.php',
241 241
 			'post-edit.php',
242 242
 			'edit.php',
243 243
 			'edit.php?post_type=page',
244
-		) );
244
+		));
245 245
 
246 246
 		$setting_page = give_get_current_setting_page();
247 247
 
248 248
 		// Only run in admin post/page creation and edit screens
249 249
 		if (
250 250
 			! is_admin()
251
-			|| ! in_array( $pagenow, $shortcode_button_pages )
252
-			|| ( 'give-settings' === $setting_page )
251
+			|| ! in_array($pagenow, $shortcode_button_pages)
252
+			|| ('give-settings' === $setting_page)
253 253
 
254 254
 			/**
255 255
 			 * Fire the filter
@@ -258,8 +258,8 @@  discard block
 block discarded – undo
258 258
 			 * @since 1.0
259 259
 			 *
260 260
 			 */
261
-			|| ! apply_filters( 'give_shortcode_button_condition', true )
262
-			|| empty( self::$shortcodes )
261
+			|| ! apply_filters('give_shortcode_button_condition', true)
262
+			|| empty(self::$shortcodes)
263 263
 		) {
264 264
 			return false;
265 265
 		}
Please login to merge, or discard this patch.
includes/admin/shortcodes/shortcode-give-donor-wall.php 1 patch
Spacing   +34 added lines, -34 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@  discard block
 block discarded – undo
10 10
  */
11 11
 
12 12
 // Exit if accessed directly.
13
-if ( ! defined( 'ABSPATH' ) ) {
13
+if ( ! defined('ABSPATH')) {
14 14
 	exit;
15 15
 }
16 16
 
@@ -24,10 +24,10 @@  discard block
 block discarded – undo
24 24
 	 */
25 25
 	public function __construct() {
26 26
 
27
-		$this->shortcode['title'] = esc_html__( 'Donor Wall', 'give' );
28
-		$this->shortcode['label'] = esc_html__( 'Donor Wall', 'give' );
27
+		$this->shortcode['title'] = esc_html__('Donor Wall', 'give');
28
+		$this->shortcode['label'] = esc_html__('Donor Wall', 'give');
29 29
 
30
-		parent::__construct( 'give_donor_wall' );
30
+		parent::__construct('give_donor_wall');
31 31
 	}
32 32
 
33 33
 	/**
@@ -43,90 +43,90 @@  discard block
 block discarded – undo
43 43
 					'post_type' => 'give_forms',
44 44
 				),
45 45
 				'name'        => 'form_id',
46
-				'tooltip'     => esc_attr__( 'Select a Donation Form', 'give' ),
47
-				'placeholder' => '- ' . esc_attr__( 'Select a Donation Form', 'give' ) . ' -',
46
+				'tooltip'     => esc_attr__('Select a Donation Form', 'give'),
47
+				'placeholder' => '- '.esc_attr__('Select a Donation Form', 'give').' -',
48 48
 			),
49 49
 			array(
50 50
 				'type'        => 'textbox',
51 51
 				'name'        => 'donors_per_page',
52
-				'label'       => esc_attr__( 'Donors Per Page', 'give' ),
52
+				'label'       => esc_attr__('Donors Per Page', 'give'),
53 53
 				'placeholder' => '20',
54 54
 			),
55 55
 			array(
56 56
 				'type'        => 'textbox',
57 57
 				'name'        => 'comment_length',
58
-				'label'       => esc_attr__( 'Comment Length', 'give' ),
58
+				'label'       => esc_attr__('Comment Length', 'give'),
59 59
 				'placeholder' => '20',
60 60
 			),
61 61
 			array(
62 62
 				'type'        => 'textbox',
63 63
 				'name'        => 'readmore_text',
64
-				'label'       => esc_attr__( 'Read More Text', 'give' ),
65
-				'placeholder' => esc_html__( 'Read More', 'give' ),
64
+				'label'       => esc_attr__('Read More Text', 'give'),
65
+				'placeholder' => esc_html__('Read More', 'give'),
66 66
 			),
67 67
 			array(
68 68
 				'type'        => 'textbox',
69 69
 				'name'        => 'loadmore_text',
70
-				'label'       => esc_attr__( 'Load More Text', 'give' ),
71
-				'placeholder' => esc_html__( 'Load More', 'give' ),
70
+				'label'       => esc_attr__('Load More Text', 'give'),
71
+				'placeholder' => esc_html__('Load More', 'give'),
72 72
 			),
73 73
 			array(
74 74
 				'type'        => 'listbox',
75 75
 				'name'        => 'columns',
76
-				'label'       => esc_attr__( 'Columns:', 'give' ),
77
-				'tooltip'     => esc_attr__( 'Sets the number of forms per row.', 'give' ),
76
+				'label'       => esc_attr__('Columns:', 'give'),
77
+				'tooltip'     => esc_attr__('Sets the number of forms per row.', 'give'),
78 78
 				'options'     => array(
79
-					'1' => esc_html__( '1', 'give' ),
80
-					'2' => esc_html__( '2', 'give' ),
81
-					'3' => esc_html__( '3', 'give' ),
82
-					'4' => esc_html__( '4', 'give' ),
79
+					'1' => esc_html__('1', 'give'),
80
+					'2' => esc_html__('2', 'give'),
81
+					'3' => esc_html__('3', 'give'),
82
+					'4' => esc_html__('4', 'give'),
83 83
 				),
84
-				'placeholder' => esc_html__( 'Best Fit', 'give' ),
84
+				'placeholder' => esc_html__('Best Fit', 'give'),
85 85
 			),
86 86
 			array(
87 87
 				'type'        => 'listbox',
88 88
 				'name'        => 'show_avatar',
89
-				'label'       => esc_attr__( 'Show Avatar', 'give' ),
89
+				'label'       => esc_attr__('Show Avatar', 'give'),
90 90
 				'options'     => array(
91
-					'false' => esc_html__( 'Hide', 'give' ),
91
+					'false' => esc_html__('Hide', 'give'),
92 92
 				),
93
-				'placeholder' => esc_html__( 'Show', 'give' ),
93
+				'placeholder' => esc_html__('Show', 'give'),
94 94
 			),
95 95
 			array(
96 96
 				'type'        => 'listbox',
97 97
 				'name'        => 'show_name',
98
-				'label'       => esc_attr__( 'Show Name', 'give' ),
98
+				'label'       => esc_attr__('Show Name', 'give'),
99 99
 				'options'     => array(
100
-					'false' => esc_html__( 'Hide', 'give' ),
100
+					'false' => esc_html__('Hide', 'give'),
101 101
 				),
102
-				'placeholder' => esc_html__( 'Show', 'give' ),
102
+				'placeholder' => esc_html__('Show', 'give'),
103 103
 			),
104 104
 			array(
105 105
 				'type'        => 'listbox',
106 106
 				'name'        => 'show_total',
107
-				'label'       => esc_attr__( 'Show Total', 'give' ),
107
+				'label'       => esc_attr__('Show Total', 'give'),
108 108
 				'options'     => array(
109
-					'false' => esc_html__( 'Hide', 'give' ),
109
+					'false' => esc_html__('Hide', 'give'),
110 110
 				),
111
-				'placeholder' => esc_html__( 'Show', 'give' ),
111
+				'placeholder' => esc_html__('Show', 'give'),
112 112
 			),
113 113
 			array(
114 114
 				'type'        => 'listbox',
115 115
 				'name'        => 'show_time',
116
-				'label'       => esc_attr__( 'Show Date', 'give' ),
116
+				'label'       => esc_attr__('Show Date', 'give'),
117 117
 				'options'     => array(
118
-					'false' => esc_html__( 'Hide', 'give' ),
118
+					'false' => esc_html__('Hide', 'give'),
119 119
 				),
120
-				'placeholder' => esc_html__( 'Show', 'give' ),
120
+				'placeholder' => esc_html__('Show', 'give'),
121 121
 			),
122 122
 			array(
123 123
 				'type'        => 'listbox',
124 124
 				'name'        => 'show_comments',
125
-				'label'       => esc_attr__( 'Show Comments', 'give' ),
125
+				'label'       => esc_attr__('Show Comments', 'give'),
126 126
 				'options'     => array(
127
-					'false' => esc_html__( 'Hide', 'give' ),
127
+					'false' => esc_html__('Hide', 'give'),
128 128
 				),
129
-				'placeholder' => esc_html__( 'Show', 'give' ),
129
+				'placeholder' => esc_html__('Show', 'give'),
130 130
 			)
131 131
 		);
132 132
 	}
Please login to merge, or discard this patch.
includes/admin/shortcodes/shortcode-give-donation-grid.php 1 patch
Spacing   +36 added lines, -36 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
  */
10 10
 
11 11
 // Exit if accessed directly.
12
-if ( ! defined( 'ABSPATH' ) ) {
12
+if ( ! defined('ABSPATH')) {
13 13
 	exit;
14 14
 }
15 15
 
@@ -23,10 +23,10 @@  discard block
 block discarded – undo
23 23
 	 */
24 24
 	public function __construct() {
25 25
 
26
-		$this->shortcode['title'] = esc_html__( 'Donation Form Grid', 'give' );
27
-		$this->shortcode['label'] = esc_html__( 'Donation Form Grid', 'give' );
26
+		$this->shortcode['title'] = esc_html__('Donation Form Grid', 'give');
27
+		$this->shortcode['label'] = esc_html__('Donation Form Grid', 'give');
28 28
 
29
-		parent::__construct( 'give_form_grid' );
29
+		parent::__construct('give_form_grid');
30 30
 	}
31 31
 
32 32
 	/**
@@ -39,80 +39,80 @@  discard block
 block discarded – undo
39 39
 		return array(
40 40
 			array(
41 41
 				'type' => 'container',
42
-				'html' => sprintf( '<p class="strong margin-top">%s</p>', esc_html__( 'Optional settings', 'give' ) ),
42
+				'html' => sprintf('<p class="strong margin-top">%s</p>', esc_html__('Optional settings', 'give')),
43 43
 			),
44 44
 			array(
45 45
 				'type'        => 'textbox',
46 46
 				'name'        => 'ids',
47
-				'label'       => esc_attr__( 'Form IDs:', 'give' ),
48
-				'tooltip'     => esc_attr__( 'Enter a comma-separated list of form IDs. If empty, all published forms are displayed.', 'give' ),
49
-				'placeholder' => esc_html__( 'All Forms', 'give' )
47
+				'label'       => esc_attr__('Form IDs:', 'give'),
48
+				'tooltip'     => esc_attr__('Enter a comma-separated list of form IDs. If empty, all published forms are displayed.', 'give'),
49
+				'placeholder' => esc_html__('All Forms', 'give')
50 50
 			),
51 51
 			array(
52 52
 				'type'        => 'textbox',
53 53
 				'name'        => 'exclude',
54
-				'label'       => esc_attr__( 'Excluded Form IDs:', 'give' ),
55
-				'tooltip'     => esc_attr__( 'Enter a comma-separated list of form IDs to exclude those from the grid.', 'give' ),
56
-				'placeholder' => esc_html__( 'Excluded Forms', 'give' )
54
+				'label'       => esc_attr__('Excluded Form IDs:', 'give'),
55
+				'tooltip'     => esc_attr__('Enter a comma-separated list of form IDs to exclude those from the grid.', 'give'),
56
+				'placeholder' => esc_html__('Excluded Forms', 'give')
57 57
 			),
58 58
 			array(
59 59
 				'type'        => 'listbox',
60 60
 				'name'        => 'columns',
61
-				'label'       => esc_attr__( 'Columns:', 'give' ),
62
-				'tooltip'     => esc_attr__( 'Sets the number of forms per row.', 'give' ),
61
+				'label'       => esc_attr__('Columns:', 'give'),
62
+				'tooltip'     => esc_attr__('Sets the number of forms per row.', 'give'),
63 63
 				'options'     => array(
64
-					'1' => esc_html__( '1', 'give' ),
65
-					'2' => esc_html__( '2', 'give' ),
66
-					'3' => esc_html__( '3', 'give' ),
67
-					'4' => esc_html__( '4', 'give' ),
64
+					'1' => esc_html__('1', 'give'),
65
+					'2' => esc_html__('2', 'give'),
66
+					'3' => esc_html__('3', 'give'),
67
+					'4' => esc_html__('4', 'give'),
68 68
 				),
69
-				'placeholder' => esc_html__( 'Best Fit', 'give' )
69
+				'placeholder' => esc_html__('Best Fit', 'give')
70 70
 			),
71 71
 			array(
72 72
 				'type'    => 'listbox',
73 73
 				'name'    => 'show_goal',
74
-				'label'   => esc_attr__( 'Show Goal:', 'give' ),
75
-				'tooltip' => __( 'Do you want to display the goal\'s progress bar?', 'give' ),
74
+				'label'   => esc_attr__('Show Goal:', 'give'),
75
+				'tooltip' => __('Do you want to display the goal\'s progress bar?', 'give'),
76 76
 				'options' => array(
77
-					'true'  => esc_html__( 'Show', 'give' ),
78
-					'false' => esc_html__( 'Hide', 'give' ),
77
+					'true'  => esc_html__('Show', 'give'),
78
+					'false' => esc_html__('Hide', 'give'),
79 79
 				),
80 80
 			),
81 81
 			array(
82 82
 				'type'    => 'listbox',
83 83
 				'name'    => 'show_excerpt',
84
-				'label'   => esc_attr__( 'Show Excerpt:', 'give' ),
85
-				'tooltip' => esc_attr__( 'Do you want to display the excerpt?', 'give' ),
84
+				'label'   => esc_attr__('Show Excerpt:', 'give'),
85
+				'tooltip' => esc_attr__('Do you want to display the excerpt?', 'give'),
86 86
 				'options' => array(
87
-					'true'  => esc_html__( 'Show', 'give' ),
88
-					'false' => esc_html__( 'Hide', 'give' ),
87
+					'true'  => esc_html__('Show', 'give'),
88
+					'false' => esc_html__('Hide', 'give'),
89 89
 				),
90 90
 			),
91 91
 			array(
92 92
 				'type'    => 'listbox',
93 93
 				'name'    => 'show_featured_image',
94
-				'label'   => esc_attr__( 'Show Featured Image:', 'give' ),
95
-				'tooltip' => esc_attr__( 'Do you want to display the featured image?', 'give' ),
94
+				'label'   => esc_attr__('Show Featured Image:', 'give'),
95
+				'tooltip' => esc_attr__('Do you want to display the featured image?', 'give'),
96 96
 				'options' => array(
97
-					'true'  => esc_html__( 'Show', 'give' ),
98
-					'false' => esc_html__( 'Hide', 'give' ),
97
+					'true'  => esc_html__('Show', 'give'),
98
+					'false' => esc_html__('Hide', 'give'),
99 99
 				),
100 100
 			),
101 101
 			array(
102 102
 				'type'    => 'listbox',
103 103
 				'name'    => 'display_style',
104
-				'label'   => esc_attr__( 'Display Style:', 'give' ),
105
-				'tooltip' => esc_attr__( 'Show form as modal window or redirect to a new page?', 'give' ),
104
+				'label'   => esc_attr__('Display Style:', 'give'),
105
+				'tooltip' => esc_attr__('Show form as modal window or redirect to a new page?', 'give'),
106 106
 				'options' => array(
107
-					'redirect'     => esc_html__( 'Redirect', 'give' ),
108
-					'modal_reveal' => esc_html__( 'Modal', 'give' ),
107
+					'redirect'     => esc_html__('Redirect', 'give'),
108
+					'modal_reveal' => esc_html__('Modal', 'give'),
109 109
 				),
110 110
 			),
111 111
 			array(
112 112
 				'type'    => 'textbox',
113 113
 				'name'    => 'forms_per_page',
114
-				'label'   => esc_attr__( 'Forms Per Page:', 'give' ),
115
-				'tooltip' => esc_attr__( 'Sets the number of forms to display per page.', 'give' ),
114
+				'label'   => esc_attr__('Forms Per Page:', 'give'),
115
+				'tooltip' => esc_attr__('Sets the number of forms to display per page.', 'give'),
116 116
 				'value'   => 12,
117 117
 			),
118 118
 		);
Please login to merge, or discard this patch.
includes/class-give-donor-wall-widget.php 1 patch
Spacing   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@  discard block
 block discarded – undo
10 10
  */
11 11
 
12 12
 // Exit if accessed directly.
13
-if ( ! defined( 'ABSPATH' ) ) {
13
+if ( ! defined('ABSPATH')) {
14 14
 	exit;
15 15
 }
16 16
 
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
 		// widget settings
35 35
 		$widget_ops = array(
36 36
 			'classname'   => 'give-donors-gravatars',
37
-			'description' => esc_html__( 'Displays gravatars of people who have donated using your your form. Will only show on the single form page.', 'give' ),
37
+			'description' => esc_html__('Displays gravatars of people who have donated using your your form. Will only show on the single form page.', 'give'),
38 38
 		);
39 39
 
40 40
 		// widget control settings
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
 		// create the widget
48 48
 		parent::__construct(
49 49
 			'give_donors_gravatars_widget',
50
-			esc_html__( 'Give Donors Gravatars', 'give' ),
50
+			esc_html__('Give Donors Gravatars', 'give'),
51 51
 			$widget_ops,
52 52
 			$control_ops
53 53
 		);
@@ -67,29 +67,29 @@  discard block
 block discarded – undo
67 67
 	 *
68 68
 	 * @return void
69 69
 	 */
70
-	public function widget( $args, $instance ) {
70
+	public function widget($args, $instance) {
71 71
 
72 72
 		//@TODO: Don't extract it!!!
73
-		extract( $args );
73
+		extract($args);
74 74
 
75
-		if ( ! is_singular( 'give_forms' ) ) {
75
+		if ( ! is_singular('give_forms')) {
76 76
 			return;
77 77
 		}
78 78
 
79 79
 		// Variables from widget settings
80
-		$title = apply_filters( 'widget_title', $instance['title'] );
80
+		$title = apply_filters('widget_title', $instance['title']);
81 81
 
82 82
 		// Used by themes. Opens the widget
83 83
 		echo $before_widget;
84 84
 
85 85
 		// Display the widget title
86
-		if ( $title ) {
87
-			echo $before_title . $title . $after_title;
86
+		if ($title) {
87
+			echo $before_title.$title.$after_title;
88 88
 		}
89 89
 
90 90
 		$gravatars = new Give_Donor_Wall();
91 91
 
92
-		echo $gravatars->gravatars( get_the_ID(), null ); // remove title
92
+		echo $gravatars->gravatars(get_the_ID(), null); // remove title
93 93
 
94 94
 		// Used by themes. Closes the widget
95 95
 		echo $after_widget;
@@ -109,11 +109,11 @@  discard block
 block discarded – undo
109 109
 	 *
110 110
 	 * @return array Updated settings to save.
111 111
 	 */
112
-	public function update( $new_instance, $old_instance ) {
112
+	public function update($new_instance, $old_instance) {
113 113
 
114 114
 		$instance = $old_instance;
115 115
 
116
-		$instance['title'] = strip_tags( $new_instance['title'] );
116
+		$instance['title'] = strip_tags($new_instance['title']);
117 117
 
118 118
 		return $instance;
119 119
 
@@ -131,19 +131,19 @@  discard block
 block discarded – undo
131 131
 	 *
132 132
 	 * @return void
133 133
 	 */
134
-	public function form( $instance ) {
134
+	public function form($instance) {
135 135
 
136 136
 		// Set up some default widget settings.
137 137
 		$defaults = array(
138 138
 			'title' => '',
139 139
 		);
140 140
 
141
-		$instance = wp_parse_args( (array) $instance, $defaults ); ?>
141
+		$instance = wp_parse_args((array) $instance, $defaults); ?>
142 142
 
143 143
 		<!-- Title -->
144 144
 		<p>
145
-			<label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php esc_html_e( 'Title:', 'give' ) ?></label>
146
-			<input class="widefat" id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" type="text" value="<?php echo $instance['title']; ?>" />
145
+			<label for="<?php echo $this->get_field_id('title'); ?>"><?php esc_html_e('Title:', 'give') ?></label>
146
+			<input class="widefat" id="<?php echo $this->get_field_id('title'); ?>" name="<?php echo $this->get_field_name('title'); ?>" type="text" value="<?php echo $instance['title']; ?>" />
147 147
 		</p>
148 148
 
149 149
 		<?php
@@ -154,8 +154,8 @@  discard block
 block discarded – undo
154 154
 	 *
155 155
 	 * @return void
156 156
 	 */
157
-	function widget_init(){
158
-		register_widget( $this->self );
157
+	function widget_init() {
158
+		register_widget($this->self);
159 159
 	}
160 160
 
161 161
 }
Please login to merge, or discard this patch.
includes/currency-functions.php 1 patch
Spacing   +223 added lines, -223 removed lines patch added patch discarded remove patch
@@ -20,17 +20,17 @@  discard block
 block discarded – undo
20 20
  *
21 21
  * @return string The currency code
22 22
  */
23
-function give_get_currency( $donation_or_form_id = null, $args = array() ) {
23
+function give_get_currency($donation_or_form_id = null, $args = array()) {
24 24
 
25 25
 	// Get currency from donation
26
-	if ( is_numeric( $donation_or_form_id ) && 'give_payment' === get_post_type( $donation_or_form_id ) ) {
27
-		$currency = give_get_meta( $donation_or_form_id, '_give_payment_currency', true );
26
+	if (is_numeric($donation_or_form_id) && 'give_payment' === get_post_type($donation_or_form_id)) {
27
+		$currency = give_get_meta($donation_or_form_id, '_give_payment_currency', true);
28 28
 
29
-		if ( empty( $currency ) ) {
30
-			$currency = give_get_option( 'currency', 'USD' );
29
+		if (empty($currency)) {
30
+			$currency = give_get_option('currency', 'USD');
31 31
 		}
32 32
 	} else {
33
-		$currency = give_get_option( 'currency', 'USD' );
33
+		$currency = give_get_option('currency', 'USD');
34 34
 	}
35 35
 
36 36
 	/**
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
 	 *
39 39
 	 * @since 1.0
40 40
 	 */
41
-	return apply_filters( 'give_currency', $currency, $donation_or_form_id, $args );
41
+	return apply_filters('give_currency', $currency, $donation_or_form_id, $args);
42 42
 }
43 43
 
44 44
 /**
@@ -50,9 +50,9 @@  discard block
 block discarded – undo
50 50
  */
51 51
 function give_get_currency_position() {
52 52
 
53
-	$currency_pos = give_get_option( 'currency_position', 'before' );
53
+	$currency_pos = give_get_option('currency_position', 'before');
54 54
 
55
-	return apply_filters( 'give_currency_position', $currency_pos );
55
+	return apply_filters('give_currency_position', $currency_pos);
56 56
 }
57 57
 
58 58
 /**
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
 function give_get_currencies_list() {
66 66
 	$currencies = array(
67 67
 		'USD' => array(
68
-			'admin_label' => sprintf( __('US Dollars (%1$s)', 'give'), '&#36;'),
68
+			'admin_label' => sprintf(__('US Dollars (%1$s)', 'give'), '&#36;'),
69 69
 			'symbol'      => '&#36;',
70 70
 			'setting'     => array(
71 71
 				'currency_position'   => 'before',
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
 			),
76 76
 		),
77 77
 		'EUR' => array(
78
-			'admin_label' => sprintf( __('Euros (%1$s)', 'give'), '&euro;'),
78
+			'admin_label' => sprintf(__('Euros (%1$s)', 'give'), '&euro;'),
79 79
 			'symbol'      => '&euro;',
80 80
 			'setting'     => array(
81 81
 				'currency_position'   => 'before',
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
 			),
86 86
 		),
87 87
 		'GBP' => array(
88
-			'admin_label' => sprintf( __('Pounds Sterling (%1$s)', 'give'), '&pound;'),
88
+			'admin_label' => sprintf(__('Pounds Sterling (%1$s)', 'give'), '&pound;'),
89 89
 			'symbol'      => '&pound;',
90 90
 			'setting'     => array(
91 91
 				'currency_position'   => 'before',
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
 			),
96 96
 		),
97 97
 		'AUD' => array(
98
-			'admin_label' => sprintf( __('Australian Dollars (%1$s)', 'give'), '&#36;'),
98
+			'admin_label' => sprintf(__('Australian Dollars (%1$s)', 'give'), '&#36;'),
99 99
 			'symbol'      => '&#36;',
100 100
 			'setting'     => array(
101 101
 				'currency_position'   => 'before',
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
 			),
106 106
 		),
107 107
 		'BRL' => array(
108
-			'admin_label' => sprintf( __('Brazilian Real (%1$s)', 'give'), '&#82;&#36;'),
108
+			'admin_label' => sprintf(__('Brazilian Real (%1$s)', 'give'), '&#82;&#36;'),
109 109
 			'symbol'      => '&#82;&#36;',
110 110
 			'setting'     => array(
111 111
 				'currency_position'   => 'before',
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
 			),
116 116
 		),
117 117
 		'CAD' => array(
118
-			'admin_label' => sprintf( __('Canadian Dollars (%1$s)', 'give'), '&#36;'),
118
+			'admin_label' => sprintf(__('Canadian Dollars (%1$s)', 'give'), '&#36;'),
119 119
 			'symbol'      => '&#36;',
120 120
 			'setting'     => array(
121 121
 				'currency_position'   => 'before',
@@ -125,7 +125,7 @@  discard block
 block discarded – undo
125 125
 			),
126 126
 		),
127 127
 		'CZK' => array(
128
-			'admin_label' => sprintf( __('Czech Koruna (%1$s)', 'give'), '&#75;&#269;'),
128
+			'admin_label' => sprintf(__('Czech Koruna (%1$s)', 'give'), '&#75;&#269;'),
129 129
 			'symbol'      => '&#75;&#269;',
130 130
 			'setting'     => array(
131 131
 				'currency_position'   => 'after',
@@ -135,7 +135,7 @@  discard block
 block discarded – undo
135 135
 			),
136 136
 		),
137 137
 		'DKK' => array(
138
-			'admin_label' => sprintf( __('Danish Krone (%1$s)', 'give'), '&nbsp;kr.&nbsp;'),
138
+			'admin_label' => sprintf(__('Danish Krone (%1$s)', 'give'), '&nbsp;kr.&nbsp;'),
139 139
 			'symbol'      => '&nbsp;kr.&nbsp;',
140 140
 			'setting'     => array(
141 141
 				'currency_position'   => 'before',
@@ -145,7 +145,7 @@  discard block
 block discarded – undo
145 145
 			),
146 146
 		),
147 147
 		'HKD' => array(
148
-			'admin_label' => sprintf( __('Hong Kong Dollar (%1$s)', 'give'), '&#36;'),
148
+			'admin_label' => sprintf(__('Hong Kong Dollar (%1$s)', 'give'), '&#36;'),
149 149
 			'symbol'      => '&#36;',
150 150
 			'setting'     => array(
151 151
 				'currency_position'   => 'before',
@@ -155,7 +155,7 @@  discard block
 block discarded – undo
155 155
 			),
156 156
 		),
157 157
 		'HUF' => array(
158
-			'admin_label' => sprintf( __('Hungarian Forint (%1$s)', 'give'), '&#70;&#116;'),
158
+			'admin_label' => sprintf(__('Hungarian Forint (%1$s)', 'give'), '&#70;&#116;'),
159 159
 			'symbol'      => '&#70;&#116;',
160 160
 			'setting'     => array(
161 161
 				'currency_position'   => 'after',
@@ -165,7 +165,7 @@  discard block
 block discarded – undo
165 165
 			),
166 166
 		),
167 167
 		'ILS' => array(
168
-			'admin_label' => sprintf( __('Israeli Shekel (%1$s)', 'give'), '&#8362;'),
168
+			'admin_label' => sprintf(__('Israeli Shekel (%1$s)', 'give'), '&#8362;'),
169 169
 			'symbol'      => '&#8362;',
170 170
 			'setting'     => array(
171 171
 				'currency_position'   => 'after',
@@ -175,7 +175,7 @@  discard block
 block discarded – undo
175 175
 			),
176 176
 		),
177 177
 		'JPY' => array(
178
-			'admin_label' => sprintf( __('Japanese Yen (%1$s)', 'give'), '&yen;'),
178
+			'admin_label' => sprintf(__('Japanese Yen (%1$s)', 'give'), '&yen;'),
179 179
 			'symbol'      => '&yen;',
180 180
 			'setting'     => array(
181 181
 				'currency_position'   => 'before',
@@ -185,7 +185,7 @@  discard block
 block discarded – undo
185 185
 			),
186 186
 		),
187 187
 		'MYR' => array(
188
-			'admin_label' => sprintf( __('Malaysian Ringgits (%1$s)', 'give'), '&#82;&#77;'),
188
+			'admin_label' => sprintf(__('Malaysian Ringgits (%1$s)', 'give'), '&#82;&#77;'),
189 189
 			'symbol'      => '&#82;&#77;',
190 190
 			'setting'     => array(
191 191
 				'currency_position'   => 'before',
@@ -195,7 +195,7 @@  discard block
 block discarded – undo
195 195
 			),
196 196
 		),
197 197
 		'MXN' => array(
198
-			'admin_label' => sprintf( __('Mexican Peso (%1$s)', 'give'), '&#36;'),
198
+			'admin_label' => sprintf(__('Mexican Peso (%1$s)', 'give'), '&#36;'),
199 199
 			'symbol'      => '&#36;',
200 200
 			'setting'     => array(
201 201
 				'currency_position'   => 'before',
@@ -205,7 +205,7 @@  discard block
 block discarded – undo
205 205
 			),
206 206
 		),
207 207
 		'MAD' => array(
208
-			'admin_label' => sprintf( __('Moroccan Dirham (%1$s)', 'give'), '&#x2e;&#x62f;&#x2e;&#x645;'),
208
+			'admin_label' => sprintf(__('Moroccan Dirham (%1$s)', 'give'), '&#x2e;&#x62f;&#x2e;&#x645;'),
209 209
 			'symbol'      => '&#x2e;&#x62f;&#x2e;&#x645;',
210 210
 			'setting'     => array(
211 211
 				'currency_position'   => 'before',
@@ -215,7 +215,7 @@  discard block
 block discarded – undo
215 215
 			),
216 216
 		),
217 217
 		'NZD' => array(
218
-			'admin_label' => sprintf( __('New Zealand Dollar (%1$s)', 'give'), '&#36;'),
218
+			'admin_label' => sprintf(__('New Zealand Dollar (%1$s)', 'give'), '&#36;'),
219 219
 			'symbol'      => '&#36;',
220 220
 			'setting'     => array(
221 221
 				'currency_position'   => 'before',
@@ -225,7 +225,7 @@  discard block
 block discarded – undo
225 225
 			),
226 226
 		),
227 227
 		'NOK' => array(
228
-			'admin_label' => sprintf( __('Norwegian Krone (%1$s)', 'give'), '&#107;&#114;.'),
228
+			'admin_label' => sprintf(__('Norwegian Krone (%1$s)', 'give'), '&#107;&#114;.'),
229 229
 			'symbol'      => '&#107;&#114;.',
230 230
 			'setting'     => array(
231 231
 				'currency_position'   => 'before',
@@ -235,7 +235,7 @@  discard block
 block discarded – undo
235 235
 			),
236 236
 		),
237 237
 		'PHP' => array(
238
-			'admin_label' => sprintf( __('Philippine Pesos (%1$s)', 'give'), '&#8369;'),
238
+			'admin_label' => sprintf(__('Philippine Pesos (%1$s)', 'give'), '&#8369;'),
239 239
 			'symbol'      => '&#8369;',
240 240
 			'setting'     => array(
241 241
 				'currency_position'   => 'before',
@@ -245,7 +245,7 @@  discard block
 block discarded – undo
245 245
 			),
246 246
 		),
247 247
 		'PLN' => array(
248
-			'admin_label' => sprintf( __('Polish Zloty (%1$s)', 'give'), '&#122;&#322;'),
248
+			'admin_label' => sprintf(__('Polish Zloty (%1$s)', 'give'), '&#122;&#322;'),
249 249
 			'symbol'      => '&#122;&#322;',
250 250
 			'setting'     => array(
251 251
 				'currency_position'   => 'after',
@@ -255,7 +255,7 @@  discard block
 block discarded – undo
255 255
 			),
256 256
 		),
257 257
 		'SGD' => array(
258
-			'admin_label' => sprintf( __('Singapore Dollar (%1$s)', 'give'), '&#36;'),
258
+			'admin_label' => sprintf(__('Singapore Dollar (%1$s)', 'give'), '&#36;'),
259 259
 			'symbol'      => '&#36;',
260 260
 			'setting'     => array(
261 261
 				'currency_position'   => 'before',
@@ -265,7 +265,7 @@  discard block
 block discarded – undo
265 265
 			),
266 266
 		),
267 267
 		'KRW' => array(
268
-			'admin_label' => sprintf( __('South Korean Won (%1$s)', 'give'), '&#8361;'),
268
+			'admin_label' => sprintf(__('South Korean Won (%1$s)', 'give'), '&#8361;'),
269 269
 			'symbol'      => '&#8361;',
270 270
 			'setting'     => array(
271 271
 				'currency_position'   => 'before',
@@ -275,7 +275,7 @@  discard block
 block discarded – undo
275 275
 			),
276 276
 		),
277 277
 		'ZAR' => array(
278
-			'admin_label' => sprintf( __('South African Rand (%1$s)', 'give'), '&#82;'),
278
+			'admin_label' => sprintf(__('South African Rand (%1$s)', 'give'), '&#82;'),
279 279
 			'symbol'      => '&#82;',
280 280
 			'setting'     => array(
281 281
 				'currency_position'   => 'before',
@@ -285,7 +285,7 @@  discard block
 block discarded – undo
285 285
 			),
286 286
 		),
287 287
 		'SEK' => array(
288
-			'admin_label' => sprintf( __('Swedish Krona (%1$s)', 'give'), '&nbsp;kr.&nbsp;'),
288
+			'admin_label' => sprintf(__('Swedish Krona (%1$s)', 'give'), '&nbsp;kr.&nbsp;'),
289 289
 			'symbol'      => '&nbsp;kr.&nbsp;',
290 290
 			'setting'     => array(
291 291
 				'currency_position'   => 'before',
@@ -295,7 +295,7 @@  discard block
 block discarded – undo
295 295
 			),
296 296
 		),
297 297
 		'CHF' => array(
298
-			'admin_label' => sprintf( __('Swiss Franc (%1$s)', 'give'), '&#70;&#114;'),
298
+			'admin_label' => sprintf(__('Swiss Franc (%1$s)', 'give'), '&#70;&#114;'),
299 299
 			'symbol'      => '&#70;&#114;',
300 300
 			'setting'     => array(
301 301
 				'currency_position'   => 'before',
@@ -305,7 +305,7 @@  discard block
 block discarded – undo
305 305
 			),
306 306
 		),
307 307
 		'TWD' => array(
308
-			'admin_label' => sprintf( __('Taiwan New Dollars (%1$s)', 'give'), '&#78;&#84;&#36;'),
308
+			'admin_label' => sprintf(__('Taiwan New Dollars (%1$s)', 'give'), '&#78;&#84;&#36;'),
309 309
 			'symbol'      => '&#78;&#84;&#36;',
310 310
 			'setting'     => array(
311 311
 				'currency_position'   => 'before',
@@ -315,7 +315,7 @@  discard block
 block discarded – undo
315 315
 			),
316 316
 		),
317 317
 		'THB' => array(
318
-			'admin_label' => sprintf( __('Thai Baht (%1$s)', 'give'), '&#3647;'),
318
+			'admin_label' => sprintf(__('Thai Baht (%1$s)', 'give'), '&#3647;'),
319 319
 			'symbol'      => '&#3647;',
320 320
 			'setting'     => array(
321 321
 				'currency_position'   => 'before',
@@ -325,7 +325,7 @@  discard block
 block discarded – undo
325 325
 			),
326 326
 		),
327 327
 		'INR' => array(
328
-			'admin_label' => sprintf( __('Indian Rupee (%1$s)', 'give'), '&#8377;'),
328
+			'admin_label' => sprintf(__('Indian Rupee (%1$s)', 'give'), '&#8377;'),
329 329
 			'symbol'      => '&#8377;',
330 330
 			'setting'     => array(
331 331
 				'currency_position'   => 'before',
@@ -335,7 +335,7 @@  discard block
 block discarded – undo
335 335
 			),
336 336
 		),
337 337
 		'TRY' => array(
338
-			'admin_label' => sprintf( __('Turkish Lira (%1$s)', 'give'), '&#8378;'),
338
+			'admin_label' => sprintf(__('Turkish Lira (%1$s)', 'give'), '&#8378;'),
339 339
 			'symbol'      => '&#8378;',
340 340
 			'setting'     => array(
341 341
 				'currency_position'   => 'after',
@@ -345,7 +345,7 @@  discard block
 block discarded – undo
345 345
 			),
346 346
 		),
347 347
 		'IRR' => array(
348
-			'admin_label' => sprintf( __('Iranian Rial (%1$s)', 'give'), '&#xfdfc;'),
348
+			'admin_label' => sprintf(__('Iranian Rial (%1$s)', 'give'), '&#xfdfc;'),
349 349
 			'symbol'      => '&#xfdfc;',
350 350
 			'setting'     => array(
351 351
 				'currency_position'   => 'after',
@@ -355,7 +355,7 @@  discard block
 block discarded – undo
355 355
 			),
356 356
 		),
357 357
 		'RUB' => array(
358
-			'admin_label' => sprintf( __('Russian Rubles (%1$s)', 'give'), '&#8381;'),
358
+			'admin_label' => sprintf(__('Russian Rubles (%1$s)', 'give'), '&#8381;'),
359 359
 			'symbol'      => '&#8381;',
360 360
 			'setting'     => array(
361 361
 				'currency_position'   => 'before',
@@ -365,7 +365,7 @@  discard block
 block discarded – undo
365 365
 			),
366 366
 		),
367 367
 		'AED' => array(
368
-			'admin_label' => sprintf( __('United Arab Emirates dirham (%1$s)', 'give'), '&#x62f;.&#x625;'),
368
+			'admin_label' => sprintf(__('United Arab Emirates dirham (%1$s)', 'give'), '&#x62f;.&#x625;'),
369 369
 			'symbol'      => '&#x62f;.&#x625;',
370 370
 			'setting'     => array(
371 371
 				'currency_position'   => 'before',
@@ -375,7 +375,7 @@  discard block
 block discarded – undo
375 375
 			),
376 376
 		),
377 377
 		'AMD' => array(
378
-			'admin_label' => sprintf( __('Armenian dram (%1$s)', 'give'), 'AMD'),
378
+			'admin_label' => sprintf(__('Armenian dram (%1$s)', 'give'), 'AMD'),
379 379
 			'symbol'      => 'AMD', // Add backward compatibility. Using AMD in place of &#1423;
380 380
 			'setting'     => array(
381 381
 				'currency_position'   => 'before',
@@ -385,7 +385,7 @@  discard block
 block discarded – undo
385 385
 			),
386 386
 		),
387 387
 		'ANG' => array(
388
-			'admin_label' => sprintf( __('Netherlands Antillean guilder (%1$s)', 'give'), '&#402;'),
388
+			'admin_label' => sprintf(__('Netherlands Antillean guilder (%1$s)', 'give'), '&#402;'),
389 389
 			'symbol'      => '&#402;',
390 390
 			'setting'     => array(
391 391
 				'currency_position'   => 'before',
@@ -395,7 +395,7 @@  discard block
 block discarded – undo
395 395
 			),
396 396
 		),
397 397
 		'ARS' => array(
398
-			'admin_label' => sprintf( __('Argentine peso (%1$s)', 'give'), '&#36;'),
398
+			'admin_label' => sprintf(__('Argentine peso (%1$s)', 'give'), '&#36;'),
399 399
 			'symbol'      => '&#36;',
400 400
 			'setting'     => array(
401 401
 				'currency_position'   => 'before',
@@ -405,7 +405,7 @@  discard block
 block discarded – undo
405 405
 			),
406 406
 		),
407 407
 		'AWG' => array(
408
-			'admin_label' => sprintf( __( 'Aruban florin (%1$s)', 'give' ), '&#402;' ),
408
+			'admin_label' => sprintf(__('Aruban florin (%1$s)', 'give'), '&#402;'),
409 409
 			'symbol'      => '&#402;',
410 410
 			'setting'     => array(
411 411
 				'currency_position'   => 'before',
@@ -415,7 +415,7 @@  discard block
 block discarded – undo
415 415
 			),
416 416
 		),
417 417
 		'BAM' => array(
418
-			'admin_label' => sprintf( __( 'Bosnia and Herzegovina convertible mark (%1$s)', 'give' ), '&#75;&#77;' ),
418
+			'admin_label' => sprintf(__('Bosnia and Herzegovina convertible mark (%1$s)', 'give'), '&#75;&#77;'),
419 419
 			'symbol'      => '&#75;&#77;',
420 420
 			'setting'     => array(
421 421
 				'currency_position'   => 'before',
@@ -425,7 +425,7 @@  discard block
 block discarded – undo
425 425
 			),
426 426
 		),
427 427
 		'BDT' => array(
428
-			'admin_label' => sprintf( __( 'Bangladeshi taka (%1$s)', 'give' ), '&#2547;' ),
428
+			'admin_label' => sprintf(__('Bangladeshi taka (%1$s)', 'give'), '&#2547;'),
429 429
 			'symbol'      => '&#2547;',
430 430
 			'setting'     => array(
431 431
 				'currency_position'   => 'before',
@@ -435,7 +435,7 @@  discard block
 block discarded – undo
435 435
 			),
436 436
 		),
437 437
 		'BHD' => array(
438
-			'admin_label' => sprintf( __( 'Bahraini dinar (%1$s)', 'give' ), '.&#x62f;.&#x628;' ),
438
+			'admin_label' => sprintf(__('Bahraini dinar (%1$s)', 'give'), '.&#x62f;.&#x628;'),
439 439
 			'symbol'      => '.&#x62f;.&#x628;',
440 440
 			'setting'     => array(
441 441
 				'currency_position'   => 'before',
@@ -445,7 +445,7 @@  discard block
 block discarded – undo
445 445
 			),
446 446
 		),
447 447
 		'BMD' => array(
448
-			'admin_label' => sprintf( __( 'Bermudian dollar (%1$s)', 'give' ), '&#66;&#68;&#36;' ),
448
+			'admin_label' => sprintf(__('Bermudian dollar (%1$s)', 'give'), '&#66;&#68;&#36;'),
449 449
 			'symbol'      => '&#66;&#68;&#36;',
450 450
 			'setting'     => array(
451 451
 				'currency_position'   => 'before',
@@ -455,7 +455,7 @@  discard block
 block discarded – undo
455 455
 			),
456 456
 		),
457 457
 		'BND' => array(
458
-			'admin_label' => sprintf( __( 'Brunei dollar (%1$s)', 'give' ), '&#66;&#36;' ),
458
+			'admin_label' => sprintf(__('Brunei dollar (%1$s)', 'give'), '&#66;&#36;'),
459 459
 			'symbol'      => '&#66;&#36;',
460 460
 			'setting'     => array(
461 461
 				'currency_position'   => 'before',
@@ -465,7 +465,7 @@  discard block
 block discarded – undo
465 465
 			),
466 466
 		),
467 467
 		'BOB' => array(
468
-			'admin_label' => sprintf( __( 'Bolivian boliviano (%1$s)', 'give' ), '&#66;&#115;&#46;' ),
468
+			'admin_label' => sprintf(__('Bolivian boliviano (%1$s)', 'give'), '&#66;&#115;&#46;'),
469 469
 			'symbol'      => '&#66;&#115;&#46;',
470 470
 			'setting'     => array(
471 471
 				'currency_position'   => 'before',
@@ -475,7 +475,7 @@  discard block
 block discarded – undo
475 475
 			),
476 476
 		),
477 477
 		'BSD' => array(
478
-			'admin_label' => sprintf( __( 'Bahamian dollar (%1$s)', 'give' ), '&#66;&#36;' ),
478
+			'admin_label' => sprintf(__('Bahamian dollar (%1$s)', 'give'), '&#66;&#36;'),
479 479
 			'symbol'      => '&#66;&#36;',
480 480
 			'setting'     => array(
481 481
 				'currency_position'   => 'before',
@@ -485,7 +485,7 @@  discard block
 block discarded – undo
485 485
 			),
486 486
 		),
487 487
 		'BWP' => array(
488
-			'admin_label' => sprintf( __( 'Botswana pula (%1$s)', 'give' ), '&#80;' ),
488
+			'admin_label' => sprintf(__('Botswana pula (%1$s)', 'give'), '&#80;'),
489 489
 			'symbol'      => '&#80;',
490 490
 			'setting'     => array(
491 491
 				'currency_position'   => 'before',
@@ -495,7 +495,7 @@  discard block
 block discarded – undo
495 495
 			),
496 496
 		),
497 497
 		'BZD' => array(
498
-			'admin_label' => sprintf( __( 'Belizean dollar (%1$s)', 'give' ), '&#66;&#90;&#36;' ),
498
+			'admin_label' => sprintf(__('Belizean dollar (%1$s)', 'give'), '&#66;&#90;&#36;'),
499 499
 			'symbol'      => '&#66;&#90;&#36;',
500 500
 			'setting'     => array(
501 501
 				'currency_position'   => 'before',
@@ -505,7 +505,7 @@  discard block
 block discarded – undo
505 505
 			),
506 506
 		),
507 507
 		'CLP' => array(
508
-			'admin_label' => sprintf( __( 'Chilean peso (%1$s)', 'give' ), '&#36;' ),
508
+			'admin_label' => sprintf(__('Chilean peso (%1$s)', 'give'), '&#36;'),
509 509
 			'symbol'      => '&#36;',
510 510
 			'setting'     => array(
511 511
 				'currency_position'   => 'before',
@@ -515,7 +515,7 @@  discard block
 block discarded – undo
515 515
 			),
516 516
 		),
517 517
 		'CNY' => array(
518
-			'admin_label' => sprintf( __( 'Chinese yuan (%1$s)', 'give' ), '&yen;' ),
518
+			'admin_label' => sprintf(__('Chinese yuan (%1$s)', 'give'), '&yen;'),
519 519
 			'symbol'      => '&yen;',
520 520
 			'setting'     => array(
521 521
 				'currency_position'   => 'before',
@@ -525,7 +525,7 @@  discard block
 block discarded – undo
525 525
 			),
526 526
 		),
527 527
 		'COP' => array(
528
-			'admin_label' => sprintf( __( 'Colombian peso (%1$s)', 'give' ), '&#36;' ),
528
+			'admin_label' => sprintf(__('Colombian peso (%1$s)', 'give'), '&#36;'),
529 529
 			'symbol'      => '&#36;',
530 530
 			'setting'     => array(
531 531
 				'currency_position'   => 'before',
@@ -535,7 +535,7 @@  discard block
 block discarded – undo
535 535
 			),
536 536
 		),
537 537
 		'CRC' => array(
538
-			'admin_label' => sprintf( __( 'Costa Rican colón (%1$s)', 'give' ), '&#8353;' ),
538
+			'admin_label' => sprintf(__('Costa Rican colón (%1$s)', 'give'), '&#8353;'),
539 539
 			'symbol'      => '&#8353;',
540 540
 			'setting'     => array(
541 541
 				'currency_position'   => 'before',
@@ -545,7 +545,7 @@  discard block
 block discarded – undo
545 545
 			),
546 546
 		),
547 547
 		'CUC' => array(
548
-			'admin_label' => sprintf( __( 'Cuban convertible peso (%1$s)', 'give' ), '&#8369;' ),
548
+			'admin_label' => sprintf(__('Cuban convertible peso (%1$s)', 'give'), '&#8369;'),
549 549
 			'symbol'      => '&#8369;',
550 550
 			'setting'     => array(
551 551
 				'currency_position'   => 'before',
@@ -555,7 +555,7 @@  discard block
 block discarded – undo
555 555
 			),
556 556
 		),
557 557
 		'CUP' => array(
558
-			'admin_label' => sprintf( __( 'Cuban convertible peso (%1$s)', 'give' ), '&#8369;' ),
558
+			'admin_label' => sprintf(__('Cuban convertible peso (%1$s)', 'give'), '&#8369;'),
559 559
 			'symbol'      => '&#8369;',
560 560
 			'setting'     => array(
561 561
 				'currency_position'   => 'before',
@@ -565,7 +565,7 @@  discard block
 block discarded – undo
565 565
 			),
566 566
 		),
567 567
 		'DOP' => array(
568
-			'admin_label' => sprintf( __( 'Dominican peso (%1$s)', 'give' ), '&#82;&#68;&#36;' ),
568
+			'admin_label' => sprintf(__('Dominican peso (%1$s)', 'give'), '&#82;&#68;&#36;'),
569 569
 			'symbol'      => '&#82;&#68;&#36;',
570 570
 			'setting'     => array(
571 571
 				'currency_position'   => 'before',
@@ -575,7 +575,7 @@  discard block
 block discarded – undo
575 575
 			),
576 576
 		),
577 577
 		'EGP' => array(
578
-			'admin_label' => sprintf( __( 'Egyptian pound (%1$s)', 'give' ), '&#69;&pound;' ),
578
+			'admin_label' => sprintf(__('Egyptian pound (%1$s)', 'give'), '&#69;&pound;'),
579 579
 			'symbol'      => '&#69;&pound;',
580 580
 			'setting'     => array(
581 581
 				'currency_position'   => 'before',
@@ -585,7 +585,7 @@  discard block
 block discarded – undo
585 585
 			),
586 586
 		),
587 587
 		'GIP' => array(
588
-			'admin_label' => sprintf( __( 'Gibraltar pound (%1$s)', 'give' ), '&pound;' ),
588
+			'admin_label' => sprintf(__('Gibraltar pound (%1$s)', 'give'), '&pound;'),
589 589
 			'symbol'      => '&pound;',
590 590
 			'setting'     => array(
591 591
 				'currency_position'   => 'before',
@@ -595,7 +595,7 @@  discard block
 block discarded – undo
595 595
 			),
596 596
 		),
597 597
 		'GTQ' => array(
598
-			'admin_label' => sprintf( __( 'Guatemalan quetzal (%1$s)', 'give' ), '&#81;' ),
598
+			'admin_label' => sprintf(__('Guatemalan quetzal (%1$s)', 'give'), '&#81;'),
599 599
 			'symbol'      => '&#81;',
600 600
 			'setting'     => array(
601 601
 				'currency_position'   => 'before',
@@ -605,7 +605,7 @@  discard block
 block discarded – undo
605 605
 			),
606 606
 		),
607 607
 		'HNL' => array(
608
-			'admin_label' => sprintf( __( 'Honduran lempira (%1$s)', 'give' ), '&#76;' ),
608
+			'admin_label' => sprintf(__('Honduran lempira (%1$s)', 'give'), '&#76;'),
609 609
 			'symbol'      => '&#76;',
610 610
 			'setting'     => array(
611 611
 				'currency_position'   => 'before',
@@ -615,7 +615,7 @@  discard block
 block discarded – undo
615 615
 			),
616 616
 		),
617 617
 		'HRK' => array(
618
-			'admin_label' => sprintf( __( 'Croatian kuna (%1$s)', 'give' ), '&#107;&#110;' ),
618
+			'admin_label' => sprintf(__('Croatian kuna (%1$s)', 'give'), '&#107;&#110;'),
619 619
 			'symbol'      => '&#107;&#110;',
620 620
 			'setting'     => array(
621 621
 				'currency_position'   => 'after',
@@ -625,7 +625,7 @@  discard block
 block discarded – undo
625 625
 			),
626 626
 		),
627 627
 		'IDR' => array(
628
-			'admin_label' => sprintf( __( 'Indonesian rupiah (%1$s)', 'give' ), '&#82;&#112;' ),
628
+			'admin_label' => sprintf(__('Indonesian rupiah (%1$s)', 'give'), '&#82;&#112;'),
629 629
 			'symbol'      => '&#82;&#112;',
630 630
 			'setting'     => array(
631 631
 				'currency_position'   => 'before',
@@ -635,7 +635,7 @@  discard block
 block discarded – undo
635 635
 			),
636 636
 		),
637 637
 		'ISK' => array(
638
-			'admin_label' => sprintf( __( 'Icelandic króna (%1$s)', 'give' ), '&#107;&#114;' ),
638
+			'admin_label' => sprintf(__('Icelandic króna (%1$s)', 'give'), '&#107;&#114;'),
639 639
 			'symbol'      => '&#107;&#114;',
640 640
 			'setting'     => array(
641 641
 				'currency_position'   => 'after',
@@ -645,7 +645,7 @@  discard block
 block discarded – undo
645 645
 			),
646 646
 		),
647 647
 		'JMD' => array(
648
-			'admin_label' => sprintf( __( 'Jamaican dollar (%1$s)', 'give' ), '&#106;&#36;' ),
648
+			'admin_label' => sprintf(__('Jamaican dollar (%1$s)', 'give'), '&#106;&#36;'),
649 649
 			'symbol'      => '&#106;&#36;',
650 650
 			'setting'     => array(
651 651
 				'currency_position'   => 'before',
@@ -655,7 +655,7 @@  discard block
 block discarded – undo
655 655
 			),
656 656
 		),
657 657
 		'JOD' => array(
658
-			'admin_label' => sprintf( __( 'Jordanian dinar (%1$s)', 'give' ), '&#x62f;.&#x627;' ),
658
+			'admin_label' => sprintf(__('Jordanian dinar (%1$s)', 'give'), '&#x62f;.&#x627;'),
659 659
 			'symbol'      => '&#x62f;.&#x627;',
660 660
 			'setting'     => array(
661 661
 				'currency_position'   => 'before',
@@ -665,7 +665,7 @@  discard block
 block discarded – undo
665 665
 			),
666 666
 		),
667 667
 		'KES' => array(
668
-			'admin_label' => sprintf( __( 'Kenyan shilling (%1$s)', 'give' ), '&#75;&#83;&#104;' ),
668
+			'admin_label' => sprintf(__('Kenyan shilling (%1$s)', 'give'), '&#75;&#83;&#104;'),
669 669
 			'symbol'      => '&#75;&#83;&#104;',
670 670
 			'setting'     => array(
671 671
 				'currency_position'   => 'before',
@@ -675,7 +675,7 @@  discard block
 block discarded – undo
675 675
 			),
676 676
 		),
677 677
 		'KWD' => array(
678
-			'admin_label' => sprintf( __( 'Kuwaiti dinar (%1$s)', 'give' ), '&#x62f;.&#x643;' ),
678
+			'admin_label' => sprintf(__('Kuwaiti dinar (%1$s)', 'give'), '&#x62f;.&#x643;'),
679 679
 			'symbol'      => '&#x62f;.&#x643;',
680 680
 			'setting'     => array(
681 681
 				'currency_position'   => 'before',
@@ -685,7 +685,7 @@  discard block
 block discarded – undo
685 685
 			),
686 686
 		),
687 687
 		'KYD' => array(
688
-			'admin_label' => sprintf( __( 'Cayman Islands dollar (%1$s)', 'give' ), '&#75;&#89;&#36;' ),
688
+			'admin_label' => sprintf(__('Cayman Islands dollar (%1$s)', 'give'), '&#75;&#89;&#36;'),
689 689
 			'symbol'      => '&#75;&#89;&#36;',
690 690
 			'setting'     => array(
691 691
 				'currency_position'   => 'before',
@@ -695,7 +695,7 @@  discard block
 block discarded – undo
695 695
 			),
696 696
 		),
697 697
 		'MKD' => array(
698
-			'admin_label' => sprintf( __( 'Macedonian denar (%1$s)', 'give' ), '&#x434;&#x435;&#x43d;' ),
698
+			'admin_label' => sprintf(__('Macedonian denar (%1$s)', 'give'), '&#x434;&#x435;&#x43d;'),
699 699
 			'symbol'      => '&#x434;&#x435;&#x43d;',
700 700
 			'setting'     => array(
701 701
 				'currency_position'   => 'before',
@@ -705,7 +705,7 @@  discard block
 block discarded – undo
705 705
 			),
706 706
 		),
707 707
 		'NPR' => array(
708
-			'admin_label' => sprintf( __( 'Nepalese rupee (%1$s)', 'give' ), '&#8360;' ),
708
+			'admin_label' => sprintf(__('Nepalese rupee (%1$s)', 'give'), '&#8360;'),
709 709
 			'symbol'      => '&#8360;',
710 710
 			'setting'     => array(
711 711
 				'currency_position'   => 'before',
@@ -715,7 +715,7 @@  discard block
 block discarded – undo
715 715
 			),
716 716
 		),
717 717
 		'OMR' => array(
718
-			'admin_label' => sprintf( __( 'Omani rial (%1$s)', 'give' ), '&#x631;.&#x639;&#46;' ),
718
+			'admin_label' => sprintf(__('Omani rial (%1$s)', 'give'), '&#x631;.&#x639;&#46;'),
719 719
 			'symbol'      => '&#x631;.&#x639;&#46;',
720 720
 			'setting'     => array(
721 721
 				'currency_position'   => 'before',
@@ -725,7 +725,7 @@  discard block
 block discarded – undo
725 725
 			),
726 726
 		),
727 727
 		'PEN' => array(
728
-			'admin_label' => sprintf( __( 'Peruvian nuevo sol (%1$s)', 'give' ), 'S/.' ),
728
+			'admin_label' => sprintf(__('Peruvian nuevo sol (%1$s)', 'give'), 'S/.'),
729 729
 			'symbol'      => 'S/.',
730 730
 			'setting'     => array(
731 731
 				'currency_position'   => 'before',
@@ -735,7 +735,7 @@  discard block
 block discarded – undo
735 735
 			),
736 736
 		),
737 737
 		'PKR' => array(
738
-			'admin_label' => sprintf( __( 'Pakistani rupee (%1$s)', 'give' ), '&#8360;' ),
738
+			'admin_label' => sprintf(__('Pakistani rupee (%1$s)', 'give'), '&#8360;'),
739 739
 			'symbol'      => '&#8360;',
740 740
 			'setting'     => array(
741 741
 				'currency_position'   => 'before',
@@ -745,7 +745,7 @@  discard block
 block discarded – undo
745 745
 			),
746 746
 		),
747 747
 		'RON' => array(
748
-			'admin_label' => sprintf( __( 'Romanian leu (%1$s)', 'give' ), '&#76;' ),
748
+			'admin_label' => sprintf(__('Romanian leu (%1$s)', 'give'), '&#76;'),
749 749
 			'symbol'      => '&#76;',
750 750
 			'setting'     => array(
751 751
 				'currency_position'   => 'after',
@@ -755,7 +755,7 @@  discard block
 block discarded – undo
755 755
 			),
756 756
 		),
757 757
 		'SAR' => array(
758
-			'admin_label' => sprintf( __( 'Saudi riyal (%1$s)', 'give' ), '&#x631;.&#x633;' ),
758
+			'admin_label' => sprintf(__('Saudi riyal (%1$s)', 'give'), '&#x631;.&#x633;'),
759 759
 			'symbol'      => '&#x631;.&#x633;',
760 760
 			'setting'     => array(
761 761
 				'currency_position'   => 'before',
@@ -765,7 +765,7 @@  discard block
 block discarded – undo
765 765
 			),
766 766
 		),
767 767
 		'SZL' => array(
768
-			'admin_label' => sprintf( __( 'Swazi lilangeni (%1$s)', 'give' ), '&#76;'),
768
+			'admin_label' => sprintf(__('Swazi lilangeni (%1$s)', 'give'), '&#76;'),
769 769
 			'symbol'      => '&#76;',
770 770
 			'setting'     => array(
771 771
 				'currency_position'   => 'before',
@@ -775,7 +775,7 @@  discard block
 block discarded – undo
775 775
 			),
776 776
 		),
777 777
 		'TOP' => array(
778
-			'admin_label' => sprintf( __( 'Tongan paʻanga (%1$s)', 'give' ), '&#84;&#36;'),
778
+			'admin_label' => sprintf(__('Tongan paʻanga (%1$s)', 'give'), '&#84;&#36;'),
779 779
 			'symbol'      => '&#84;&#36;',
780 780
 			'setting'     => array(
781 781
 				'currency_position'   => 'before',
@@ -785,7 +785,7 @@  discard block
 block discarded – undo
785 785
 			),
786 786
 		),
787 787
 		'TZS' => array(
788
-			'admin_label' => sprintf( __( 'Tanzanian shilling (%1$s)', 'give' ), '&#84;&#83;&#104;'),
788
+			'admin_label' => sprintf(__('Tanzanian shilling (%1$s)', 'give'), '&#84;&#83;&#104;'),
789 789
 			'symbol'      => '&#84;&#83;&#104;',
790 790
 			'setting'     => array(
791 791
 				'currency_position'   => 'before',
@@ -795,7 +795,7 @@  discard block
 block discarded – undo
795 795
 			),
796 796
 		),
797 797
 		'UAH' => array(
798
-			'admin_label' => sprintf( __( 'Ukrainian hryvnia (%1$s)', 'give' ), '&#8372;'),
798
+			'admin_label' => sprintf(__('Ukrainian hryvnia (%1$s)', 'give'), '&#8372;'),
799 799
 			'symbol'      => '&#8372;',
800 800
 			'setting'     => array(
801 801
 				'currency_position'   => 'before',
@@ -805,7 +805,7 @@  discard block
 block discarded – undo
805 805
 			),
806 806
 		),
807 807
 		'UYU' => array(
808
-			'admin_label' => sprintf( __( 'Uruguayan peso (%1$s)', 'give' ), '&#36;&#85;'),
808
+			'admin_label' => sprintf(__('Uruguayan peso (%1$s)', 'give'), '&#36;&#85;'),
809 809
 			'symbol'      => '&#36;&#85;',
810 810
 			'setting'     => array(
811 811
 				'currency_position'   => 'before',
@@ -815,7 +815,7 @@  discard block
 block discarded – undo
815 815
 			),
816 816
 		),
817 817
 		'VEF' => array(
818
-			'admin_label' => sprintf( __( 'Venezuelan bolívar (%1$s)', 'give' ), '&#66;&#115;'),
818
+			'admin_label' => sprintf(__('Venezuelan bolívar (%1$s)', 'give'), '&#66;&#115;'),
819 819
 			'symbol'      => '&#66;&#115;',
820 820
 			'setting'     => array(
821 821
 				'currency_position'   => 'before',
@@ -825,7 +825,7 @@  discard block
 block discarded – undo
825 825
 			),
826 826
 		),
827 827
 		'XCD' => array(
828
-			'admin_label' => sprintf( __( 'East Caribbean dollar (%1$s)', 'give' ), '&#69;&#67;&#36;'),
828
+			'admin_label' => sprintf(__('East Caribbean dollar (%1$s)', 'give'), '&#69;&#67;&#36;'),
829 829
 			'symbol'      => '&#69;&#67;&#36;',
830 830
 			'setting'     => array(
831 831
 				'currency_position'   => 'before',
@@ -835,7 +835,7 @@  discard block
 block discarded – undo
835 835
 			),
836 836
 		),
837 837
 		'AFN' => array(
838
-			'admin_label' => sprintf( __('Afghan afghani (%1$s)', 'give'), '&#x60b;'),
838
+			'admin_label' => sprintf(__('Afghan afghani (%1$s)', 'give'), '&#x60b;'),
839 839
 			'symbol'      => '&#x60b;',
840 840
 			'setting'     => array(
841 841
 				'currency_position'   => 'before',
@@ -845,7 +845,7 @@  discard block
 block discarded – undo
845 845
 			),
846 846
 		),
847 847
 		'ALL' => array(
848
-			'admin_label' => sprintf( __('Albanian lek (%1$s)', 'give'), 'L'),
848
+			'admin_label' => sprintf(__('Albanian lek (%1$s)', 'give'), 'L'),
849 849
 			'symbol'      => 'L',
850 850
 			'setting'     => array(
851 851
 				'currency_position'   => 'after',
@@ -855,7 +855,7 @@  discard block
 block discarded – undo
855 855
 			),
856 856
 		),
857 857
 		'AOA' => array(
858
-			'admin_label' => sprintf( __('Angolan kwanza (%1$s)', 'give'), 'Kz'),
858
+			'admin_label' => sprintf(__('Angolan kwanza (%1$s)', 'give'), 'Kz'),
859 859
 			'symbol'      => 'Kz',
860 860
 			'setting'     => array(
861 861
 				'currency_position'   => 'before',
@@ -865,7 +865,7 @@  discard block
 block discarded – undo
865 865
 			),
866 866
 		),
867 867
 		'AZN' => array(
868
-			'admin_label' => sprintf( __('Azerbaijani manat (%1$s)', 'give'), 'AZN'),
868
+			'admin_label' => sprintf(__('Azerbaijani manat (%1$s)', 'give'), 'AZN'),
869 869
 			'symbol'      => 'AZN',
870 870
 			'setting'     => array(
871 871
 				'currency_position'   => 'after',
@@ -875,7 +875,7 @@  discard block
 block discarded – undo
875 875
 			),
876 876
 		),
877 877
 		'BBD' => array(
878
-			'admin_label' => sprintf( __('Barbadian dollar (%1$s)', 'give'), '&#36;'),
878
+			'admin_label' => sprintf(__('Barbadian dollar (%1$s)', 'give'), '&#36;'),
879 879
 			'symbol'      => '&#36;',
880 880
 			'setting'     => array(
881 881
 				'currency_position'   => 'before',
@@ -885,7 +885,7 @@  discard block
 block discarded – undo
885 885
 			),
886 886
 		),
887 887
 		'BGN' => array(
888
-			'admin_label' => sprintf( __('Bulgarian lev (%1$s)', 'give'), '&#1083;&#1074;.'),
888
+			'admin_label' => sprintf(__('Bulgarian lev (%1$s)', 'give'), '&#1083;&#1074;.'),
889 889
 			'symbol'      => '&#1083;&#1074;.',
890 890
 			'setting'     => array(
891 891
 				'currency_position'   => 'after',
@@ -895,7 +895,7 @@  discard block
 block discarded – undo
895 895
 			),
896 896
 		),
897 897
 		'BIF' => array(
898
-			'admin_label' => sprintf( __('Burundian franc (%1$s)', 'give'), 'Fr'),
898
+			'admin_label' => sprintf(__('Burundian franc (%1$s)', 'give'), 'Fr'),
899 899
 			'symbol'      => 'Fr',
900 900
 			'setting'     => array(
901 901
 				'currency_position'   => 'after',
@@ -905,7 +905,7 @@  discard block
 block discarded – undo
905 905
 			),
906 906
 		),
907 907
 		'BTC' => array(
908
-			'admin_label' => sprintf( __('Bitcoin (%1$s)', 'give'), '&#3647;'),
908
+			'admin_label' => sprintf(__('Bitcoin (%1$s)', 'give'), '&#3647;'),
909 909
 			'symbol'      => '&#3647;',
910 910
 			'setting'     => array(
911 911
 				'currency_position'   => 'after',
@@ -915,7 +915,7 @@  discard block
 block discarded – undo
915 915
 			),
916 916
 		),
917 917
 		'BTN' => array(
918
-			'admin_label' => sprintf( __('Bhutanese ngultrum (%1$s)', 'give'), 'Nu.'),
918
+			'admin_label' => sprintf(__('Bhutanese ngultrum (%1$s)', 'give'), 'Nu.'),
919 919
 			'symbol'      => 'Nu.',
920 920
 			'setting'     => array(
921 921
 				'currency_position'   => 'before',
@@ -925,7 +925,7 @@  discard block
 block discarded – undo
925 925
 			),
926 926
 		),
927 927
 		'BYR' => array(
928
-			'admin_label' => sprintf( __('Belarusian ruble (old) (%1$s)', 'give'), 'Br'),
928
+			'admin_label' => sprintf(__('Belarusian ruble (old) (%1$s)', 'give'), 'Br'),
929 929
 			'symbol'      => 'Br',
930 930
 			'setting'     => array(
931 931
 				'currency_position'   => 'after',
@@ -935,7 +935,7 @@  discard block
 block discarded – undo
935 935
 			),
936 936
 		),
937 937
 		'BYN' => array(
938
-			'admin_label' => sprintf( __('Belarusian ruble (%1$s)', 'give'), 'Br'),
938
+			'admin_label' => sprintf(__('Belarusian ruble (%1$s)', 'give'), 'Br'),
939 939
 			'symbol'      => 'Br',
940 940
 			'setting'     => array(
941 941
 				'currency_position'   => 'after',
@@ -945,7 +945,7 @@  discard block
 block discarded – undo
945 945
 			),
946 946
 		),
947 947
 		'CDF' => array(
948
-			'admin_label' => sprintf( __('Congolese franc (%1$s)', 'give'), 'Fr'),
948
+			'admin_label' => sprintf(__('Congolese franc (%1$s)', 'give'), 'Fr'),
949 949
 			'symbol'      => 'Fr',
950 950
 			'setting'     => array(
951 951
 				'currency_position'   => 'after',
@@ -955,7 +955,7 @@  discard block
 block discarded – undo
955 955
 			),
956 956
 		),
957 957
 		'CVE' => array(
958
-			'admin_label' => sprintf( __('Cape Verdean escudo (%1$s)', 'give'), '&#36;'),
958
+			'admin_label' => sprintf(__('Cape Verdean escudo (%1$s)', 'give'), '&#36;'),
959 959
 			'symbol'      => '&#36;',
960 960
 			'setting'     => array(
961 961
 				'currency_position'   => 'before',
@@ -965,7 +965,7 @@  discard block
 block discarded – undo
965 965
 			),
966 966
 		),
967 967
 		'DJF' => array(
968
-			'admin_label' => sprintf( __('Djiboutian franc (%1$s)', 'give'), 'Fr'),
968
+			'admin_label' => sprintf(__('Djiboutian franc (%1$s)', 'give'), 'Fr'),
969 969
 			'symbol'      => 'Fr',
970 970
 			'setting'     => array(
971 971
 				'currency_position'   => 'after',
@@ -975,7 +975,7 @@  discard block
 block discarded – undo
975 975
 			),
976 976
 		),
977 977
 		'DZD' => array(
978
-			'admin_label' => sprintf( __('Algerian dinar (%1$s)', 'give'), '&#x62f;.&#x62c;'),
978
+			'admin_label' => sprintf(__('Algerian dinar (%1$s)', 'give'), '&#x62f;.&#x62c;'),
979 979
 			'symbol'      => '&#x62f;.&#x62c;',
980 980
 			'setting'     => array(
981 981
 				'currency_position'   => 'before',
@@ -985,7 +985,7 @@  discard block
 block discarded – undo
985 985
 			),
986 986
 		),
987 987
 		'ERN' => array(
988
-			'admin_label' => sprintf( __('Eritrean nakfa (%1$s)', 'give'), 'Nfk'),
988
+			'admin_label' => sprintf(__('Eritrean nakfa (%1$s)', 'give'), 'Nfk'),
989 989
 			'symbol'      => 'Nfk',
990 990
 			'setting'     => array(
991 991
 				'currency_position'   => 'after',
@@ -995,7 +995,7 @@  discard block
 block discarded – undo
995 995
 			),
996 996
 		),
997 997
 		'ETB' => array(
998
-			'admin_label' => sprintf( __('Ethiopian birr (%1$s)', 'give'), 'Br'),
998
+			'admin_label' => sprintf(__('Ethiopian birr (%1$s)', 'give'), 'Br'),
999 999
 			'symbol'      => 'Br',
1000 1000
 			'setting'     => array(
1001 1001
 				'currency_position'   => 'before',
@@ -1005,7 +1005,7 @@  discard block
 block discarded – undo
1005 1005
 			),
1006 1006
 		),
1007 1007
 		'FJD' => array(
1008
-			'admin_label' => sprintf( __('Fijian dollar (%1$s)', 'give'), '&#36;'),
1008
+			'admin_label' => sprintf(__('Fijian dollar (%1$s)', 'give'), '&#36;'),
1009 1009
 			'symbol'      => '&#36;',
1010 1010
 			'setting'     => array(
1011 1011
 				'currency_position'   => 'before',
@@ -1015,7 +1015,7 @@  discard block
 block discarded – undo
1015 1015
 			),
1016 1016
 		),
1017 1017
 		'FKP' => array(
1018
-			'admin_label' => sprintf( __('Falkland Islands pound (%1$s)', 'give'), '&pound;'),
1018
+			'admin_label' => sprintf(__('Falkland Islands pound (%1$s)', 'give'), '&pound;'),
1019 1019
 			'symbol'      => '&pound;',
1020 1020
 			'setting'     => array(
1021 1021
 				'currency_position'   => 'before',
@@ -1025,7 +1025,7 @@  discard block
 block discarded – undo
1025 1025
 			),
1026 1026
 		),
1027 1027
 		'GEL' => array(
1028
-			'admin_label' => sprintf( __('Georgian lari (%1$s)', 'give'), '&#x20be;'),
1028
+			'admin_label' => sprintf(__('Georgian lari (%1$s)', 'give'), '&#x20be;'),
1029 1029
 			'symbol'      => '&#x20be;',
1030 1030
 			'setting'     => array(
1031 1031
 				'currency_position'   => 'after',
@@ -1035,7 +1035,7 @@  discard block
 block discarded – undo
1035 1035
 			),
1036 1036
 		),
1037 1037
 		'GGP' => array(
1038
-			'admin_label' => sprintf( __('Guernsey pound (%1$s)', 'give'), '&pound;'),
1038
+			'admin_label' => sprintf(__('Guernsey pound (%1$s)', 'give'), '&pound;'),
1039 1039
 			'symbol'      => '&pound;',
1040 1040
 			'setting'     => array(
1041 1041
 				'currency_position'   => 'before',
@@ -1045,7 +1045,7 @@  discard block
 block discarded – undo
1045 1045
 			),
1046 1046
 		),
1047 1047
 		'GHS' => array(
1048
-			'admin_label' => sprintf( __('Ghana cedi (%1$s)', 'give'), '&#x20b5;'),
1048
+			'admin_label' => sprintf(__('Ghana cedi (%1$s)', 'give'), '&#x20b5;'),
1049 1049
 			'symbol'      => '&#x20b5;',
1050 1050
 			'setting'     => array(
1051 1051
 				'currency_position'   => 'before',
@@ -1055,7 +1055,7 @@  discard block
 block discarded – undo
1055 1055
 			),
1056 1056
 		),
1057 1057
 		'GMD' => array(
1058
-			'admin_label' => sprintf( __('Gambian dalasi (%1$s)', 'give'), 'D'),
1058
+			'admin_label' => sprintf(__('Gambian dalasi (%1$s)', 'give'), 'D'),
1059 1059
 			'symbol'      => 'D',
1060 1060
 			'setting'     => array(
1061 1061
 				'currency_position'   => 'after',
@@ -1065,7 +1065,7 @@  discard block
 block discarded – undo
1065 1065
 			),
1066 1066
 		),
1067 1067
 		'GNF' => array(
1068
-			'admin_label' => sprintf( __('Guinean franc (%1$s)', 'give'), 'Fr'),
1068
+			'admin_label' => sprintf(__('Guinean franc (%1$s)', 'give'), 'Fr'),
1069 1069
 			'symbol'      => 'Fr',
1070 1070
 			'setting'     => array(
1071 1071
 				'currency_position'   => 'after',
@@ -1075,7 +1075,7 @@  discard block
 block discarded – undo
1075 1075
 			),
1076 1076
 		),
1077 1077
 		'GYD' => array(
1078
-			'admin_label' => sprintf( __('Guyanese dollar (%1$s)', 'give'), '&#36;'),
1078
+			'admin_label' => sprintf(__('Guyanese dollar (%1$s)', 'give'), '&#36;'),
1079 1079
 			'symbol'      => '&#36;',
1080 1080
 			'setting'     => array(
1081 1081
 				'currency_position'   => 'before',
@@ -1085,7 +1085,7 @@  discard block
 block discarded – undo
1085 1085
 			),
1086 1086
 		),
1087 1087
 		'HTG' => array(
1088
-			'admin_label' => sprintf( __('Haitian gourde (%1$s)', 'give'), 'G'),
1088
+			'admin_label' => sprintf(__('Haitian gourde (%1$s)', 'give'), 'G'),
1089 1089
 			'symbol'      => 'G',
1090 1090
 			'setting'     => array(
1091 1091
 				'currency_position'   => 'before',
@@ -1095,7 +1095,7 @@  discard block
 block discarded – undo
1095 1095
 			),
1096 1096
 		),
1097 1097
 		'IMP' => array(
1098
-			'admin_label' => sprintf( __('Manx pound (%1$s)', 'give'), '&pound;'),
1098
+			'admin_label' => sprintf(__('Manx pound (%1$s)', 'give'), '&pound;'),
1099 1099
 			'symbol'      => '&pound;',
1100 1100
 			'setting'     => array(
1101 1101
 				'currency_position'   => 'before',
@@ -1105,7 +1105,7 @@  discard block
 block discarded – undo
1105 1105
 			),
1106 1106
 		),
1107 1107
 		'IQD' => array(
1108
-			'admin_label' => sprintf( __('Iraqi dinar (%1$s)', 'give'), '&#x639;.&#x62f;'),
1108
+			'admin_label' => sprintf(__('Iraqi dinar (%1$s)', 'give'), '&#x639;.&#x62f;'),
1109 1109
 			'symbol'      => '&#x639;.&#x62f;',
1110 1110
 			'setting'     => array(
1111 1111
 				'currency_position'   => 'before',
@@ -1115,7 +1115,7 @@  discard block
 block discarded – undo
1115 1115
 			),
1116 1116
 		),
1117 1117
 		'IRT' => array(
1118
-			'admin_label' => sprintf( __('Iranian toman (%1$s)', 'give'), '&#x062A;&#x0648;&#x0645;&#x0627;&#x0646;'),
1118
+			'admin_label' => sprintf(__('Iranian toman (%1$s)', 'give'), '&#x062A;&#x0648;&#x0645;&#x0627;&#x0646;'),
1119 1119
 			'symbol'      => '&#x062A;&#x0648;&#x0645;&#x0627;&#x0646;',
1120 1120
 			'setting'     => array(
1121 1121
 				'currency_position'   => 'after',
@@ -1125,7 +1125,7 @@  discard block
 block discarded – undo
1125 1125
 			),
1126 1126
 		),
1127 1127
 		'JEP' => array(
1128
-			'admin_label' => sprintf( __('Jersey pound (%1$s)', 'give'), '&pound;'),
1128
+			'admin_label' => sprintf(__('Jersey pound (%1$s)', 'give'), '&pound;'),
1129 1129
 			'symbol'      => '&pound;',
1130 1130
 			'setting'     => array(
1131 1131
 				'currency_position'   => 'before',
@@ -1135,7 +1135,7 @@  discard block
 block discarded – undo
1135 1135
 			),
1136 1136
 		),
1137 1137
 		'KGS' => array(
1138
-			'admin_label' => sprintf( __('Kyrgyzstani som (%1$s)', 'give'), '&#x441;&#x43e;&#x43c;'),
1138
+			'admin_label' => sprintf(__('Kyrgyzstani som (%1$s)', 'give'), '&#x441;&#x43e;&#x43c;'),
1139 1139
 			'symbol'      => '&#x441;&#x43e;&#x43c;',
1140 1140
 			'setting'     => array(
1141 1141
 				'currency_position'   => 'after',
@@ -1145,7 +1145,7 @@  discard block
 block discarded – undo
1145 1145
 			),
1146 1146
 		),
1147 1147
 		'KHR' => array(
1148
-			'admin_label' => sprintf( __('Cambodian riel (%1$s)', 'give'), '&#x17db;'),
1148
+			'admin_label' => sprintf(__('Cambodian riel (%1$s)', 'give'), '&#x17db;'),
1149 1149
 			'symbol'      => '&#x17db;',
1150 1150
 			'setting'     => array(
1151 1151
 				'currency_position'   => 'after',
@@ -1155,7 +1155,7 @@  discard block
 block discarded – undo
1155 1155
 			),
1156 1156
 		),
1157 1157
 		'KMF' => array(
1158
-			'admin_label' => sprintf( __('Comorian franc (%1$s)', 'give'), 'Fr'),
1158
+			'admin_label' => sprintf(__('Comorian franc (%1$s)', 'give'), 'Fr'),
1159 1159
 			'symbol'      => 'Fr',
1160 1160
 			'setting'     => array(
1161 1161
 				'currency_position'   => 'after',
@@ -1165,7 +1165,7 @@  discard block
 block discarded – undo
1165 1165
 			),
1166 1166
 		),
1167 1167
 		'KPW' => array(
1168
-			'admin_label' => sprintf( __('North Korean won (%1$s)', 'give'), '&#x20a9;'),
1168
+			'admin_label' => sprintf(__('North Korean won (%1$s)', 'give'), '&#x20a9;'),
1169 1169
 			'symbol'      => '&#x20a9;',
1170 1170
 			'setting'     => array(
1171 1171
 				'currency_position'   => 'before',
@@ -1175,7 +1175,7 @@  discard block
 block discarded – undo
1175 1175
 			),
1176 1176
 		),
1177 1177
 		'KZT' => array(
1178
-			'admin_label' => sprintf( __('Kazakhstani tenge (%1$s)', 'give'), 'KZT'),
1178
+			'admin_label' => sprintf(__('Kazakhstani tenge (%1$s)', 'give'), 'KZT'),
1179 1179
 			'symbol'      => 'KZT',
1180 1180
 			'setting'     => array(
1181 1181
 				'currency_position'   => 'before',
@@ -1185,7 +1185,7 @@  discard block
 block discarded – undo
1185 1185
 			),
1186 1186
 		),
1187 1187
 		'LAK' => array(
1188
-			'admin_label' => sprintf( __('Lao kip (%1$s)', 'give'), '&#8365;'),
1188
+			'admin_label' => sprintf(__('Lao kip (%1$s)', 'give'), '&#8365;'),
1189 1189
 			'symbol'      => '&#8365;',
1190 1190
 			'setting'     => array(
1191 1191
 				'currency_position'   => 'after',
@@ -1195,7 +1195,7 @@  discard block
 block discarded – undo
1195 1195
 			),
1196 1196
 		),
1197 1197
 		'LBP' => array(
1198
-			'admin_label' => sprintf( __('Lebanese pound (%1$s)', 'give'), '&#x644;.&#x644;'),
1198
+			'admin_label' => sprintf(__('Lebanese pound (%1$s)', 'give'), '&#x644;.&#x644;'),
1199 1199
 			'symbol'      => '&#x644;.&#x644;',
1200 1200
 			'setting'     => array(
1201 1201
 				'currency_position'   => 'before',
@@ -1205,7 +1205,7 @@  discard block
 block discarded – undo
1205 1205
 			),
1206 1206
 		),
1207 1207
 		'LKR' => array(
1208
-			'admin_label' => sprintf( __('Sri Lankan rupee (%1$s)', 'give'), '&#xdbb;&#xdd4;'),
1208
+			'admin_label' => sprintf(__('Sri Lankan rupee (%1$s)', 'give'), '&#xdbb;&#xdd4;'),
1209 1209
 			'symbol'      => '&#xdbb;&#xdd4;',
1210 1210
 			'setting'     => array(
1211 1211
 				'currency_position'   => 'before',
@@ -1215,7 +1215,7 @@  discard block
 block discarded – undo
1215 1215
 			),
1216 1216
 		),
1217 1217
 		'LRD' => array(
1218
-			'admin_label' => sprintf( __('Liberian dollar (%1$s)', 'give'), '&#36;'),
1218
+			'admin_label' => sprintf(__('Liberian dollar (%1$s)', 'give'), '&#36;'),
1219 1219
 			'symbol'      => '&#36;',
1220 1220
 			'setting'     => array(
1221 1221
 				'currency_position'   => 'before',
@@ -1225,7 +1225,7 @@  discard block
 block discarded – undo
1225 1225
 			),
1226 1226
 		),
1227 1227
 		'LSL' => array(
1228
-			'admin_label' => sprintf( __('Lesotho loti (%1$s)', 'give'), 'L'),
1228
+			'admin_label' => sprintf(__('Lesotho loti (%1$s)', 'give'), 'L'),
1229 1229
 			'symbol'      => 'L',
1230 1230
 			'setting'     => array(
1231 1231
 				'currency_position'   => 'after',
@@ -1235,7 +1235,7 @@  discard block
 block discarded – undo
1235 1235
 			),
1236 1236
 		),
1237 1237
 		'LYD' => array(
1238
-			'admin_label' => sprintf( __('Libyan dinar (%1$s)', 'give'), '&#x644;.&#x62f;'),
1238
+			'admin_label' => sprintf(__('Libyan dinar (%1$s)', 'give'), '&#x644;.&#x62f;'),
1239 1239
 			'symbol'      => '&#x644;.&#x62f;',
1240 1240
 			'setting'     => array(
1241 1241
 				'currency_position'   => 'before',
@@ -1245,7 +1245,7 @@  discard block
 block discarded – undo
1245 1245
 			),
1246 1246
 		),
1247 1247
 		'MDL' => array(
1248
-			'admin_label' => sprintf( __('Moldovan leu (%1$s)', 'give'), 'MDL'),
1248
+			'admin_label' => sprintf(__('Moldovan leu (%1$s)', 'give'), 'MDL'),
1249 1249
 			'symbol'      => 'MDL',
1250 1250
 			'setting'     => array(
1251 1251
 				'currency_position'   => 'after',
@@ -1255,7 +1255,7 @@  discard block
 block discarded – undo
1255 1255
 			),
1256 1256
 		),
1257 1257
 		'MGA' => array(
1258
-			'admin_label' => sprintf( __('Malagasy ariary (%1$s)', 'give'), 'Ar'),
1258
+			'admin_label' => sprintf(__('Malagasy ariary (%1$s)', 'give'), 'Ar'),
1259 1259
 			'symbol'      => 'Ar',
1260 1260
 			'setting'     => array(
1261 1261
 				'currency_position'   => 'before',
@@ -1265,7 +1265,7 @@  discard block
 block discarded – undo
1265 1265
 			),
1266 1266
 		),
1267 1267
 		'MMK' => array(
1268
-			'admin_label' => sprintf( __('Burmese kyat (%1$s)', 'give'), 'Ks'),
1268
+			'admin_label' => sprintf(__('Burmese kyat (%1$s)', 'give'), 'Ks'),
1269 1269
 			'symbol'      => 'Ks',
1270 1270
 			'setting'     => array(
1271 1271
 				'currency_position'   => 'before',
@@ -1275,7 +1275,7 @@  discard block
 block discarded – undo
1275 1275
 			),
1276 1276
 		),
1277 1277
 		'MNT' => array(
1278
-			'admin_label' => sprintf( __('Mongolian tögrög (%1$s)', 'give'), '&#x20ae;'),
1278
+			'admin_label' => sprintf(__('Mongolian tögrög (%1$s)', 'give'), '&#x20ae;'),
1279 1279
 			'symbol'      => '&#x20ae;',
1280 1280
 			'setting'     => array(
1281 1281
 				'currency_position'   => 'before',
@@ -1285,7 +1285,7 @@  discard block
 block discarded – undo
1285 1285
 			),
1286 1286
 		),
1287 1287
 		'MOP' => array(
1288
-			'admin_label' => sprintf( __('Macanese pataca (%1$s)', 'give'), 'P'),
1288
+			'admin_label' => sprintf(__('Macanese pataca (%1$s)', 'give'), 'P'),
1289 1289
 			'symbol'      => 'P',
1290 1290
 			'setting'     => array(
1291 1291
 				'currency_position'   => 'before',
@@ -1295,7 +1295,7 @@  discard block
 block discarded – undo
1295 1295
 			),
1296 1296
 		),
1297 1297
 		'MRO' => array(
1298
-			'admin_label' => sprintf( __('Mauritanian ouguiya (%1$s)', 'give'), 'UM'),
1298
+			'admin_label' => sprintf(__('Mauritanian ouguiya (%1$s)', 'give'), 'UM'),
1299 1299
 			'symbol'      => 'UM',
1300 1300
 			'setting'     => array(
1301 1301
 				'currency_position'   => 'after',
@@ -1305,7 +1305,7 @@  discard block
 block discarded – undo
1305 1305
 			),
1306 1306
 		),
1307 1307
 		'MUR' => array(
1308
-			'admin_label' => sprintf( __('Mauritian rupee (%1$s)', 'give'), '&#x20a8;'),
1308
+			'admin_label' => sprintf(__('Mauritian rupee (%1$s)', 'give'), '&#x20a8;'),
1309 1309
 			'symbol'      => '&#x20a8;',
1310 1310
 			'setting'     => array(
1311 1311
 				'currency_position'   => 'before',
@@ -1315,7 +1315,7 @@  discard block
 block discarded – undo
1315 1315
 			),
1316 1316
 		),
1317 1317
 		'MVR' => array(
1318
-			'admin_label' => sprintf( __('Maldivian rufiyaa (%1$s)', 'give'), '.&#x783;'),
1318
+			'admin_label' => sprintf(__('Maldivian rufiyaa (%1$s)', 'give'), '.&#x783;'),
1319 1319
 			'symbol'      => '.&#x783;',
1320 1320
 			'setting'     => array(
1321 1321
 				'currency_position'   => 'after',
@@ -1325,7 +1325,7 @@  discard block
 block discarded – undo
1325 1325
 			),
1326 1326
 		),
1327 1327
 		'MWK' => array(
1328
-			'admin_label' => sprintf( __('Malawian kwacha (%1$s)', 'give'), 'MK'),
1328
+			'admin_label' => sprintf(__('Malawian kwacha (%1$s)', 'give'), 'MK'),
1329 1329
 			'symbol'      => 'MK',
1330 1330
 			'setting'     => array(
1331 1331
 				'currency_position'   => 'before',
@@ -1335,7 +1335,7 @@  discard block
 block discarded – undo
1335 1335
 			),
1336 1336
 		),
1337 1337
 		'MZN' => array(
1338
-			'admin_label' => sprintf( __('Mozambican metical (%1$s)', 'give'), 'MT'),
1338
+			'admin_label' => sprintf(__('Mozambican metical (%1$s)', 'give'), 'MT'),
1339 1339
 			'symbol'      => 'MT',
1340 1340
 			'setting'     => array(
1341 1341
 				'currency_position'   => 'before',
@@ -1345,7 +1345,7 @@  discard block
 block discarded – undo
1345 1345
 			),
1346 1346
 		),
1347 1347
 		'NAD' => array(
1348
-			'admin_label' => sprintf( __('Namibian dollar (%1$s)', 'give'), '&#36;'),
1348
+			'admin_label' => sprintf(__('Namibian dollar (%1$s)', 'give'), '&#36;'),
1349 1349
 			'symbol'      => '&#36;',
1350 1350
 			'setting'     => array(
1351 1351
 				'currency_position'   => 'before',
@@ -1355,7 +1355,7 @@  discard block
 block discarded – undo
1355 1355
 			),
1356 1356
 		),
1357 1357
 		'NGN' => array(
1358
-			'admin_label' => sprintf( __('Nigerian naira (%1$s)', 'give'), '&#8358;'),
1358
+			'admin_label' => sprintf(__('Nigerian naira (%1$s)', 'give'), '&#8358;'),
1359 1359
 			'symbol'      => '&#8358;',
1360 1360
 			'setting'     => array(
1361 1361
 				'currency_position'   => 'before',
@@ -1365,7 +1365,7 @@  discard block
 block discarded – undo
1365 1365
 			),
1366 1366
 		),
1367 1367
 		'NIO' => array(
1368
-			'admin_label' => sprintf( __('Nicaraguan córdoba (%1$s)', 'give'), 'C&#36;'),
1368
+			'admin_label' => sprintf(__('Nicaraguan córdoba (%1$s)', 'give'), 'C&#36;'),
1369 1369
 			'symbol'      => 'C&#36;',
1370 1370
 			'setting'     => array(
1371 1371
 				'currency_position'   => 'before',
@@ -1375,7 +1375,7 @@  discard block
 block discarded – undo
1375 1375
 			),
1376 1376
 		),
1377 1377
 		'PAB' => array(
1378
-			'admin_label' => sprintf( __('Panamanian balboa (%1$s)', 'give'), 'B/.'),
1378
+			'admin_label' => sprintf(__('Panamanian balboa (%1$s)', 'give'), 'B/.'),
1379 1379
 			'symbol'      => 'B/.',
1380 1380
 			'setting'     => array(
1381 1381
 				'currency_position'   => 'before',
@@ -1385,7 +1385,7 @@  discard block
 block discarded – undo
1385 1385
 			),
1386 1386
 		),
1387 1387
 		'PGK' => array(
1388
-			'admin_label' => sprintf( __('Papua New Guinean kina (%1$s)', 'give'), 'K'),
1388
+			'admin_label' => sprintf(__('Papua New Guinean kina (%1$s)', 'give'), 'K'),
1389 1389
 			'symbol'      => 'K',
1390 1390
 			'setting'     => array(
1391 1391
 				'currency_position'   => 'before',
@@ -1395,7 +1395,7 @@  discard block
 block discarded – undo
1395 1395
 			),
1396 1396
 		),
1397 1397
 		'PRB' => array(
1398
-			'admin_label' => sprintf( __('Transnistrian ruble (%1$s)', 'give'), '&#x440;.'),
1398
+			'admin_label' => sprintf(__('Transnistrian ruble (%1$s)', 'give'), '&#x440;.'),
1399 1399
 			'symbol'      => '&#x440;.',
1400 1400
 			'setting'     => array(
1401 1401
 				'currency_position'   => 'before',
@@ -1405,7 +1405,7 @@  discard block
 block discarded – undo
1405 1405
 			),
1406 1406
 		),
1407 1407
 		'PYG' => array(
1408
-			'admin_label' => sprintf( __('Paraguayan guaraní (%1$s)', 'give'), '&#8370;'),
1408
+			'admin_label' => sprintf(__('Paraguayan guaraní (%1$s)', 'give'), '&#8370;'),
1409 1409
 			'symbol'      => '&#8370;',
1410 1410
 			'setting'     => array(
1411 1411
 				'currency_position'   => 'before',
@@ -1415,7 +1415,7 @@  discard block
 block discarded – undo
1415 1415
 			),
1416 1416
 		),
1417 1417
 		'QAR' => array(
1418
-			'admin_label' => sprintf( __('Qatari riyal (%1$s)', 'give'), '&#x631;.&#x642;'),
1418
+			'admin_label' => sprintf(__('Qatari riyal (%1$s)', 'give'), '&#x631;.&#x642;'),
1419 1419
 			'symbol'      => '&#x631;.&#x642;',
1420 1420
 			'setting'     => array(
1421 1421
 				'currency_position'   => 'before',
@@ -1425,7 +1425,7 @@  discard block
 block discarded – undo
1425 1425
 			),
1426 1426
 		),
1427 1427
 		'RSD' => array(
1428
-			'admin_label' => sprintf( __('Serbian dinar (%1$s)', 'give'), '&#x434;&#x438;&#x43d;.'),
1428
+			'admin_label' => sprintf(__('Serbian dinar (%1$s)', 'give'), '&#x434;&#x438;&#x43d;.'),
1429 1429
 			'symbol'      => '&#x434;&#x438;&#x43d;.',
1430 1430
 			'setting'     => array(
1431 1431
 				'currency_position'   => 'after',
@@ -1435,7 +1435,7 @@  discard block
 block discarded – undo
1435 1435
 			),
1436 1436
 		),
1437 1437
 		'RWF' => array(
1438
-			'admin_label' => sprintf( __('Rwandan franc (%1$s)', 'give'), 'Fr'),
1438
+			'admin_label' => sprintf(__('Rwandan franc (%1$s)', 'give'), 'Fr'),
1439 1439
 			'symbol'      => 'Fr',
1440 1440
 			'setting'     => array(
1441 1441
 				'currency_position'   => 'before',
@@ -1445,7 +1445,7 @@  discard block
 block discarded – undo
1445 1445
 			),
1446 1446
 		),
1447 1447
 		'SBD' => array(
1448
-			'admin_label' => sprintf( __('Solomon Islands dollar (%1$s)', 'give'), '&#36;'),
1448
+			'admin_label' => sprintf(__('Solomon Islands dollar (%1$s)', 'give'), '&#36;'),
1449 1449
 			'symbol'      => '&#36;',
1450 1450
 			'setting'     => array(
1451 1451
 				'currency_position'   => 'before',
@@ -1455,7 +1455,7 @@  discard block
 block discarded – undo
1455 1455
 			),
1456 1456
 		),
1457 1457
 		'SCR' => array(
1458
-			'admin_label' => sprintf( __('Seychellois rupee (%1$s)', 'give'), '&#x20a8;'),
1458
+			'admin_label' => sprintf(__('Seychellois rupee (%1$s)', 'give'), '&#x20a8;'),
1459 1459
 			'symbol'      => '&#x20a8;',
1460 1460
 			'setting'     => array(
1461 1461
 				'currency_position'   => 'before',
@@ -1465,7 +1465,7 @@  discard block
 block discarded – undo
1465 1465
 			),
1466 1466
 		),
1467 1467
 		'SDG' => array(
1468
-			'admin_label' => sprintf( __('Sudanese pound (%1$s)', 'give'), '&#x62c;.&#x633;.'),
1468
+			'admin_label' => sprintf(__('Sudanese pound (%1$s)', 'give'), '&#x62c;.&#x633;.'),
1469 1469
 			'symbol'      => '&#x62c;.&#x633;.',
1470 1470
 			'setting'     => array(
1471 1471
 				'currency_position'   => 'before',
@@ -1475,7 +1475,7 @@  discard block
 block discarded – undo
1475 1475
 			),
1476 1476
 		),
1477 1477
 		'SHP' => array(
1478
-			'admin_label' => sprintf( __('Saint Helena pound (%1$s)', 'give'), '&pound;'),
1478
+			'admin_label' => sprintf(__('Saint Helena pound (%1$s)', 'give'), '&pound;'),
1479 1479
 			'symbol'      => '&pound;',
1480 1480
 			'setting'     => array(
1481 1481
 				'currency_position'   => 'before',
@@ -1485,7 +1485,7 @@  discard block
 block discarded – undo
1485 1485
 			),
1486 1486
 		),
1487 1487
 		'SLL' => array(
1488
-			'admin_label' => sprintf( __('Sierra Leonean leone (%1$s)', 'give'), 'Le'),
1488
+			'admin_label' => sprintf(__('Sierra Leonean leone (%1$s)', 'give'), 'Le'),
1489 1489
 			'symbol'      => 'Le',
1490 1490
 			'setting'     => array(
1491 1491
 				'currency_position'   => 'before',
@@ -1495,7 +1495,7 @@  discard block
 block discarded – undo
1495 1495
 			),
1496 1496
 		),
1497 1497
 		'SOS' => array(
1498
-			'admin_label' => sprintf( __('Somali shilling (%1$s)', 'give'), 'Sh'),
1498
+			'admin_label' => sprintf(__('Somali shilling (%1$s)', 'give'), 'Sh'),
1499 1499
 			'symbol'      => 'Sh',
1500 1500
 			'setting'     => array(
1501 1501
 				'currency_position'   => 'before',
@@ -1505,7 +1505,7 @@  discard block
 block discarded – undo
1505 1505
 			),
1506 1506
 		),
1507 1507
 		'SRD' => array(
1508
-			'admin_label' => sprintf( __('Surinamese dollar (%1$s)', 'give'), '&#36;'),
1508
+			'admin_label' => sprintf(__('Surinamese dollar (%1$s)', 'give'), '&#36;'),
1509 1509
 			'symbol'      => '&#36;',
1510 1510
 			'setting'     => array(
1511 1511
 				'currency_position'   => 'before',
@@ -1515,7 +1515,7 @@  discard block
 block discarded – undo
1515 1515
 			),
1516 1516
 		),
1517 1517
 		'SSP' => array(
1518
-			'admin_label' => sprintf( __('South Sudanese pound (%1$s)', 'give'), '&pound;'),
1518
+			'admin_label' => sprintf(__('South Sudanese pound (%1$s)', 'give'), '&pound;'),
1519 1519
 			'symbol'      => '&pound;',
1520 1520
 			'setting'     => array(
1521 1521
 				'currency_position'   => 'before',
@@ -1525,7 +1525,7 @@  discard block
 block discarded – undo
1525 1525
 			),
1526 1526
 		),
1527 1527
 		'STD' => array(
1528
-			'admin_label' => sprintf( __('São Tomé and Príncipe dobra (%1$s)', 'give'), 'Db'),
1528
+			'admin_label' => sprintf(__('São Tomé and Príncipe dobra (%1$s)', 'give'), 'Db'),
1529 1529
 			'symbol'      => 'Db',
1530 1530
 			'setting'     => array(
1531 1531
 				'currency_position'   => 'before',
@@ -1535,7 +1535,7 @@  discard block
 block discarded – undo
1535 1535
 			),
1536 1536
 		),
1537 1537
 		'SYP' => array(
1538
-			'admin_label' => sprintf( __('Syrian pound (%1$s)', 'give'), '&#x644;.&#x633;'),
1538
+			'admin_label' => sprintf(__('Syrian pound (%1$s)', 'give'), '&#x644;.&#x633;'),
1539 1539
 			'symbol'      => '&#x644;.&#x633;',
1540 1540
 			'setting'     => array(
1541 1541
 				'currency_position'   => 'before',
@@ -1545,7 +1545,7 @@  discard block
 block discarded – undo
1545 1545
 			),
1546 1546
 		),
1547 1547
 		'TJS' => array(
1548
-			'admin_label' => sprintf( __('Tajikistani somoni (%1$s)', 'give'), '&#x405;&#x41c;'),
1548
+			'admin_label' => sprintf(__('Tajikistani somoni (%1$s)', 'give'), '&#x405;&#x41c;'),
1549 1549
 			'symbol'      => '&#x405;&#x41c;',
1550 1550
 			'setting'     => array(
1551 1551
 				'currency_position'   => 'after',
@@ -1555,7 +1555,7 @@  discard block
 block discarded – undo
1555 1555
 			),
1556 1556
 		),
1557 1557
 		'TMT' => array(
1558
-			'admin_label' => sprintf( __('Turkmenistan manat (%1$s)', 'give'), 'm'),
1558
+			'admin_label' => sprintf(__('Turkmenistan manat (%1$s)', 'give'), 'm'),
1559 1559
 			'symbol'      => 'm',
1560 1560
 			'setting'     => array(
1561 1561
 				'currency_position'   => 'after',
@@ -1565,7 +1565,7 @@  discard block
 block discarded – undo
1565 1565
 			),
1566 1566
 		),
1567 1567
 		'TND' => array(
1568
-			'admin_label' => sprintf( __('Turkmenistan manat (%1$s)', 'give'), '&#x62f;.&#x62a;'),
1568
+			'admin_label' => sprintf(__('Turkmenistan manat (%1$s)', 'give'), '&#x62f;.&#x62a;'),
1569 1569
 			'symbol'      => '&#x62f;.&#x62a;',
1570 1570
 			'setting'     => array(
1571 1571
 				'currency_position'   => 'before',
@@ -1575,7 +1575,7 @@  discard block
 block discarded – undo
1575 1575
 			),
1576 1576
 		),
1577 1577
 		'TTD' => array(
1578
-			'admin_label' => sprintf( __('Trinidad and Tobago dollar (%1$s)', 'give'), '&#36;'),
1578
+			'admin_label' => sprintf(__('Trinidad and Tobago dollar (%1$s)', 'give'), '&#36;'),
1579 1579
 			'symbol'      => '&#36;',
1580 1580
 			'setting'     => array(
1581 1581
 				'currency_position'   => 'before',
@@ -1585,7 +1585,7 @@  discard block
 block discarded – undo
1585 1585
 			),
1586 1586
 		),
1587 1587
 		'UGX' => array(
1588
-			'admin_label' => sprintf( __('Ugandan shilling (%1$s)', 'give'), 'UGX'),
1588
+			'admin_label' => sprintf(__('Ugandan shilling (%1$s)', 'give'), 'UGX'),
1589 1589
 			'symbol'      => 'UGX',
1590 1590
 			'setting'     => array(
1591 1591
 				'currency_position'   => 'before',
@@ -1595,7 +1595,7 @@  discard block
 block discarded – undo
1595 1595
 			),
1596 1596
 		),
1597 1597
 		'UZS' => array(
1598
-			'admin_label' => sprintf( __('Uzbekistani som (%1$s)', 'give'), 'UZS'),
1598
+			'admin_label' => sprintf(__('Uzbekistani som (%1$s)', 'give'), 'UZS'),
1599 1599
 			'symbol'      => 'UZS',
1600 1600
 			'setting'     => array(
1601 1601
 				'currency_position'   => 'after',
@@ -1605,7 +1605,7 @@  discard block
 block discarded – undo
1605 1605
 			),
1606 1606
 		),
1607 1607
 		'VND' => array(
1608
-			'admin_label' => sprintf( __('Vietnamese đồng (%1$s)', 'give'), '&#8363;'),
1608
+			'admin_label' => sprintf(__('Vietnamese đồng (%1$s)', 'give'), '&#8363;'),
1609 1609
 			'symbol'      => '&#8363;',
1610 1610
 			'setting'     => array(
1611 1611
 				'currency_position'   => 'after',
@@ -1615,7 +1615,7 @@  discard block
 block discarded – undo
1615 1615
 			),
1616 1616
 		),
1617 1617
 		'VUV' => array(
1618
-			'admin_label' => sprintf( __('Vanuatu vatu (%1$s)', 'give'), 'Vt'),
1618
+			'admin_label' => sprintf(__('Vanuatu vatu (%1$s)', 'give'), 'Vt'),
1619 1619
 			'symbol'      => 'Vt',
1620 1620
 			'setting'     => array(
1621 1621
 				'currency_position'   => 'after',
@@ -1625,7 +1625,7 @@  discard block
 block discarded – undo
1625 1625
 			),
1626 1626
 		),
1627 1627
 		'WST' => array(
1628
-			'admin_label' => sprintf( __('Samoan tālā (%1$s)', 'give'), 'T'),
1628
+			'admin_label' => sprintf(__('Samoan tālā (%1$s)', 'give'), 'T'),
1629 1629
 			'symbol'      => 'T',
1630 1630
 			'setting'     => array(
1631 1631
 				'currency_position'   => 'before',
@@ -1635,7 +1635,7 @@  discard block
 block discarded – undo
1635 1635
 			),
1636 1636
 		),
1637 1637
 		'XAF' => array(
1638
-			'admin_label' => sprintf( __('Central African CFA franc (%1$s)', 'give'), 'CFA'),
1638
+			'admin_label' => sprintf(__('Central African CFA franc (%1$s)', 'give'), 'CFA'),
1639 1639
 			'symbol'      => 'CFA',
1640 1640
 			'setting'     => array(
1641 1641
 				'currency_position'   => 'after',
@@ -1645,7 +1645,7 @@  discard block
 block discarded – undo
1645 1645
 			),
1646 1646
 		),
1647 1647
 		'XOF' => array(
1648
-			'admin_label' => sprintf( __('West African CFA franc (%1$s)', 'give'), 'CFA'),
1648
+			'admin_label' => sprintf(__('West African CFA franc (%1$s)', 'give'), 'CFA'),
1649 1649
 			'symbol'      => 'CFA',
1650 1650
 			'setting'     => array(
1651 1651
 				'currency_position'   => 'after',
@@ -1655,7 +1655,7 @@  discard block
 block discarded – undo
1655 1655
 			),
1656 1656
 		),
1657 1657
 		'XPF' => array(
1658
-			'admin_label' => sprintf( __('CFP franc (%1$s)', 'give'), 'Fr'),
1658
+			'admin_label' => sprintf(__('CFP franc (%1$s)', 'give'), 'Fr'),
1659 1659
 			'symbol'      => 'Fr',
1660 1660
 			'setting'     => array(
1661 1661
 				'currency_position'   => 'after',
@@ -1665,7 +1665,7 @@  discard block
 block discarded – undo
1665 1665
 			),
1666 1666
 		),
1667 1667
 		'YER' => array(
1668
-			'admin_label' => sprintf( __('Yemeni rial (%1$s)', 'give'), '&#xfdfc;'),
1668
+			'admin_label' => sprintf(__('Yemeni rial (%1$s)', 'give'), '&#xfdfc;'),
1669 1669
 			'symbol'      => '&#xfdfc;',
1670 1670
 			'setting'     => array(
1671 1671
 				'currency_position'   => 'before',
@@ -1675,7 +1675,7 @@  discard block
 block discarded – undo
1675 1675
 			),
1676 1676
 		),
1677 1677
 		'ZMW' => array(
1678
-			'admin_label' => sprintf( __('Zambian kwacha (%1$s)', 'give'), 'ZK'),
1678
+			'admin_label' => sprintf(__('Zambian kwacha (%1$s)', 'give'), 'ZK'),
1679 1679
 			'symbol'      => 'ZK',
1680 1680
 			'setting'     => array(
1681 1681
 				'currency_position'   => 'before',
@@ -1700,7 +1700,7 @@  discard block
 block discarded – undo
1700 1700
 	 *
1701 1701
 	 * @param array $currencies
1702 1702
 	 */
1703
-	return (array) apply_filters( 'give_currencies', $currencies );
1703
+	return (array) apply_filters('give_currencies', $currencies);
1704 1704
 }
1705 1705
 
1706 1706
 /**
@@ -1712,22 +1712,22 @@  discard block
 block discarded – undo
1712 1712
  *
1713 1713
  * @return array $currencies A list of the available currencies
1714 1714
  */
1715
-function give_get_currencies( $info = 'admin_label' ) {
1715
+function give_get_currencies($info = 'admin_label') {
1716 1716
 
1717 1717
 	$currencies = give_get_currencies_list();
1718 1718
 
1719 1719
 	// Backward compatibility: handle old way of currency registration.
1720 1720
 	// Backward compatibility: Return desired result.
1721
-	if ( ! empty( $currencies ) ) {
1722
-		foreach ( $currencies as $currency_code => $currency_setting ) {
1723
-			if ( is_string( $currency_setting ) ) {
1724
-				$currencies[ $currency_code ] = array(
1721
+	if ( ! empty($currencies)) {
1722
+		foreach ($currencies as $currency_code => $currency_setting) {
1723
+			if (is_string($currency_setting)) {
1724
+				$currencies[$currency_code] = array(
1725 1725
 					'admin_label' => $currency_setting,
1726 1726
 				);
1727 1727
 			}
1728 1728
 
1729
-			$currencies[ $currency_code ] = wp_parse_args(
1730
-				$currencies[ $currency_code ],
1729
+			$currencies[$currency_code] = wp_parse_args(
1730
+				$currencies[$currency_code],
1731 1731
 				array(
1732 1732
 					'admin_label' => '',
1733 1733
 					'symbol'      => $currency_code,
@@ -1736,8 +1736,8 @@  discard block
 block discarded – undo
1736 1736
 			);
1737 1737
 		}
1738 1738
 
1739
-		if ( ! empty( $info ) && is_string( $info ) && 'all' !== $info ) {
1740
-			$currencies = wp_list_pluck( $currencies, $info );
1739
+		if ( ! empty($info) && is_string($info) && 'all' !== $info) {
1740
+			$currencies = wp_list_pluck($currencies, $info);
1741 1741
 		}
1742 1742
 	}
1743 1743
 
@@ -1754,12 +1754,12 @@  discard block
 block discarded – undo
1754 1754
  *
1755 1755
  * @return array
1756 1756
  */
1757
-function give_currency_symbols( $decode_currencies = false ) {
1758
-	$currencies = give_get_currencies( 'symbol' );
1757
+function give_currency_symbols($decode_currencies = false) {
1758
+	$currencies = give_get_currencies('symbol');
1759 1759
 
1760
-	if ( $decode_currencies ) {
1761
-		array_walk( $currencies, function ( &$currency_symbol ) {
1762
-			$currency_symbol = html_entity_decode( $currency_symbol, ENT_COMPAT, 'UTF-8' );
1760
+	if ($decode_currencies) {
1761
+		array_walk($currencies, function(&$currency_symbol) {
1762
+			$currency_symbol = html_entity_decode($currency_symbol, ENT_COMPAT, 'UTF-8');
1763 1763
 		} );
1764 1764
 	}
1765 1765
 
@@ -1770,7 +1770,7 @@  discard block
 block discarded – undo
1770 1770
 	 *
1771 1771
 	 * @param array $currencies
1772 1772
 	 */
1773
-	return apply_filters( 'give_currency_symbols', $currencies );
1773
+	return apply_filters('give_currency_symbols', $currencies);
1774 1774
 }
1775 1775
 
1776 1776
 
@@ -1787,14 +1787,14 @@  discard block
 block discarded – undo
1787 1787
  *
1788 1788
  * @return string           The symbol to use for the currency
1789 1789
  */
1790
-function give_currency_symbol( $currency = '', $decode_currency = false ) {
1790
+function give_currency_symbol($currency = '', $decode_currency = false) {
1791 1791
 
1792
-	if ( empty( $currency ) ) {
1792
+	if (empty($currency)) {
1793 1793
 		$currency = give_get_currency();
1794 1794
 	}
1795 1795
 
1796
-	$currencies = give_currency_symbols( $decode_currency );
1797
-	$symbol     = array_key_exists( $currency, $currencies ) ? $currencies[ $currency ] : $currency;
1796
+	$currencies = give_currency_symbols($decode_currency);
1797
+	$symbol     = array_key_exists($currency, $currencies) ? $currencies[$currency] : $currency;
1798 1798
 
1799 1799
 	/**
1800 1800
 	 * Filter the currency symbol
@@ -1804,7 +1804,7 @@  discard block
 block discarded – undo
1804 1804
 	 * @param string $symbol
1805 1805
 	 * @param string $currency
1806 1806
 	 */
1807
-	return apply_filters( 'give_currency_symbol', $symbol, $currency );
1807
+	return apply_filters('give_currency_symbol', $symbol, $currency);
1808 1808
 }
1809 1809
 
1810 1810
 
@@ -1817,13 +1817,13 @@  discard block
 block discarded – undo
1817 1817
  *
1818 1818
  * @return string
1819 1819
  */
1820
-function give_get_currency_name( $currency_code ) {
1820
+function give_get_currency_name($currency_code) {
1821 1821
 	$currency_name  = '';
1822 1822
 	$currency_names = give_get_currencies();
1823 1823
 
1824
-	if ( $currency_code && array_key_exists( $currency_code, $currency_names ) ) {
1825
-		$currency_name = explode( '(', $currency_names[ $currency_code ] );
1826
-		$currency_name = trim( current( $currency_name ) );
1824
+	if ($currency_code && array_key_exists($currency_code, $currency_names)) {
1825
+		$currency_name = explode('(', $currency_names[$currency_code]);
1826
+		$currency_name = trim(current($currency_name));
1827 1827
 	}
1828 1828
 
1829 1829
 	/**
@@ -1834,7 +1834,7 @@  discard block
 block discarded – undo
1834 1834
 	 * @param string $currency_name
1835 1835
 	 * @param string $currency_code
1836 1836
 	 */
1837
-	return apply_filters( 'give_currency_name', $currency_name, $currency_code );
1837
+	return apply_filters('give_currency_name', $currency_name, $currency_code);
1838 1838
 }
1839 1839
 
1840 1840
 /**
@@ -1847,20 +1847,20 @@  discard block
 block discarded – undo
1847 1847
  *
1848 1848
  * @return mixed|string
1849 1849
  */
1850
-function give_currency_filter( $price = '', $args = array() ) {
1850
+function give_currency_filter($price = '', $args = array()) {
1851 1851
 
1852 1852
 	// Get functions arguments.
1853 1853
 	$func_args = func_get_args();
1854 1854
 
1855 1855
 	// Backward compatibility: modify second param to array
1856
-	if ( isset( $func_args[1] ) && is_string( $func_args[1] ) ) {
1856
+	if (isset($func_args[1]) && is_string($func_args[1])) {
1857 1857
 		$args = array(
1858
-			'currency_code'   => isset( $func_args[1] ) ? $func_args[1] : '',
1859
-			'decode_currency' => isset( $func_args[2] ) ? $func_args[2] : false,
1860
-			'form_id'         => isset( $func_args[3] ) ? $func_args[3] : '',
1858
+			'currency_code'   => isset($func_args[1]) ? $func_args[1] : '',
1859
+			'decode_currency' => isset($func_args[2]) ? $func_args[2] : false,
1860
+			'form_id'         => isset($func_args[3]) ? $func_args[3] : '',
1861 1861
 		);
1862 1862
 
1863
-		give_doing_it_wrong( __FUNCTION__, 'Pass second argument as Array.', GIVE_VERSION );
1863
+		give_doing_it_wrong(__FUNCTION__, 'Pass second argument as Array.', GIVE_VERSION);
1864 1864
 	}
1865 1865
 
1866 1866
 	// Set default values.
@@ -1873,22 +1873,22 @@  discard block
 block discarded – undo
1873 1873
 		)
1874 1874
 	);
1875 1875
 
1876
-	if ( empty( $args['currency_code'] ) || ! array_key_exists( (string) $args['currency_code'], give_get_currencies() ) ) {
1877
-		$args['currency_code'] = give_get_currency( $args['form_id'] );
1876
+	if (empty($args['currency_code']) || ! array_key_exists((string) $args['currency_code'], give_get_currencies())) {
1877
+		$args['currency_code'] = give_get_currency($args['form_id']);
1878 1878
 	}
1879 1879
 
1880
-	$args['position'] = give_get_option( 'currency_position', 'before' );
1880
+	$args['position'] = give_get_option('currency_position', 'before');
1881 1881
 
1882 1882
 	$negative = $price < 0;
1883 1883
 
1884
-	if ( $negative ) {
1884
+	if ($negative) {
1885 1885
 		// Remove proceeding "-".
1886
-		$price = substr( $price, 1 );
1886
+		$price = substr($price, 1);
1887 1887
 	}
1888 1888
 
1889
-	$args['symbol'] = give_currency_symbol( $args['currency_code'], $args['decode_currency'] );
1889
+	$args['symbol'] = give_currency_symbol($args['currency_code'], $args['decode_currency']);
1890 1890
 
1891
-	switch ( $args['currency_code'] ) :
1891
+	switch ($args['currency_code']) :
1892 1892
 		case 'GBP' :
1893 1893
 		case 'BRL' :
1894 1894
 		case 'EUR' :
@@ -1918,13 +1918,13 @@  discard block
 block discarded – undo
1918 1918
 		case 'MAD' :
1919 1919
 		case 'KRW' :
1920 1920
 		case 'ZAR' :
1921
-			$formatted = ( 'before' === $args['position'] ? $args['symbol'] . $price : $price . $args['symbol'] );
1921
+			$formatted = ('before' === $args['position'] ? $args['symbol'].$price : $price.$args['symbol']);
1922 1922
 			break;
1923 1923
 		case 'NOK':
1924
-			$formatted = ( 'before' === $args['position'] ? $args['symbol'] . ' ' . $price : $price . ' ' . $args['symbol'] );
1924
+			$formatted = ('before' === $args['position'] ? $args['symbol'].' '.$price : $price.' '.$args['symbol']);
1925 1925
 			break;
1926 1926
 		default:
1927
-			$formatted = ( 'before' === $args['position'] ? $args['symbol'] . ' ' . $price : $price . ' ' . $args['symbol'] );
1927
+			$formatted = ('before' === $args['position'] ? $args['symbol'].' '.$price : $price.' '.$args['symbol']);
1928 1928
 			break;
1929 1929
 	endswitch;
1930 1930
 
@@ -1933,7 +1933,7 @@  discard block
 block discarded – undo
1933 1933
 	 *
1934 1934
 	 * @since 1.8.17
1935 1935
 	 */
1936
-	$formatted = apply_filters( 'give_currency_filter', $formatted, $args, $price );
1936
+	$formatted = apply_filters('give_currency_filter', $formatted, $args, $price);
1937 1937
 
1938 1938
 	/**
1939 1939
 	 * Filter formatted amount with currency
@@ -1947,16 +1947,16 @@  discard block
 block discarded – undo
1947 1947
 	 *           filter name will be give_usd_currency_filter_after
1948 1948
 	 */
1949 1949
 	$formatted = apply_filters(
1950
-		'give_' . strtolower( $args['currency_code'] ) . "_currency_filter_{$args['position']}",
1950
+		'give_'.strtolower($args['currency_code'])."_currency_filter_{$args['position']}",
1951 1951
 		$formatted,
1952 1952
 		$args['currency_code'],
1953 1953
 		$price,
1954 1954
 		$args
1955 1955
 	);
1956 1956
 
1957
-	if ( $negative ) {
1957
+	if ($negative) {
1958 1958
 		// Prepend the minus sign before the currency sign.
1959
-		$formatted = '-' . $formatted;
1959
+		$formatted = '-'.$formatted;
1960 1960
 	}
1961 1961
 
1962 1962
 	return $formatted;
@@ -1974,7 +1974,7 @@  discard block
 block discarded – undo
1974 1974
  *
1975 1975
  * @return bool
1976 1976
  */
1977
-function give_is_zero_based_currency( $currency = '' ) {
1977
+function give_is_zero_based_currency($currency = '') {
1978 1978
 	$zero_based_currency = array(
1979 1979
 		'JPY', // Japanese Yen.
1980 1980
 		'KRW', // South Korean Won.
@@ -1994,12 +1994,12 @@  discard block
 block discarded – undo
1994 1994
 	);
1995 1995
 
1996 1996
 	// Set default currency.
1997
-	if ( empty( $currency ) ) {
1997
+	if (empty($currency)) {
1998 1998
 		$currency = give_get_currency();
1999 1999
 	}
2000 2000
 
2001 2001
 	// Check for Zero Based Currency.
2002
-	if ( in_array( $currency, $zero_based_currency ) ) {
2002
+	if (in_array($currency, $zero_based_currency)) {
2003 2003
 		return true;
2004 2004
 	}
2005 2005
 
@@ -2014,7 +2014,7 @@  discard block
 block discarded – undo
2014 2014
  *
2015 2015
  * @return bool
2016 2016
  */
2017
-function give_is_right_to_left_supported_currency( $currency = '' ) {
2017
+function give_is_right_to_left_supported_currency($currency = '') {
2018 2018
 	$zero_based_currency = apply_filters(
2019 2019
 		'give_right_to_left_supported_currency',
2020 2020
 		array(
@@ -2038,12 +2038,12 @@  discard block
 block discarded – undo
2038 2038
 	);
2039 2039
 
2040 2040
 	// Set default currency.
2041
-	if ( empty( $currency ) ) {
2041
+	if (empty($currency)) {
2042 2042
 		$currency = give_get_currency();
2043 2043
 	}
2044 2044
 
2045 2045
 	// Check for Zero Based Currency.
2046
-	if ( in_array( $currency, $zero_based_currency ) ) {
2046
+	if (in_array($currency, $zero_based_currency)) {
2047 2047
 		return true;
2048 2048
 	}
2049 2049
 
Please login to merge, or discard this patch.