Completed
Push — master ( 27371a...06f71d )
by Devin
14s
created
includes/admin/shortcodes/shortcode-give-login.php 1 patch
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -42,16 +42,16 @@
 block discarded – undo
42 42
 				'minWidth' => 320,
43 43
 				'tooltip'  => esc_attr__( 'Enter an URL here to redirect to after login.', 'give' ),
44 44
 			),
45
-            array(
46
-                'type' => 'container',
47
-                'html' => sprintf( '<p class="no-margin">%s</p>', esc_html__( 'Logout Redirect URL (optional):', 'give' ) ),
48
-            ),
49
-            array(
50
-                'type'     => 'textbox',
51
-                'name'     => 'logout-redirect',
52
-                'minWidth' => 320,
53
-                'tooltip'  => esc_attr__( 'Enter an URL here to redirect to after logout.', 'give' ),
54
-            ),
45
+			array(
46
+				'type' => 'container',
47
+				'html' => sprintf( '<p class="no-margin">%s</p>', esc_html__( 'Logout Redirect URL (optional):', 'give' ) ),
48
+			),
49
+			array(
50
+				'type'     => 'textbox',
51
+				'name'     => 'logout-redirect',
52
+				'minWidth' => 320,
53
+				'tooltip'  => esc_attr__( 'Enter an URL here to redirect to after logout.', 'give' ),
54
+			),
55 55
 		);
56 56
 	}
57 57
 }
Please login to merge, or discard this patch.
includes/admin/shortcodes/abstract-shortcode-generator.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -248,8 +248,8 @@
 block discarded – undo
248 248
 
249 249
 			// do not reindex array!
250 250
 			$field['options'] = array(
251
-				                    '' => ( $field['placeholder'] ? $field['placeholder'] : esc_attr__( '- Select -', 'give' ) ),
252
-			                    ) + $field['options'];
251
+									'' => ( $field['placeholder'] ? $field['placeholder'] : esc_attr__( '- Select -', 'give' ) ),
252
+								) + $field['options'];
253 253
 
