Completed
Push — master ( 1b7620...a4da27 )
by Zack
12s
created
includes/extensions/edit-entry/class-edit-entry-render.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -942,7 +942,7 @@  discard block
 block discarded – undo
942 942
 
943 943
 			$back_link = esc_url( remove_query_arg( array( 'page', 'view', 'edit' ) ) );
944 944
 
945
-			if( ! $this->is_valid ){
945
+			if( ! $this->is_valid ) {
946 946
 
947 947
 				// Keeping this compatible with Gravity Forms.
948 948
 				$validation_message = "<div class='validation_error'>" . __('There was a problem with your submission.', 'gravityview') . " " . __('Errors have been highlighted below.', 'gravityview') . "</div>";
@@ -1996,9 +1996,7 @@  discard block
 block discarded – undo
1996 1996
 		// Verify
1997 1997
 		else if( ! $this->is_edit_entry() ) {
1998 1998
 			$valid = false;
1999
-		}
2000
-
2001
-		else {
1999
+		} else {
2002 2000
 			$valid = wp_verify_nonce( $_GET['edit'], self::$nonce_key );
2003 2001
 		}
2004 2002
 
Please login to merge, or discard this patch.
includes/extensions/entry-notes/class-gravityview-field-notes.php 1 patch
Indentation   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -169,10 +169,10 @@  discard block
 block discarded – undo
169 169
 
170 170
 		if( 'gv_note_add' === $_POST['action'] ) {
171 171
 
172
-            if( ! GVCommon::has_cap( 'gravityview_add_entry_notes' ) ) {
173
-                do_action( 'gravityview_log_error', __METHOD__ . ': The user isnt allowed to add entry notes.' );
174
-                return;
175
-            }
172
+			if( ! GVCommon::has_cap( 'gravityview_add_entry_notes' ) ) {
173
+				do_action( 'gravityview_log_error', __METHOD__ . ': The user isnt allowed to add entry notes.' );
174
+				return;
175
+			}
176 176
 
177 177
 			$post = wp_unslash( $_POST );
178 178
 
@@ -272,7 +272,7 @@  discard block
 block discarded – undo
272 272
 	 *
273 273
 	 * Verify permissions. Check expected $_POST. Parse args, then send to process_delete_notes
274 274
 	 *
275
-  	 * @since 1.17
275
+	 * @since 1.17
276 276
 	 *
277 277
 	 * @see process_delete_notes
278 278
 	 *
@@ -425,7 +425,7 @@  discard block
 block discarded – undo
425 425
 			'subject-label' => __( 'Subject', 'gravityview' ),
426 426
 			'subject' => __( 'Email subject', 'gravityview' ),
427 427
 			'default-email-subject' => __( 'New entry note', 'gravityview' ),
428
-            'email-footer' => __( 'This note was sent from {url}', 'gravityview' ),
428
+			'email-footer' => __( 'This note was sent from {url}', 'gravityview' ),
429 429
 			'also-email' => __( 'Also email this note to', 'gravityview' ),
430 430
 			'error-add-note' => __( 'There was an error adding the note.', 'gravityview' ),
431 431
 			'error-invalid' => __( 'The request was invalid. Refresh the page and try again.', 'gravityview' ),
@@ -717,7 +717,7 @@  discard block
 block discarded – undo
717 717
 				'gv-note-to-custom' => '',
718 718
 				'gv-note-subject' => '',
719 719
 				'gv-note-content' => '',
720
-                'current-url' => '',
720
+				'current-url' => '',
721 721
 			);
722 722
 
723 723
 			$current_user  = wp_get_current_user();
@@ -769,9 +769,9 @@  discard block
 block discarded – undo
769 769
 			$message .= $this->get_email_footer( $email_footer, $is_html, $email_data );
770 770
 
771 771
 			/**
772
-             * @filter `gravityview/field/notes/wpautop_email` Should the message content have paragraphs added automatically, if using HTML message format
772
+			 * @filter `gravityview/field/notes/wpautop_email` Should the message content have paragraphs added automatically, if using HTML message format
773 773
 			 * @since 1.18
774
-             * @param bool $wpautop_email True: Apply wpautop() to the email message if using; False: Leave as entered (Default: true)
774
+			 * @param bool $wpautop_email True: Apply wpautop() to the email message if using; False: Leave as entered (Default: true)
775 775
 			 */
776 776
 			$wpautop_email = apply_filters( 'gravityview/field/notes/wpautop_email', true );
777 777
 
@@ -791,12 +791,12 @@  discard block
 block discarded – undo
791 791
 	}
792 792
 
793 793
 	/**
794
-     * Get the footer for Entry Note emails
795
-     *
796
-     * `{url}` is replaced by the URL of the page where the note form was embedded
797
-     *
798
-     * @since 1.18
799
-     * @see GravityView_Field_Notes::strings The default value of $message_footer is set here, with the key 'email-footer'
794
+	 * Get the footer for Entry Note emails
795
+	 *
796
+	 * `{url}` is replaced by the URL of the page where the note form was embedded
797
+	 *
798
+	 * @since 1.18
799
+	 * @see GravityView_Field_Notes::strings The default value of $message_footer is set here, with the key 'email-footer'
800 800
 	 *
801 801
 	 * @param string $email_footer The message footer value
802 802
 	 * @param bool $is_html True: Email is being sent as HTML; False: sent as text
@@ -805,10 +805,10 @@  discard block
 block discarded – undo
805 805
 	 */
806 806
 	private function get_email_footer( $email_footer = '', $is_html = true, $email_data = array() ) {
807 807
 
808
-	    $output = '';
808
+		$output = '';
809 809
 
810 810
 		if( ! empty( $email_footer ) ) {
811
-		    $url = rgar( $email_data, 'current-url' );
811
+			$url = rgar( $email_data, 'current-url' );
812 812
 			$url = html_entity_decode( $url );
813 813
 			$url = site_url( $url );
814 814
 
Please login to merge, or discard this patch.