Completed
Push — master ( ace9ba...1ffdfe )
by Ravinder
12s
created
includes/gateways/offline-donations.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -249,10 +249,10 @@
 block discarded – undo
249 249
 	$admin_message .= '<strong>' . __( 'Amount:', 'give' ) . '</strong> {amount}' . "\n\n";
250 250
 
251 251
 	$admin_message .= sprintf(
252
-		                  '<a href="%1$s">%2$s</a>',
253
-		                  admin_url( 'edit.php?post_type=give_forms&page=give-payment-history&view=view-order-details&id=' . $payment_id ),
254
-		                  __( 'View Donation Details &raquo;', 'give' )
255
-	                  ) . "\n\n";
252
+						  '<a href="%1$s">%2$s</a>',
253
+						  admin_url( 'edit.php?post_type=give_forms&page=give-payment-history&view=view-order-details&id=' . $payment_id ),
254
+						  __( 'View Donation Details &raquo;', 'give' )
255
+					  ) . "\n\n";
256 256
 
257 257
 	$admin_message = apply_filters( 'give_offline_admin_donation_notification', $admin_message, $payment_id );
258 258
 	$admin_message = give_do_email_tags( $admin_message, $payment_id );
Please login to merge, or discard this patch.
includes/admin/class-admin-settings.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -733,9 +733,9 @@
 block discarded – undo
733 733
                         <td class="give-docs-link" colspan="2">
734 734
 							<?php
735 735
 							echo '<p class="give-docs-link"><a href="' . esc_url( $value['url'] )
736
-							     . '" target="_blank">'
737
-							     . sprintf( esc_html__( 'Need Help? See docs on "%s"', 'give' ), $value['title'] )
738
-							     . '<span class="dashicons dashicons-editor-help"></span></a></p>';
736
+								 . '" target="_blank">'
737
+								 . sprintf( esc_html__( 'Need Help? See docs on "%s"', 'give' ), $value['title'] )
738
+								 . '<span class="dashicons dashicons-editor-help"></span></a></p>';
739 739
 							?>
740 740
                         </td>
741 741
                         </tr><?php
Please login to merge, or discard this patch.
includes/admin/give-metabox-functions.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -555,7 +555,7 @@  discard block
 block discarded – undo
555 555
 				type="radio"
556 556
 				style="' . esc_attr( $field['style'] ) . '"
557 557
 				' . checked( esc_attr( $field['value'] ), esc_attr( $key ), false ) . ' '
558
-		     . give_get_custom_attributes( $field ) . '
558
+			 . give_get_custom_attributes( $field ) . '
559 559
 				/> ' . esc_html( $value ) . '</label>
560 560
 		</li>';
561 561
 	}
@@ -704,9 +704,9 @@  discard block
 block discarded – undo
704 704
 	$field['title'] = isset( $field['title'] ) ? $field['title'] : 'Documentation';
705 705
 
706 706
 	echo '<p class="give-docs-link"><a href="' . esc_url( $field['url'] )
707
-	     . '" target="_blank">'
708
-	     . sprintf( esc_html__( 'Need Help? See docs on "%s"', 'give' ), $field['title'] )
709
-	     . '<span class="dashicons dashicons-editor-help"></span></a></p>';
707
+		 . '" target="_blank">'
708
+		 . sprintf( esc_html__( 'Need Help? See docs on "%s"', 'give' ), $field['title'] )
709
+		 . '<span class="dashicons dashicons-editor-help"></span></a></p>';
710 710
 }
711 711
 
