Completed
Pull Request — master (#651)
by Zack
04:36
created
includes/class-common.php 1 patch
Indentation   +26 added lines, -26 removed lines patch added patch discarded remove patch
@@ -236,13 +236,13 @@  discard block
 block discarded – undo
236 236
 
237 237
 				if ( $add_default_properties && ! empty( $field->inputs ) ) {
238 238
 					foreach ( $field->inputs as $input ) {
239
-                        /**
240
-                         * @hack
241
-                         * In case of email/email confirmation, the input for email has the same id as the parent field
242
-                         */
239
+						/**
240
+						 * @hack
241
+						 * In case of email/email confirmation, the input for email has the same id as the parent field
242
+						 */
243 243
 						if( 'email' === $field->type && false === strpos( $input['id'], '.' ) ) {
244
-                            continue;
245
-                        }
244
+							continue;
245
+						}
246 246
 						$fields["{$input['id']}"] = array(
247 247
 							'label' => rgar( $input, 'label' ),
248 248
 							'customLabel' => rgar( $input, 'customLabel' ),
@@ -419,7 +419,7 @@  discard block
 block discarded – undo
419 419
 		} elseif ( 'delete' === RGForms::get( 'action' ) ) {
420 420
 			$criteria['context_view_id'] = isset( $_GET['view_id'] ) ? intval( $_GET['view_id'] ) : null;
421 421
 		} elseif( !isset( $criteria['context_view_id'] ) ) {
422
-            // Prevent overriding the Context View ID: Some widgets could set the context_view_id (e.g. Recent Entries widget)
422
+			// Prevent overriding the Context View ID: Some widgets could set the context_view_id (e.g. Recent Entries widget)
423 423
 			$criteria['context_view_id'] = null;
424 424
 		}
425 425
 
@@ -1148,7 +1148,7 @@  discard block
 block discarded – undo
1148 1148
 			),
1149 1149
 		);
1150 1150
 
1151
-        $fields = $date_created + $fields;
1151
+		$fields = $date_created + $fields;
1152 1152
 
1153 1153
 		$blacklist_field_types = apply_filters( 'gravityview_blacklist_field_types', $blacklist, NULL );
1154 1154
 
@@ -1160,13 +1160,13 @@  discard block
 block discarded – undo
1160 1160
 			}
1161 1161
 		}
1162 1162
 
1163
-        /**
1164
-         * @filter `gravityview/common/sortable_fields` Filter the sortable fields
1165
-         * @since 1.12
1166
-         * @param array $fields Sub-set of GF form fields that are sortable
1167
-         * @param int $formid The Gravity Forms form ID that the fields are from
1168
-         */
1169
-        $fields = apply_filters( 'gravityview/common/sortable_fields', $fields, $formid );
1163
+		/**
1164
+		 * @filter `gravityview/common/sortable_fields` Filter the sortable fields
1165
+		 * @since 1.12
1166
+		 * @param array $fields Sub-set of GF form fields that are sortable
1167
+		 * @param int $formid The Gravity Forms form ID that the fields are from
1168
+		 */
1169
+		$fields = apply_filters( 'gravityview/common/sortable_fields', $fields, $formid );
1170 1170
 
1171 1171
 		return $fields;
1172 1172
 	}
@@ -1449,17 +1449,17 @@  discard block
 block discarded – undo
1449 1449
 	}
1450 1450
 
1451 1451
 
1452
-    /**
1453
-     * Display updated/error notice
1454
-     *
1455
-     * @param string $notice text/HTML of notice
1456
-     * @param string $class CSS class for notice (`updated` or `error`)
1457
-     *
1458
-     * @return string
1459
-     */
1460
-    public static function generate_notice( $notice, $class = '' ) {
1461
-        return '<div class="gv-notice '.gravityview_sanitize_html_class( $class ) .'">'. $notice .'</div>';
1462
-    }
1452
+	/**
1453
+	 * Display updated/error notice
1454
+	 *
1455
+	 * @param string $notice text/HTML of notice
1456
+	 * @param string $class CSS class for notice (`updated` or `error`)
1457
+	 *
1458
+	 * @return string
1459
+	 */
1460
+	public static function generate_notice( $notice, $class = '' ) {
1461
+		return '<div class="gv-notice '.gravityview_sanitize_html_class( $class ) .'">'. $notice .'</div>';
1462
+	}
1463 1463
 
1464 1464
 	/**
1465 1465
 	 * Inspired on \GFCommon::encode_shortcodes, reverse the encoding by replacing the ascii characters by the shortcode brackets
Please login to merge, or discard this patch.