Completed
Push — develop ( 8c385e...3fb87e )
by Zack
08:06
created
includes/fields/class-gravityview-field-quiz.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
 	public function field_options( $field_options, $template_id, $field_id, $context, $input_type, $form_id ) {
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_show_explanation' => array(
27 27
 				'type' => 'checkbox',
28 28
 				'label' => __( 'Show Answer Explanation?', 'gravityview' ),
29
-				'desc' => __('If the field has an answer explanation, show it?', 'gravityview'),
29
+				'desc' => __( 'If the field has an answer explanation, show it?', 'gravityview' ),
30 30
 				'value' => false,
31 31
 				'merge_tags' => false,
32 32
 			),
Please login to merge, or discard this patch.
includes/fields/class-gravityview-field-pipe_recorder.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -22,13 +22,13 @@
 block discarded – undo
22 22
 
23 23
 	public function field_options( $field_options, $template_id, $field_id, $context, $input_type, $form_id ) {
24 24
 
25
-		unset( $field_options['search_filter'] );
25
+		unset( $field_options[ 'search_filter' ] );
26 26
 
27 27
 		if ( 'edit' === $context ) {
28 28
 			return $field_options;
29 29
 		}
30 30
 
31
-		$add_options['embed'] = array(
31
+		$add_options[ 'embed' ] = array(
32 32
 			'type' => 'checkbox',
33 33
 			'label' => __( 'Display as embedded', 'gravityview' ),
34 34
 			'desc' => __( 'Display the video in a player, rather than a direct link to the video.', 'gravityview' ),
Please login to merge, or discard this patch.
includes/fields/class-gravityview-field-number.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -31,17 +31,17 @@
 block discarded – undo
31 31
 
32 32
 	public function field_options( $field_options, $template_id, $field_id, $context, $input_type, $form_id ) {
33 33
 
34
-		$field_options['number_format'] = array(
34
+		$field_options[ 'number_format' ] = array(
35 35
 			'type' => 'checkbox',
36 36
 			'label' => __( 'Format number?', 'gravityview' ),
37
-			'desc' => __('Display numbers with thousands separators.', 'gravityview'),
37
+			'desc' => __( 'Display numbers with thousands separators.', 'gravityview' ),
38 38
 			'value' => false,
39 39
 		);
40 40
 
41
-		$field_options['decimals'] = array(
41
+		$field_options[ 'decimals' ] = array(
42 42
 			'type' => 'number',
43 43
 			'label' => __( 'Decimals', 'gravityview' ),
44
-			'desc' => __('Precision of the number of decimal places. Leave blank to use existing precision.', 'gravityview'),
44
+			'desc' => __( 'Precision of the number of decimal places. Leave blank to use existing precision.', 'gravityview' ),
45 45
 			'value' => '',
46 46
 			'merge_tags' => false,
47 47
 		);
Please login to merge, or discard this patch.
includes/fields/class-gravityview-field-html.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
 
28 28
 	public function field_options( $field_options, $template_id, $field_id, $context, $input_type, $form_id ) {
29 29
 
30
-		unset ( $field_options['search_filter'], $field_options['show_as_link'] );
30
+		unset ( $field_options[ 'search_filter' ], $field_options[ 'show_as_link' ] );
31 31
 
32 32
 		return $field_options;
33 33
 	}
Please login to merge, or discard this patch.
includes/fields/class-gravityview-field-post-id.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
 
32 32
 	public function field_options( $field_options, $template_id, $field_id, $context, $input_type, $form_id ) {
33 33
 
34
-		$this->add_field_support('link_to_post', $field_options );
34
+		$this->add_field_support( 'link_to_post', $field_options );
35 35
 
36 36
 		return $field_options;
37 37
 	}
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
@@ -28,9 +28,9 @@
 block discarded – undo
28 28
 	public function field_options( $field_options, $template_id, $field_id, $context, $input_type, $form_id ) {
29 29
 
30 30
 		// It makes no sense to use this as the link.
31
-		unset( $field_options['show_as_link'] );
31
+		unset( $field_options[ 'show_as_link' ] );
32 32
 
33
-		if( 'edit' === $context ) {
33
+		if ( 'edit' === $context ) {
34 34
 			return $field_options;
35 35
 		}
36 36
 
Please login to merge, or discard this patch.
includes/fields/class-gravityview-field-survey.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
 
23 23
 	public function field_options( $field_options, $template_id, $field_id, $context, $input_type, $form_id ) {
24 24
 
25
-		unset( $field_options['search_filter'] );
25
+		unset( $field_options[ 'search_filter' ] );
26 26
 
27 27
 		if ( 'edit' === $context ) {
28 28
 			return $field_options;
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
 		$add_options = array();
34 34
 
35 35
 		if ( $field->field->inputType === 'likert' && $field->field->gsurveyLikertEnableScoring ) {
36
-			$add_options['score'] = array(
36
+			$add_options[ 'score' ] = array(
37 37
 				'type' => 'checkbox',
38 38
 				'label' => __( 'Show score', 'gravityview' ),
39 39
 				'desc' => __( 'Display likert score as a simple number.', 'gravityview' ),
Please login to merge, or discard this patch.
fields/class-gravityview-field-workflow_current_status_timestamp.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
 	 * @return string If Gravity Flow not found, or entry not processed yet, returns initial value. Otherwise, returns name of workflow step.
42 42
 	 */
43 43
 	function modify_entry_value_workflow_current_status_timestamp( $output, $entry, $field_settings, $field ) {
44
-		$timestamp = gform_get_meta( $entry['id'], 'workflow_current_status_timestamp' );
44
+		$timestamp = gform_get_meta( $entry[ 'id' ], 'workflow_current_status_timestamp' );
45 45
 
46 46
 		if ( ! $timestamp ) {
47 47
 			return $timestamp;
Please login to merge, or discard this patch.
plugin-and-theme-hooks/class-gravityview-plugin-hooks-gravity-flow.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
 
34 34
 		parent::add_hooks();
35 35
 
36
-		add_filter( 'gravityview/search/searchable_fields', array( $this, 'modify_search_bar_fields_dropdown'), 10, 2 );
36
+		add_filter( 'gravityview/search/searchable_fields', array( $this, 'modify_search_bar_fields_dropdown' ), 10, 2 );
37 37
 
38 38
 		add_filter( 'gravityview/admin/available_fields', array( $this, 'maybe_add_non_default_fields' ), 10, 3 );
39 39
 
@@ -55,13 +55,13 @@  discard block
 block discarded – undo
55 55
 	 */
56 56
 	public static function get_status_options( $form_id = 0, $status_key = 'workflow_final_status' ) {
57 57
 
58
-		if( empty( $form_id ) ) {
58
+		if ( empty( $form_id ) ) {
59 59
 			$form_id = GravityView_View::getInstance()->getFormId();
60 60
 		}
61 61
 
62 62
 		$entry_meta = gravity_flow()->get_entry_meta( array(), $form_id );
63 63
 
64
-		return (array) \GV\Utils::get( $entry_meta, $status_key . '/filter/choices' );
64
+		return (array)\GV\Utils::get( $entry_meta, $status_key . '/filter/choices' );
65 65
 	}
66 66
 
67 67
 
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
 
84 84
 		$workflow_steps = $GFlow->get_steps();
85 85
 
86
-		if( $workflow_steps ) {
86
+		if ( $workflow_steps ) {
87 87
 
88 88
 			foreach ( $workflow_steps as $step ) {
89 89
 
@@ -95,12 +95,12 @@  discard block
 block discarded – undo
95 95
 				);
96 96
 			}
97 97
 
98
-			$fields['workflow_step'] = array(
98
+			$fields[ 'workflow_step' ] = array(
99 99
 				'label' => esc_html__( 'Workflow Step', 'gravityview' ),
100 100
 				'type'  => 'select',
101 101
 			);
102 102
 
103
-			$fields['workflow_final_status'] = array(
103
+			$fields[ 'workflow_final_status' ] = array(
104 104
 				'label' => esc_html__( 'Workflow Status', 'gravityview' ),
105 105
 				'type'  => 'select',
106 106
 			);
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
 		if ( ( $insert_at = array_search( 'workflow_final_status', wp_list_pluck( $fields, 'key' ) ) ) !== false ) {
117 117
 			$fields_end = array_splice( $fields, $insert_at + 1 );
118 118
 
119
-			$fields[] = array(
119
+			$fields[ ] = array(
120 120
 				'text' => __( 'Workflow Current Status Timestamp', 'gravityview' ),
121 121
 				'operators' => array( '>', '<' ),
122 122
 				'placeholder' => 'yyyy-mm-dd',
@@ -142,8 +142,8 @@  discard block
 block discarded – undo
142 142
 				$keys_end = array_splice( $keys, $insert_at + 1 );
143 143
 				$values_end = array_splice( $values, $insert_at + 1 );
144 144
 
145
-				$keys[] = 'workflow_current_status_timestamp';
146
-				$values[] = array(
145
+				$keys[ ] = 'workflow_current_status_timestamp';
146
+				$values[ ] = array(
147 147
 					'label' => __( 'Workflow Current Status Timestamp', 'gravityview' ),
148 148
 					'type' => 'workflow_current_status_timestamp',
149 149
 				);
Please login to merge, or discard this patch.