712 712
 /**
Please login to merge, or discard this patch.
includes/admin/reporting/pdf-reports.php 1 patch
Indentation   +32 added lines, -32 removed lines patch added patch discarded remove patch
@@ -47,8 +47,8 @@  discard block
 block discarded – undo
47 47
 		)
48 48
 	);
49 49
 
50
-    $categories_enabled = give_is_setting_enabled( give_get_option( 'categories', 'disabled' ) );
51
-    $tags_enabled = give_is_setting_enabled( give_get_option( 'tags', 'disabled' ) );
50
+	$categories_enabled = give_is_setting_enabled( give_get_option( 'categories', 'disabled' ) );
51
+	$tags_enabled = give_is_setting_enabled( give_get_option( 'tags', 'disabled' ) );
52 52
 
53 53
 	$pdf = new give_pdf();
54 54
 	$pdf->AddPage( 'L', 'A4' );
@@ -80,15 +80,15 @@  discard block
 block discarded – undo
80 80
 	$pdf->Cell( 70, 6, utf8_decode( __( 'Form Name', 'give' ) ), 1, 0, 'L', true );
81 81
 	$pdf->Cell( 30, 6, utf8_decode( __( 'Price', 'give' ) ), 1, 0, 'L', true );
82 82
 
83
-    // Display Categories Heading only, if user has opted for it.
84
-    if ( $categories_enabled ) {
83
+	// Display Categories Heading only, if user has opted for it.
84
+	if ( $categories_enabled ) {
85 85
 	   $pdf->Cell( 45, 6, utf8_decode( __( 'Categories', 'give' ) ), 1, 0, 'L', true );
86
-    }
86
+	}
87 87
 
88
-    // Display Tags Heading only, if user has opted for it.
89
-    if ( $tags_enabled ) {
88
+	// Display Tags Heading only, if user has opted for it.
89
+	if ( $tags_enabled ) {
90 90
 	   $pdf->Cell( 45, 6, utf8_decode( __( 'Tags', 'give' ) ), 1, 0, 'L', true );
91
-    }
91
+	}
92 92
 
93 93
 	$pdf->Cell( 45, 6, utf8_decode( __( 'Number of Donations', 'give' ) ), 1, 0, 'L', true );
94 94
 	$pdf->Cell( 45, 6, utf8_decode( __( 'Income to Date', 'give' ) ), 1, 1, 'L', true );
@@ -125,17 +125,17 @@  discard block
 block discarded – undo
125 125
 				$price = html_entity_decode( give_currency_filter( give_get_form_price( $form->ID ) ) );
126 126
 			}
127 127
 
128
-            // Display Categories Data only, if user has opted for it.
129
-            if ( $categories_enabled ) {
130
-                $categories = get_the_term_list( $form->ID, 'give_forms_category', '', ', ', '' );
131
-                $categories = ! is_wp_error( $categories ) ? strip_tags( $categories ) : '';
132
-            }
128
+			// Display Categories Data only, if user has opted for it.
129
+			if ( $categories_enabled ) {
130
+				$categories = get_the_term_list( $form->ID, 'give_forms_category', '', ', ', '' );
131
+				$categories = ! is_wp_error( $categories ) ? strip_tags( $categories ) : '';
132
+			}
133 133
 
134
-            // Display Tags Data only, if user has opted for it.
135
-            if ( $tags_enabled ) {
136
-                $tags = get_the_term_list( $form->ID, 'give_forms_tag', '', ', ', '' );
137
-                $tags = ! is_wp_error( $tags ) ? strip_tags( $tags ) : '';
138
-            }
134
+			// Display Tags Data only, if user has opted for it.
135
+			if ( $tags_enabled ) {
136
+				$tags = get_the_term_list( $form->ID, 'give_forms_tag', '', ', ', '' );
137
+				$tags = ! is_wp_error( $tags ) ? strip_tags( $tags ) : '';
138
+			}
139 139
 
140 140
 			$sales    = give_get_form_sales_stats( $form->ID );
141 141
 			$link     = get_permalink( $form->ID );
@@ -147,23 +147,23 @@  discard block
 block discarded – undo
147 147
 				$earnings = iconv( 'UTF-8', 'windows-1252', utf8_encode( $earnings ) );
148 148
 			}
149 149
 
150
-            // This will help filter data before appending it to PDF Receipt.
151
-            $prepare_pdf_data = array();
152
-            $prepare_pdf_data[] = $title;
153
-            $prepare_pdf_data[] = $price;
150
+			// This will help filter data before appending it to PDF Receipt.
151
+			$prepare_pdf_data = array();
152
+			$prepare_pdf_data[] = $title;
153
+			$prepare_pdf_data[] = $price;
154 154
 
155
-            // Append Categories Data only, if user has opted for it.
156
-            if ( $categories_enabled ) {
157
-                $prepare_pdf_data[] = $categories;
158
-            }
155
+			// Append Categories Data only, if user has opted for it.
156
+			if ( $categories_enabled ) {
157
+				$prepare_pdf_data[] = $categories;
158
+			}
159 159
 
160
-            // Append Tags Data only, if user has opted for it.
161
-            if ( $tags_enabled ) {
162
-                $prepare_pdf_data[] = $tags;
163
-            }
160
+			// Append Tags Data only, if user has opted for it.
161
+			if ( $tags_enabled ) {
162
+				$prepare_pdf_data[] = $tags;
163
+			}
164 164
 
165
-            $prepare_pdf_data[] = $sales;
166
-            $prepare_pdf_data[] = $earnings;
165
+			$prepare_pdf_data[] = $sales;
166
+			$prepare_pdf_data[] = $earnings;
167 167
 
168 168
 			$pdf->Row( $prepare_pdf_data );
169 169
 		endforeach;
Please login to merge, or discard this patch.