Completed
Pull Request — develop (#1716)
by Zack
18:40
created
includes/fields/class-gravityview-field-is-read.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
42 42
 	}
43 43
 
44 44
 	private function add_hooks() {
45
-	    /** @see \GV\Field::get_value_filters */
45
+		/** @see \GV\Field::get_value_filters */
46 46
 		add_filter( "gravityview/field/{$this->name}/value", array( $this, 'get_value' ), 10, 6 );
47 47
 	}
48 48
 
Please login to merge, or discard this patch.
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -48,18 +48,18 @@  discard block
 block discarded – undo
48 48
 
49 49
 	public function field_options( $field_options, $template_id, $field_id, $context, $input_type, $form_id ) {
50 50
 
51
-		$field_options['is_read_label'] = array(
51
+		$field_options[ 'is_read_label' ] = array(
52 52
 			'type' => 'text',
53 53
 			'label' => __( 'Read Label', 'gravityview' ),
54 54
 			'desc' => __( 'If the entry has been read, display this value', 'gravityview' ),
55
-			'placeholder' => __('Read', 'gravityview' ),
55
+			'placeholder' => __( 'Read', 'gravityview' ),
56 56
 		);
57 57
 
58
-		$field_options['is_unread_label'] = array(
58
+		$field_options[ 'is_unread_label' ] = array(
59 59
 			'type' => 'text',
60 60
 			'label' => __( 'Unread Label', 'gravityview' ),
61 61
 			'desc' => __( 'If the entry has not been read, display this value', 'gravityview' ),
62
-			'placeholder' => __('Unread', 'gravityview' ),
62
+			'placeholder' => __( 'Unread', 'gravityview' ),
63 63
 		);
64 64
 
65 65
 		return $field_options;
@@ -82,10 +82,10 @@  discard block
 block discarded – undo
82 82
 	public function get_value( $value, $field, $view, $source, $entry, $request ) {
83 83
 
84 84
 		if ( empty( $value ) ) {
85
-			return \GV\Utils::get( $field, 'is_unread_label', esc_html__( 'Unread', 'gravityview') );
85
+			return \GV\Utils::get( $field, 'is_unread_label', esc_html__( 'Unread', 'gravityview' ) );
86 86
 		}
87 87
 
88
-		return \GV\Utils::get( $field, 'is_read_label', esc_html__( 'Read', 'gravityview') );
88
+		return \GV\Utils::get( $field, 'is_read_label', esc_html__( 'Read', 'gravityview' ) );
89 89
 	}
90 90
 
91 91
 
Please login to merge, or discard this patch.