Completed
Pull Request — master (#605)
by Zack
05:45
created
includes/fields/class-gravityview-field-post-id.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -11,19 +11,19 @@
 block discarded – undo
11 11
 
12 12
 	var $label = 'Post ID';
13 13
 
14
-	var $search_operators = array( 'is', 'isnot', 'greater_than', 'less_than' );
14
+	var $search_operators = array('is', 'isnot', 'greater_than', 'less_than');
15 15
 
16 16
 	/**
17 17
 	 * GravityView_Field_Post_ID constructor.
18 18
 	 */
19 19
 	public function __construct() {
20
-		$this->label = __( 'Post ID', 'gravityview' );
20
+		$this->label = __('Post ID', 'gravityview');
21 21
 		parent::__construct();
22 22
 	}
23 23
 
24
-	function field_options( $field_options, $template_id, $field_id, $context, $input_type ) {
24
+	function field_options($field_options, $template_id, $field_id, $context, $input_type) {
25 25
 
26
-		$this->add_field_support('link_to_post', $field_options );
26
+		$this->add_field_support('link_to_post', $field_options);
27 27
 
28 28
 		return $field_options;
29 29
 	}
Please login to merge, or discard this patch.
includes/fields/class-gravityview-field-source-url.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -7,35 +7,35 @@
 block discarded – undo
7 7
 
8 8
 	var $name = 'source_url';
9 9
 
10
-	var $search_operators = array( 'is', 'isnot', 'contains', 'starts_with', 'ends_with' );
10
+	var $search_operators = array('is', 'isnot', 'contains', 'starts_with', 'ends_with');
11 11
 
12 12
 	var $label = 'Source URL';
13 13
 
14 14
 	public function __construct() {
15
-		$this->label = esc_attr__( 'Source URL', 'gravityview' );
15
+		$this->label = esc_attr__('Source URL', 'gravityview');
16 16
 		parent::__construct();
17 17
 	}
18 18
 
19
-	function field_options( $field_options, $template_id, $field_id, $context, $input_type ) {
19
+	function field_options($field_options, $template_id, $field_id, $context, $input_type) {
20 20
 
21 21
 		// Don't link to entry; doesn't make sense.
22
-		unset( $field_options['show_as_link'] );
22
+		unset($field_options['show_as_link']);
23 23
 
24
-		if( 'edit' === $context ) {
24
+		if ('edit' === $context) {
25 25
 			return $field_options;
26 26
 		}
27 27
 
28 28
 		$add_options = array();
29 29
 		$add_options['link_to_source'] = array(
30 30
 			'type' => 'checkbox',
31
-			'label' => __( 'Link to URL:', 'gravityview' ),
31
+			'label' => __('Link to URL:', 'gravityview'),
32 32
 			'desc' => __('Display as a link to the Source URL', 'gravityview'),
33 33
 			'value' => false,
34 34
 			'merge_tags' => false,
35 35
 		);
36 36
 		$add_options['source_link_text'] = array(
37 37
 			'type' => 'text',
38
-			'label' => __( 'Link Text:', 'gravityview' ),
38
+			'label' => __('Link Text:', 'gravityview'),
39 39
 			'desc' => __('Customize the link text. If empty, the link text will be the the URL.', 'gravityview'),
40 40
 			'value' => NULL,
41 41
 			'merge_tags' => true,
Please login to merge, or discard this patch.
includes/fields/class-gravityview-field-textarea.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -7,15 +7,15 @@  discard block
 block discarded – undo
7 7
 
8 8
 	var $name = 'textarea';
9 9
 
10
-	var $search_operators = array( 'is', 'isnot', 'contains', 'starts_with', 'ends_with' );
10
+	var $search_operators = array('is', 'isnot', 'contains', 'starts_with', 'ends_with');
11 11
 
12 12
 	var $_gf_field_class_name = 'GF_Field_Textarea';
13 13
 
14 14
 	var $group = 'standard';
15 15
 
16
-	function field_options( $field_options, $template_id = '', $field_id = '', $context = '', $input_type = '' ) {
16
+	function field_options($field_options, $template_id = '', $field_id = '', $context = '', $input_type = '') {
17 17
 
18
-		if( 'edit' === $context ) {
18
+		if ('edit' === $context) {
19 19
 			return $field_options;
20 20
 		}
21 21
 
@@ -23,16 +23,16 @@  discard block
 block discarded – undo
23 23
 			'type' => 'number',
24 24
 			'merge_tags' => false,
25 25
 			'value' => null,
26
-			'label' => __( 'Maximum words shown', 'gravityview' ),
27
-			'tooltip' => __( 'Enter the number of words to be shown. If specified it truncates the text. Leave it blank if you want to show the full text.', 'gravityview' ),
26
+			'label' => __('Maximum words shown', 'gravityview'),
27
+			'tooltip' => __('Enter the number of words to be shown. If specified it truncates the text. Leave it blank if you want to show the full text.', 'gravityview'),
28 28
 		);
29 29
 
30 30
         $field_options['make_clickable'] = array(
31 31
             'type' => 'checkbox',
32 32
             'merge_tags' => false,
33 33
             'value' => 0,
34
-            'label' => __( 'Convert text URLs to HTML links', 'gravityview' ),
35
-            'tooltip' => __( 'Converts URI, www, FTP, and email addresses in HTML links', 'gravityview' ),
34
+            'label' => __('Convert text URLs to HTML links', 'gravityview'),
35
+            'tooltip' => __('Converts URI, www, FTP, and email addresses in HTML links', 'gravityview'),
36 36
         );
37 37
 
38 38
 		return $field_options;
Please login to merge, or discard this patch.
includes/fields/class-gravityview-field-fileupload.php 1 patch
Spacing   +34 added lines, -34 removed lines patch added patch discarded remove patch
@@ -11,17 +11,17 @@  discard block
 block discarded – undo
11 11
 
12 12
 	var $name = 'fileupload';
13 13
 
14
-	function field_options( $field_options, $template_id, $field_id, $context, $input_type ) {
14
+	function field_options($field_options, $template_id, $field_id, $context, $input_type) {
15 15
 
16
-		unset( $field_options['search_filter'] );
16
+		unset($field_options['search_filter']);
17 17
 
18
-		if( 'edit' === $context ) {
18
+		if ('edit' === $context) {
19 19
 			return $field_options;
20 20
 		}
21 21
 
22 22
 		$add_options['link_to_file'] = array(
23 23
 			'type' => 'checkbox',
24
-			'label' => __( 'Display as a Link:', 'gravityview' ),
24
+			'label' => __('Display as a Link:', 'gravityview'),
25 25
 			'desc' => __('Display the uploaded files as links, rather than embedded content.', 'gravityview'),
26 26
 			'value' => false,
27 27
 			'merge_tags' => false,
@@ -43,28 +43,28 @@  discard block
 block discarded – undo
43 43
 	 * @param  string $gv_class Field class to add to the output HTML
44 44
 	 * @return array           Array of file output, with `file_path` and `html` keys (see comments above)
45 45
 	 */
46
-	static function get_files_array( $value, $gv_class ) {
46
+	static function get_files_array($value, $gv_class) {
47 47
 
48 48
 		$gravityview_view = GravityView_View::getInstance();
49 49
 
50
-		extract( $gravityview_view->getCurrentField() );
50
+		extract($gravityview_view->getCurrentField());
51 51
 
52 52
 		$output_arr = array();
53 53
 
54 54
 		// Get an array of file paths for the field.
55
-		$file_paths = rgar( $field , 'multipleFiles' ) ? json_decode( $value ) : array( $value );
55
+		$file_paths = rgar($field, 'multipleFiles') ? json_decode($value) : array($value);
56 56
 
57 57
 		// Process each file path
58
-		foreach( $file_paths as $file_path ) {
58
+		foreach ($file_paths as $file_path) {
59 59
 
60 60
 			// If the site is HTTPS, use HTTPS
61
-			if(function_exists('set_url_scheme')) { $file_path = set_url_scheme($file_path); }
61
+			if (function_exists('set_url_scheme')) { $file_path = set_url_scheme($file_path); }
62 62
 
63 63
 			// This is from Gravity Forms's code
64 64
 			$file_path = esc_attr(str_replace(" ", "%20", $file_path));
65 65
 
66 66
 			// If the field is set to link to the single entry, link to it.
67
-			$link = !empty( $field_settings['show_as_link'] ) ? GravityView_API::entry_link( $entry, $field ) : $file_path;
67
+			$link = !empty($field_settings['show_as_link']) ? GravityView_API::entry_link($entry, $field) : $file_path;
68 68
 
69 69
 			// Get file path information
70 70
 			$file_path_info = pathinfo($file_path);
@@ -86,20 +86,20 @@  discard block
 block discarded – undo
86 86
 			$content = $image->html();
87 87
 
88 88
 			// The new default content is the image, if it exists. If not, use the file name as the content.
89
-			$content = !empty( $content ) ? $content : $file_path_info['basename'];
89
+			$content = !empty($content) ? $content : $file_path_info['basename'];
90 90
 
91 91
 			// If pathinfo() gave us the extension of the file, run the switch statement using that.
92
-			$extension = empty( $file_path_info['extension'] ) ? NULL : strtolower( $file_path_info['extension'] );
92
+			$extension = empty($file_path_info['extension']) ? NULL : strtolower($file_path_info['extension']);
93 93
 
94 94
 
95
-			switch( true ) {
95
+			switch (true) {
96 96
 
97 97
 				// Audio file
98
-				case in_array( $extension, wp_get_audio_extensions() ):
98
+				case in_array($extension, wp_get_audio_extensions()):
99 99
 
100 100
 					$disable_lightbox = true;
101 101
 
102
-					if( shortcode_exists( 'audio' ) ) {
102
+					if (shortcode_exists('audio')) {
103 103
 
104 104
 						$disable_wrapped_link = true;
105 105
 
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
 						 * @since  1.2
109 109
 						 * @param array $audio_settings Array with `src` and `class` keys
110 110
 						 */
111
-						$audio_settings = apply_filters( 'gravityview_audio_settings', array(
111
+						$audio_settings = apply_filters('gravityview_audio_settings', array(
112 112
 							'src' => $file_path,
113 113
 							'class' => 'wp-audio-shortcode gv-audio gv-field-id-'.$field_settings['id']
114 114
 						));
@@ -118,18 +118,18 @@  discard block
 block discarded – undo
118 118
 						 * @see http://codex.wordpress.org/Audio_Shortcode
119 119
 						 * @see https://developer.wordpress.org/reference/functions/wp_audio_shortcode/
120 120
 						 */
121
-						$content = wp_audio_shortcode( $audio_settings );
121
+						$content = wp_audio_shortcode($audio_settings);
122 122
 
123 123
 					}
124 124
 
125 125
 					break;
126 126
 
127 127
 				// Video file
128
-				case in_array( $extension, wp_get_video_extensions() ):
128
+				case in_array($extension, wp_get_video_extensions()):
129 129
 
130 130
 					$disable_lightbox = true;
131 131
 
132
-					if( shortcode_exists( 'video' ) ) {
132
+					if (shortcode_exists('video')) {
133 133
 
134 134
 						$disable_wrapped_link = true;
135 135
 
@@ -138,7 +138,7 @@  discard block
 block discarded – undo
138 138
 						 * @since  1.2
139 139
 						 * @param array $video_settings Array with `src` and `class` keys
140 140
 						 */
141
-						$video_settings = apply_filters( 'gravityview_video_settings', array(
141
+						$video_settings = apply_filters('gravityview_video_settings', array(
142 142
 							'src' => $file_path,
143 143
 							'class' => 'wp-video-shortcode gv-video gv-field-id-'.$field_settings['id']
144 144
 						));
@@ -148,7 +148,7 @@  discard block
 block discarded – undo
148 148
 						 * @see http://codex.wordpress.org/Video_Shortcode
149 149
 						 * @see https://developer.wordpress.org/reference/functions/wp_video_shortcode/
150 150
 						 */
151
-						$content = wp_video_shortcode( $video_settings );
151
+						$content = wp_video_shortcode($video_settings);
152 152
 
153 153
 					}
154 154
 
@@ -158,12 +158,12 @@  discard block
 block discarded – undo
158 158
 				case $extension === 'pdf':
159 159
 
160 160
 					// PDF needs to be displayed in an IFRAME
161
-					$link = add_query_arg( array( 'TB_iframe' => 'true' ), $link );
161
+					$link = add_query_arg(array('TB_iframe' => 'true'), $link);
162 162
 
163 163
 					break;
164 164
 
165 165
 				// if not image, do not set the lightbox (@since 1.5.3)
166
-				case !in_array( $extension, array( 'jpg', 'jpeg', 'jpe', 'gif', 'png' ) ):
166
+				case !in_array($extension, array('jpg', 'jpeg', 'jpe', 'gif', 'png')):
167 167
 
168 168
 					$disable_lightbox = true;
169 169
 
@@ -173,10 +173,10 @@  discard block
 block discarded – undo
173 173
 
174 174
 			// If using Link to File, override the content.
175 175
 			// (We do this here so that the $disable_lightbox can be set. Yes, there's a little more processing time, but oh well.)
176
-			if( !empty( $field_settings['link_to_file'] ) ) {
176
+			if (!empty($field_settings['link_to_file'])) {
177 177
 
178 178
 				// Force the content to be the file name
179
-				$content =  $file_path_info["basename"];
179
+				$content = $file_path_info["basename"];
180 180
 
181 181
 				// Restore the wrapped link
182 182
 				$disable_wrapped_link = false;
@@ -184,14 +184,14 @@  discard block
 block discarded – undo
184 184
 			}
185 185
 
186 186
 			// Whether to use lightbox or not
187
-			if( $disable_lightbox || empty( $gravityview_view->atts['lightbox'] ) || !empty( $field_settings['show_as_link'] ) ) {
187
+			if ($disable_lightbox || empty($gravityview_view->atts['lightbox']) || !empty($field_settings['show_as_link'])) {
188 188
 
189
-				$link_atts = empty( $field_settings['show_as_link'] ) ? array( 'target' => '_blank' ) : array();
189
+				$link_atts = empty($field_settings['show_as_link']) ? array('target' => '_blank') : array();
190 190
 
191 191
 			} else {
192 192
 
193 193
 				$link_atts = array(
194
-					'rel' => sprintf( "%s-%s", $gv_class, $entry['id'] ),
194
+					'rel' => sprintf("%s-%s", $gv_class, $entry['id']),
195 195
 					'target' => '_blank',
196 196
 					'class' => 'thickbox',
197 197
 				);
@@ -203,7 +203,7 @@  discard block
 block discarded – undo
203 203
 			 * @param array|string $link_atts Array or attributes string
204 204
 			 * @param array $field Current GravityView field array
205 205
 			 */
206
-			$link_atts = apply_filters( 'gravityview/fields/fileupload/link_atts', $link_atts, $gravityview_view->getCurrentField() );
206
+			$link_atts = apply_filters('gravityview/fields/fileupload/link_atts', $link_atts, $gravityview_view->getCurrentField());
207 207
 
208 208
 			/**
209 209
 			 * @filter `gravityview/fields/fileupload/disable_link` Filter to alter the default behaviour of wrapping images (or image names) with a link to the content object
@@ -212,10 +212,10 @@  discard block
 block discarded – undo
212 212
 			 * @param array $gravityview_view->field_data
213 213
 			 * @see GravityView_API:field_value() for info about $gravityview_view->field_data
214 214
 			 */
215
-			$disable_wrapped_link = apply_filters( 'gravityview/fields/fileupload/disable_link', $disable_wrapped_link, $gravityview_view->getCurrentField() );
215
+			$disable_wrapped_link = apply_filters('gravityview/fields/fileupload/disable_link', $disable_wrapped_link, $gravityview_view->getCurrentField());
216 216
 
217 217
 			// If the HTML output hasn't been overridden by the switch statement above, use the default format
218
-			if( !empty( $content ) && empty( $disable_wrapped_link ) ) {
218
+			if (!empty($content) && empty($disable_wrapped_link)) {
219 219
 
220 220
 				/**
221 221
 				 * Modify the link text (defaults to the file name)
@@ -225,9 +225,9 @@  discard block
 block discarded – undo
225 225
 				 * @param string $content The existing anchor content. Could be `<img>` tag, audio/video embed or the file name
226 226
 				 * @param array $field GravityView array of the current field being processed
227 227
 				 */
228
-				$content = apply_filters( 'gravityview/fields/fileupload/link_content', $content, $gravityview_view->getCurrentField() );
228
+				$content = apply_filters('gravityview/fields/fileupload/link_content', $content, $gravityview_view->getCurrentField());
229 229
 
230
-                $content = gravityview_get_link( $link, $content, $link_atts );
230
+                $content = gravityview_get_link($link, $content, $link_atts);
231 231
 			}
232 232
 
233 233
 			$output_arr[] = array(
@@ -245,7 +245,7 @@  discard block
 block discarded – undo
245 245
 		 *  @type string $content The generated output for the file \n
246 246
 		 * @param array $field GravityView array of the current field being processed
247 247
 		 */
248
-		$output_arr = apply_filters( 'gravityview/fields/fileupload/files_array', $output_arr, $gravityview_view->getCurrentField() );
248
+		$output_arr = apply_filters('gravityview/fields/fileupload/files_array', $output_arr, $gravityview_view->getCurrentField());
249 249
 
250 250
 		return $output_arr;
251 251
 	}
Please login to merge, or discard this patch.
includes/fields/class-gravityview-field-post-image.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -7,18 +7,18 @@
 block discarded – undo
7 7
 
8 8
 	var $name = 'post_image';
9 9
 
10
-	function field_options( $field_options, $template_id, $field_id, $context, $input_type ) {
10
+	function field_options($field_options, $template_id, $field_id, $context, $input_type) {
11 11
 
12
-		unset ( $field_options['search_filter'] );
12
+		unset ($field_options['search_filter']);
13 13
 
14
-		if( 'edit' === $context ) {
14
+		if ('edit' === $context) {
15 15
 			return $field_options;
16 16
 		}
17 17
 
18
-		$this->add_field_support('link_to_post', $field_options );
18
+		$this->add_field_support('link_to_post', $field_options);
19 19
 
20 20
 		// @since 1.5.4
21
-		$this->add_field_support('dynamic_data', $field_options );
21
+		$this->add_field_support('dynamic_data', $field_options);
22 22
 
23 23
 		return $field_options;
24 24
 	}
Please login to merge, or discard this patch.
includes/fields/class-gravityview-field-post-title.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -7,21 +7,21 @@
 block discarded – undo
7 7
 
8 8
 	var $name = 'post_title';
9 9
 
10
-	var $search_operators = array( 'is', 'isnot', 'contains', 'starts_with', 'ends_with' );
10
+	var $search_operators = array('is', 'isnot', 'contains', 'starts_with', 'ends_with');
11 11
 
12 12
 	var $_gf_field_class_name = 'GF_Field_Post_Title';
13 13
 
14 14
 	var $group = 'post';
15 15
 
16
-	function field_options( $field_options, $template_id, $field_id, $context, $input_type ) {
16
+	function field_options($field_options, $template_id, $field_id, $context, $input_type) {
17 17
 
18
-		if( 'edit' === $context ) {
18
+		if ('edit' === $context) {
19 19
 			return $field_options;
20 20
 		}
21 21
 
22
-		$this->add_field_support('link_to_post', $field_options );
22
+		$this->add_field_support('link_to_post', $field_options);
23 23
 
24
-		$this->add_field_support('dynamic_data', $field_options );
24
+		$this->add_field_support('dynamic_data', $field_options);
25 25
 
26 26
 		return $field_options;
27 27
 	}
Please login to merge, or discard this patch.
includes/fields/class-gravityview-field-website.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -7,18 +7,18 @@  discard block
 block discarded – undo
7 7
 
8 8
 	var $name = 'website';
9 9
 
10
-	var $search_operators = array( 'is', 'isnot', 'contains', 'starts_with', 'ends_with' );
10
+	var $search_operators = array('is', 'isnot', 'contains', 'starts_with', 'ends_with');
11 11
 
12 12
 	var $_gf_field_class_name = 'GF_Field_Website';
13 13
 
14 14
 	var $group = 'advanced';
15 15
 
16
-	function field_options( $field_options, $template_id = '', $field_id = '', $context = '', $input_type = '' ) {
16
+	function field_options($field_options, $template_id = '', $field_id = '', $context = '', $input_type = '') {
17 17
 
18 18
 		// It makes no sense to use this as the link.
19
-		unset( $field_options['show_as_link'] );
19
+		unset($field_options['show_as_link']);
20 20
 
21
-		if( 'edit' === $context ) {
21
+		if ('edit' === $context) {
22 22
 			return $field_options;
23 23
 		}
24 24
 
@@ -27,8 +27,8 @@  discard block
 block discarded – undo
27 27
 		 */
28 28
 		$field_options['anchor_text'] = array(
29 29
 			'type' => 'text',
30
-			'label' => __( 'Link Text:', 'gravityview' ),
31
-			'desc' => __( 'Define custom link text. Leave blank to display the URL', 'gravityview' ),
30
+			'label' => __('Link Text:', 'gravityview'),
31
+			'desc' => __('Define custom link text. Leave blank to display the URL', 'gravityview'),
32 32
 			'value' => '',
33 33
 			'merge_tags' => 'force',
34 34
 		);
@@ -36,15 +36,15 @@  discard block
 block discarded – undo
36 36
 		$field_options['truncatelink'] = array(
37 37
 			'type' => 'checkbox',
38 38
 			'value' => true,
39
-			'label' => __( 'Shorten Link Display', 'gravityview' ),
40
-			'tooltip' => __( 'Only show the domain for a URL instead of the whole link.', 'gravityview' ),
41
-			'desc' => __( 'Don&rsquo;t show the full URL, only show the domain.', 'gravityview' )
39
+			'label' => __('Shorten Link Display', 'gravityview'),
40
+			'tooltip' => __('Only show the domain for a URL instead of the whole link.', 'gravityview'),
41
+			'desc' => __('Don&rsquo;t show the full URL, only show the domain.', 'gravityview')
42 42
 		);
43 43
 
44 44
 		$field_options['open_same_window'] = array(
45 45
 			'type' => 'checkbox',
46 46
 			'value' => false,
47
-			'label' => __( 'Open link in the same window?', 'gravityview' ),
47
+			'label' => __('Open link in the same window?', 'gravityview'),
48 48
 		);
49 49
 
50 50
 		return $field_options;
Please login to merge, or discard this patch.
includes/fields/class-gravityview-field-post-content.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -7,21 +7,21 @@
 block discarded – undo
7 7
 
8 8
 	var $name = 'post_content';
9 9
 
10
-	var $search_operators = array( 'is', 'isnot', 'contains', 'starts_with', 'ends_with' );
10
+	var $search_operators = array('is', 'isnot', 'contains', 'starts_with', 'ends_with');
11 11
 
12 12
 	var $_gf_field_class_name = 'GF_Field_Post_Content';
13 13
 
14 14
 	var $group = 'post';
15 15
 
16
-	function field_options( $field_options, $template_id, $field_id, $context, $input_type ) {
16
+	function field_options($field_options, $template_id, $field_id, $context, $input_type) {
17 17
 
18
-		unset( $field_options['show_as_link'] );
18
+		unset($field_options['show_as_link']);
19 19
 
20
-		if( 'edit' === $context ) {
20
+		if ('edit' === $context) {
21 21
 			return $field_options;
22 22
 		}
23 23
 
24
-		$this->add_field_support('dynamic_data', $field_options );
24
+		$this->add_field_support('dynamic_data', $field_options);
25 25
 
26 26
 		return $field_options;
27 27
 	}
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
@@ -9,24 +9,24 @@
 block discarded – undo
9 9
 
10 10
 	var $name = 'number';
11 11
 
12
-	var $search_operators = array( 'is', 'isnot', 'greater_than', 'less_than' );
12
+	var $search_operators = array('is', 'isnot', 'greater_than', 'less_than');
13 13
 
14 14
 	var $_gf_field_class_name = 'GF_Field_Number';
15 15
 
16 16
 	var $group = 'standard';
17 17
 
18
-	function field_options( $field_options, $template_id, $field_id, $context, $input_type ) {
18
+	function field_options($field_options, $template_id, $field_id, $context, $input_type) {
19 19
 
20 20
 		$field_options['number_format'] = array(
21 21
 			'type' => 'checkbox',
22
-			'label' => __( 'Format number?', 'gravityview' ),
22
+			'label' => __('Format number?', 'gravityview'),
23 23
 			'desc' => __('Display numbers with thousands separators.', 'gravityview'),
24 24
 			'value' => false,
25 25
 		);
26 26
 
27 27
 		$field_options['decimals'] = array(
28 28
 			'type' => 'number',
29
-			'label' => __( 'Decimals', 'gravityview' ),
29
+			'label' => __('Decimals', 'gravityview'),
30 30
 			'desc' => __('Precision of the number of decimal places. Leave blank to use existing precision.', 'gravityview'),
31 31
 			'value' => '',
32 32
 			'merge_tags' => false,
Please login to merge, or discard this patch.