254 254
 			foreach ( $field['options'] as $value => $text ) {
255 255
 				$new_listbox['values'][] = array(
Please login to merge, or discard this patch.
includes/class-give-db-customers.php 1 patch
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -427,13 +427,13 @@  discard block
 block discarded – undo
427 427
 	 *
428 428
 	 * @since  1.0
429 429
 	 * @access public
430
-     *
431
-     * @param  array $args
432
-     *
433
-     * @return array|object|null Customers array or object. Null if not found.
430
+	 *
431
+	 * @param  array $args
432
+	 *
433
+	 * @return array|object|null Customers array or object. Null if not found.
434 434
 	 */
435 435
 	public function get_customers( $args = array() ) {
436
-        /* @var WPDB $wpdb */
436
+		/* @var WPDB $wpdb */
437 437
 		global $wpdb;
438 438
 
439 439
 		$defaults = array(
@@ -558,13 +558,13 @@  discard block
 block discarded – undo
558 558
 	 *
559 559
 	 * @since  1.0
560 560
 	 * @access public
561
-     *
562
-     * @param  array $args
563
-     *
564
-     * @return int         Total number of customers.
561
+	 *
562
+	 * @param  array $args
563
+	 *
564
+	 * @return int         Total number of customers.
565 565
 	 */
566 566
 	public function count( $args = array() ) {
567
-        /* @var WPDB $wpdb */
567
+		/* @var WPDB $wpdb */
568 568
 		global $wpdb;
569 569
 
570 570
 		$where = ' WHERE 1=1 ';
Please login to merge, or discard this patch.
includes/template-functions.php 1 patch
Indentation   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -45,22 +45,22 @@  discard block
 block discarded – undo
45 45
  * @param string $default_path  Default path. Default is empty.
46 46
  */
47 47
 function give_get_template( $template_name, $args = array(), $template_path = '', $default_path = '' ) {
48
-    if ( ! empty( $args ) && is_array( $args ) ) {
49
-        extract( $args );
50
-    }
48
+	if ( ! empty( $args ) && is_array( $args ) ) {
49
+		extract( $args );
50
+	}
51 51
 
52
-    $template_names = array( $template_name . '.php' );
52
+	$template_names = array( $template_name . '.php' );
53 53
 
54
-    $located = give_locate_template( $template_names, $template_path, $default_path );
54
+	$located = give_locate_template( $template_names, $template_path, $default_path );
55 55
 
56
-    if ( ! file_exists( $located ) ) {
56
+	if ( ! file_exists( $located ) ) {
57 57
 		/* translators: %s: the template */
58
-        give_output_error( sprintf( __( 'The %s template was not found.', 'give' ), $located ), true );
59
-        return;
60
-    }
58
+		give_output_error( sprintf( __( 'The %s template was not found.', 'give' ), $located ), true );
59
+		return;
60
+	}
61 61
 
62
-    // Allow 3rd party plugin filter template file from their plugin.
63
-    $located = apply_filters( 'give_get_template', $located, $template_name, $args, $template_path, $default_path );
62
+	// Allow 3rd party plugin filter template file from their plugin.
63
+	$located = apply_filters( 'give_get_template', $located, $template_name, $args, $template_path, $default_path );
64 64
 
65 65
 	/**
66 66
 	 * Fires in give template, before the file is included.
@@ -74,9 +74,9 @@  discard block
 block discarded – undo
74 74
 	 * @param string $located       Template file filter by 3rd party plugin.
75 75
 	 * @param array  $args          Passed arguments.
76 76
 	 */
77
-    do_action( 'give_before_template_part', $template_name, $template_path, $located, $args );
77
+	do_action( 'give_before_template_part', $template_name, $template_path, $located, $args );
78 78
 
79
-    include( $located );
79
+	include( $located );
80 80
 
81 81
 	/**
82 82
 	 * Fires in give template, after the file is included.
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
 	 * @param string $located       Template file filter by 3rd party plugin.
91 91
 	 * @param array  $args          Passed arguments.
92 92
 	 */
93
-    do_action( 'give_after_template_part', $template_name, $template_path, $located, $args );
93
+	do_action( 'give_after_template_part', $template_name, $template_path, $located, $args );
94 94
 }
95 95
 
96 96
 /**
Please login to merge, or discard this patch.
includes/admin/tools/views/html-admin-page-system-info.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -586,9 +586,9 @@
 block discarded – undo
586 586
 					}
587 587
 
588 588
 					echo ' &ndash; '
589
-					     . sprintf( _x( 'by %s', 'by author', 'give' ), wp_kses( $author_name, wp_kses_allowed_html( 'post' ) ) )
590
-					     . ' &ndash; '
591
-					     . esc_html( $plugin_data['Version'] );
589
+						 . sprintf( _x( 'by %s', 'by author', 'give' ), wp_kses( $author_name, wp_kses_allowed_html( 'post' ) ) )
590
+						 . ' &ndash; '
591
+						 . esc_html( $plugin_data['Version'] );
592 592
 					?>
593 593
 				</td>
594 594
 			</tr>
Please login to merge, or discard this patch.
includes/admin/reporting/graphing.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -814,12 +814,12 @@
 block discarded – undo
814 814
 	) ), 'give-refresh-reports' );
815 815
 
816 816
 	echo '<a href="'
817
-	     . esc_url_raw( $url )
818
-	     . '" data-tooltip="'. esc_attr__( 'Clicking this will clear the reports cache.', 'give' )
819
-	     . '" data-tooltip-my-position="right center"  data-tooltip-target-position="left center" class="button alignright give-admin-button give-tooltip">'
820
-	     . '<span class="give-admin-button-icon give-admin-button-icon-update"></span>'
821
-	     . esc_html__( 'Refresh Report Data', 'give' )
822
-	     . '</a>';
817
+		 . esc_url_raw( $url )
818
+		 . '" data-tooltip="'. esc_attr__( 'Clicking this will clear the reports cache.', 'give' )
819
+		 . '" data-tooltip-my-position="right center"  data-tooltip-target-position="left center" class="button alignright give-admin-button give-tooltip">'
820
+		 . '<span class="give-admin-button-icon give-admin-button-icon-update"></span>'
821
+		 . esc_html__( 'Refresh Report Data', 'give' )
822
+		 . '</a>';
823 823
 
824 824
 }
825 825
 
Please login to merge, or discard this patch.
includes/admin/settings/class-settings-email.php 1 patch
Indentation   +21 added lines, -21 removed lines patch added patch discarded remove patch
@@ -79,13 +79,13 @@  discard block
 block discarded – undo
79 79
 							'default' => get_bloginfo( 'admin_email' ),
80 80
 							'type'    => 'text'
81 81
 						),
82
-                        array(
83
-                            'name'  => esc_html__( 'Email Settings Docs Link', 'give' ),
84
-                            'id'    => 'email_settings_docs_link',
85
-                            'url'   => esc_url( 'http://docs.givewp.com/settings-emails' ),
86
-                            'title' => __( 'Email Settings', 'give' ),
87
-                            'type'  => 'give_docs_link',
88
-                        ),
82
+						array(
83
+							'name'  => esc_html__( 'Email Settings Docs Link', 'give' ),
84
+							'id'    => 'email_settings_docs_link',
85
+							'url'   => esc_url( 'http://docs.givewp.com/settings-emails' ),
86
+							'title' => __( 'Email Settings', 'give' ),
87
+							'type'  => 'give_docs_link',
88
+						),
89 89
 						array(
90 90
 							'id'   => 'give_title_email_settings_1',
91 91
 							'type' => 'sectionend'
@@ -118,13 +118,13 @@  discard block
 block discarded – undo
118 118
 							'type'    => 'wysiwyg',
119 119
 							'default' => give_get_default_donation_receipt_email()
120 120
 						),
121
-                        array(
122
-                            'name'  => esc_html__( 'Donation Receipt Settings Docs Link', 'give' ),
123
-                            'id'    => 'donation_receipt_settings_docs_link',
124
-                            'url'   => esc_url( 'http://docs.givewp.com/settings-donation-receipt' ),
125
-                            'title' => __( 'Donation Receipt Settings', 'give' ),
126
-                            'type'  => 'give_docs_link',
127
-                        ),
121
+						array(
122
+							'name'  => esc_html__( 'Donation Receipt Settings Docs Link', 'give' ),
123
+							'id'    => 'donation_receipt_settings_docs_link',
124
+							'url'   => esc_url( 'http://docs.givewp.com/settings-donation-receipt' ),
125
+							'title' => __( 'Donation Receipt Settings', 'give' ),
126
+							'type'  => 'give_docs_link',
127
+						),
128 128
 						array(
129 129
 							'id'   => 'give_title_email_settings_2',
130 130
 							'type' => 'sectionend'
@@ -175,13 +175,13 @@  discard block
 block discarded – undo
175 175
 							'type'    => 'textarea',
176 176
 							'default' => get_bloginfo( 'admin_email' )
177 177
 						),
178
-                        array(
179
-                            'name'  => esc_html__( 'Donation Notification Settings Docs Link', 'give' ),
180
-                            'id'    => 'donation_notification_settings_docs_link',
181
-                            'url'   => esc_url( 'http://docs.givewp.com/settings-donation-notification' ),
182
-                            'title' => __( 'Donation Notification Settings', 'give' ),
183
-                            'type'  => 'give_docs_link',
184
-                        ),
178
+						array(
179
+							'name'  => esc_html__( 'Donation Notification Settings Docs Link', 'give' ),
180
+							'id'    => 'donation_notification_settings_docs_link',
181
+							'url'   => esc_url( 'http://docs.givewp.com/settings-donation-notification' ),
182
+							'title' => __( 'Donation Notification Settings', 'give' ),
183
+							'type'  => 'give_docs_link',
184
+						),
185 185
 						array(
186 186
 							'id'   => 'give_title_email_settings_3',
187 187
 							'type' => 'sectionend'
Please login to merge, or discard this patch.
includes/admin/shortcodes/class-shortcode-button.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -138,8 +138,8 @@
 block discarded – undo
138 138
 
139 139
 		// Only run in admin post/page creation and edit screens
140 140
 		if ( in_array( $screen->parent_file, $shortcode_button_pages )
141
-		     && apply_filters( 'give_shortcode_button_condition', true )
142
-		     && ! empty( self::$shortcodes )
141
+			 && apply_filters( 'give_shortcode_button_condition', true )
142
+			 && ! empty( self::$shortcodes )
143 143
 		) {
144 144
 
145 145
 			$shortcodes = array();
Please login to merge, or discard this patch.
includes/misc-functions.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -812,10 +812,10 @@  discard block
 block discarded – undo
812 812
 		}
813 813
 
814 814
 		if ( ! is_int( $params[1] )
815
-		     && ! is_float( $params[1] )
816
-		     && ! is_string( $params[1] )
817
-		     && $params[1] !== null
818
-		     && ! ( is_object( $params[1] ) && method_exists( $params[1], '__toString' ) )
815
+			 && ! is_float( $params[1] )
816
+			 && ! is_string( $params[1] )
817
+			 && $params[1] !== null
818
+			 && ! ( is_object( $params[1] ) && method_exists( $params[1], '__toString' ) )
819 819
 		) {
820 820
 			trigger_error( esc_html__( 'array_column(): The column key should be either a string or an integer.', 'give' ), E_USER_WARNING );
821 821
 
@@ -823,10 +823,10 @@  discard block
 block discarded – undo
823 823
 		}
824 824
 
825 825
 		if ( isset( $params[2] )
826
-		     && ! is_int( $params[2] )
827
-		     && ! is_float( $params[2] )
828
-		     && ! is_string( $params[2] )
829
-		     && ! ( is_object( $params[2] ) && method_exists( $params[2], '__toString' ) )
826
+			 && ! is_int( $params[2] )
827
+			 && ! is_float( $params[2] )
828
+			 && ! is_string( $params[2] )
829
+			 && ! ( is_object( $params[2] ) && method_exists( $params[2], '__toString' ) )
830 830
 		) {
831 831
 			trigger_error( esc_html__( 'array_column(): The index key should be either a string or an integer.', 'give' ), E_USER_WARNING );
832 832
 
Please login to merge, or discard this patch.