Completed
Push — master ( 8a7f17...ef3c16 )
by Zack
26:51 queued 23:00
created
includes/fields/class-gravityview-field-post-title.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -25,13 +25,13 @@
 block discarded – undo
25 25
 
26 26
 	function field_options( $field_options, $template_id, $field_id, $context, $input_type ) {
27 27
 
28
-		if( 'edit' === $context ) {
28
+		if ( 'edit' === $context ) {
29 29
 			return $field_options;
30 30
 		}
31 31
 
32
-		$this->add_field_support('link_to_post', $field_options );
32
+		$this->add_field_support( 'link_to_post', $field_options );
33 33
 
34
-		$this->add_field_support('dynamic_data', $field_options );
34
+		$this->add_field_support( 'dynamic_data', $field_options );
35 35
 
36 36
 		return $field_options;
37 37
 	}
Please login to merge, or discard this patch.
includes/fields/class-gravityview-field-other-entries.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
 
24 24
 	public function __construct() {
25 25
 		$this->label = esc_html__( 'Other Entries', 'gravityview' );
26
-		$this->description = esc_html__('Display other entries created by the entry creator.', 'gravityview');
26
+		$this->description = esc_html__( 'Display other entries created by the entry creator.', 'gravityview' );
27 27
 		parent::__construct();
28 28
 	}
29 29
 
@@ -33,32 +33,32 @@  discard block
 block discarded – undo
33 33
 	 */
34 34
 	function field_options( $field_options, $template_id, $field_id, $context, $input_type ) {
35 35
 
36
-		if( 'edit' === $context ) {
36
+		if ( 'edit' === $context ) {
37 37
 			return $field_options;
38 38
 		}
39 39
 
40 40
 		// No "Link to single entry"; all the items will be links to entries!
41
-		unset( $field_options['show_as_link'] );
41
+		unset( $field_options[ 'show_as_link' ] );
42 42
 
43 43
 		$new_options = array();
44 44
 
45
-		$new_options['link_format'] = array(
45
+		$new_options[ 'link_format' ] = array(
46 46
 			'type'  => 'text',
47 47
 			'label' => __( 'Entry link text (required)', 'gravityview' ),
48
-			'value' => __('Entry #{entry_id}', 'gravityview'),
48
+			'value' => __( 'Entry #{entry_id}', 'gravityview' ),
49 49
 			'merge_tags' => 'force',
50 50
 		);
51 51
 
52
-		$new_options['after_link'] = array(
52
+		$new_options[ 'after_link' ] = array(
53 53
 			'type'  => 'textarea',
54 54
 			'label' => __( 'Text or HTML to display after the link (optional)', 'gravityview' ),
55
-			'desc'  => __('This content will be displayed below each entry link.', 'gravityview'),
55
+			'desc'  => __( 'This content will be displayed below each entry link.', 'gravityview' ),
56 56
 			'value' => '',
57 57
 			'merge_tags' => 'force',
58 58
 			'class' => 'widefat code',
59 59
 		);
60 60
 
61
-		$new_options['page_size'] = array(
61
+		$new_options[ 'page_size' ] = array(
62 62
 			'type'  => 'number',
63 63
 			'label' => __( 'Entries to Display', 'gravityview' ),
64 64
 			'desc'  => __( 'What is the maximum number of entries that should be shown?', 'gravityview' ),
@@ -66,14 +66,14 @@  discard block
 block discarded – undo
66 66
 			'merge_tags' => false,
67 67
 		);
68 68
 
69
-		$new_options['no_entries_hide'] = array(
69
+		$new_options[ 'no_entries_hide' ] = array(
70 70
 			'type'  => 'checkbox',
71 71
 			'label' => __( 'Hide if no entries', 'gravityview' ),
72 72
 			'desc'  => __( 'Don\'t display this field if the entry creator has no other entries', 'gravityview' ),
73 73
 			'value' => false,
74 74
 		);
75 75
 
76
-		$new_options['no_entries_text'] = array(
76
+		$new_options[ 'no_entries_text' ] = array(
77 77
 			'type'  => 'text',
78 78
 			'label' => __( 'No Entries Text', 'gravityview' ),
79 79
 			'desc'  => __( 'The text that is shown if the entry creator has no other entries (and "Hide if no entries" is disabled).', 'gravityview' ),
Please login to merge, or discard this patch.
includes/fields/class-gravityview-field-email.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -26,9 +26,9 @@
 block discarded – undo
26 26
 	function field_options( $field_options, $template_id = '', $field_id = '', $context = '', $input_type = '' ) {
27 27
 
28 28
 		// It makes no sense to use this as the link.
29
-		unset( $field_options['show_as_link'] );
29
+		unset( $field_options[ 'show_as_link' ] );
30 30
 
31
-		if( 'edit' === $context ) {
31
+		if ( 'edit' === $context ) {
32 32
 			return $field_options;
33 33
 		}
34 34
 
Please login to merge, or discard this patch.
includes/fields/class-gravityview-field-entry-link.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -30,25 +30,25 @@
 block discarded – undo
30 30
 
31 31
 	public function __construct() {
32 32
 		$this->label = esc_html__( 'Link to Entry', 'gravityview' );
33
-		$this->description = esc_html__('A dedicated link to the single entry with customizable text.', 'gravityview');
33
+		$this->description = esc_html__( 'A dedicated link to the single entry with customizable text.', 'gravityview' );
34 34
 		parent::__construct();
35 35
 	}
36 36
 
37 37
 	function field_options( $field_options, $template_id, $field_id, $context, $input_type ) {
38 38
 
39 39
 		// Always a link!
40
-		unset( $field_options['show_as_link'], $field_options['search_filter'] );
40
+		unset( $field_options[ 'show_as_link' ], $field_options[ 'search_filter' ] );
41 41
 
42
-		if( 'edit' === $context ) {
42
+		if ( 'edit' === $context ) {
43 43
 			return $field_options;
44 44
 		}
45 45
 
46 46
 		$add_options = array();
47
-		$add_options['entry_link_text'] = array(
47
+		$add_options[ 'entry_link_text' ] = array(
48 48
 			'type' => 'text',
49 49
 			'label' => __( 'Link Text:', 'gravityview' ),
50 50
 			'desc' => NULL,
51
-			'value' => __('View Details', 'gravityview'),
51
+			'value' => __( 'View Details', 'gravityview' ),
52 52
 			'merge_tags' => true,
53 53
 		);
54 54
 
Please login to merge, or discard this patch.
includes/fields/class-gravityview-field-payment-status.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
 	 */
24 24
 	public function __construct() {
25 25
 		$this->label = esc_html__( 'Payment Status', 'gravityview' );
26
-		$this->description = esc_html__('The current payment status of the entry (ie "Processing", "Failed", "Cancelled", "Approved").', 'gravityview' );
26
+		$this->description = esc_html__( 'The current payment status of the entry (ie "Processing", "Failed", "Cancelled", "Approved").', 'gravityview' );
27 27
 		parent::__construct();
28 28
 	}
29 29
 }
Please login to merge, or discard this patch.
includes/fields/class-gravityview-field-calculation.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -37,8 +37,8 @@
 block discarded – undo
37 37
 	public function blacklist_field_types( $field_types = array(), $context = '' ) {
38 38
 
39 39
 		// Allow Calculation field in Edit Entry
40
-		if( 'edit' !== $context ) {
41
-			$field_types[] = $this->name;
40
+		if ( 'edit' !== $context ) {
41
+			$field_types[ ] = $this->name;
42 42
 		}
43 43
 
44 44
 		return $field_types;
Please login to merge, or discard this patch.
includes/fields/class-gravityview-field-website.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -26,16 +26,16 @@  discard block
 block discarded – undo
26 26
 	function field_options( $field_options, $template_id = '', $field_id = '', $context = '', $input_type = '' ) {
27 27
 
28 28
 		// It makes no sense to use this as the link.
29
-		unset( $field_options['show_as_link'] );
29
+		unset( $field_options[ 'show_as_link' ] );
30 30
 
31
-		if( 'edit' === $context ) {
31
+		if ( 'edit' === $context ) {
32 32
 			return $field_options;
33 33
 		}
34 34
 
35 35
 		/**
36 36
 		 * @since 1.8
37 37
 		 */
38
-		$field_options['anchor_text'] = array(
38
+		$field_options[ 'anchor_text' ] = array(
39 39
 			'type' => 'text',
40 40
 			'label' => __( 'Link Text:', 'gravityview' ),
41 41
 			'desc' => __( 'Define custom link text. Leave blank to display the URL', 'gravityview' ),
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
 			'merge_tags' => 'force',
44 44
 		);
45 45
 
46
-		$field_options['truncatelink'] = array(
46
+		$field_options[ 'truncatelink' ] = array(
47 47
 			'type' => 'checkbox',
48 48
 			'value' => true,
49 49
 			'label' => __( 'Shorten Link Display', 'gravityview' ),
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
 			'desc' => __( 'Don’t show the full URL, only show the domain.', 'gravityview' )
52 52
 		);
53 53
 
54
-		$field_options['open_same_window'] = array(
54
+		$field_options[ 'open_same_window' ] = array(
55 55
 			'type' => 'checkbox',
56 56
 			'value' => false,
57 57
 			'label' => __( 'Open link in the same window?', 'gravityview' ),
Please login to merge, or discard this patch.
includes/fields/class-gravityview-field-gquiz_score.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
 
19 19
 	function field_options( $field_options, $template_id, $field_id, $context, $input_type ) {
20 20
 
21
-		if( 'edit' === $context ) {
21
+		if ( 'edit' === $context ) {
22 22
 			return $field_options;
23 23
 		}
24 24
 
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
 			'quiz_use_max_score' => array(
27 27
 				'type' => 'checkbox',
28 28
 				'label' => __( 'Show Max Score?', 'gravityview' ),
29
-				'desc' => __('Display score as the a fraction: "[score]/[max score]". If unchecked, will display score.', 'gravityview'),
29
+				'desc' => __( 'Display score as the a fraction: "[score]/[max score]". If unchecked, will display score.', 'gravityview' ),
30 30
 				'value' => true,
31 31
 				'merge_tags' => false,
32 32
 			),
Please login to merge, or discard this patch.
includes/fields/class-gravityview-field-section.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -41,10 +41,10 @@
 block discarded – undo
41 41
 
42 42
 	function field_options( $field_options, $template_id, $field_id, $context, $input_type ) {
43 43
 
44
-		unset ( $field_options['search_filter'], $field_options['show_as_link'] );
44
+		unset ( $field_options[ 'search_filter' ], $field_options[ 'show_as_link' ] );
45 45
 
46 46
 		// Set the default CSS class to gv-section, which applies a border and top/bottom margin
47
-		$field_options['custom_class']['value'] = 'gv-section';
47
+		$field_options[ 'custom_class' ][ 'value' ] = 'gv-section';
48 48
 
49 49
 		return $field_options;
50 50
 	}
Please login to merge, or discard this patch.