@@ -266,7 +266,7 @@ discard block |
||
266 | 266 | |
267 | 267 | // Dequeue other jQuery styles even if no-conflict is off. |
268 | 268 | // Terrible-looking tabs help no one. |
269 | - if( !empty( $wp_styles->registered ) ) { |
|
269 | + if( !empty( $wp_styles->registered ) ) { |
|
270 | 270 | foreach ($wp_styles->registered as $key => $style) { |
271 | 271 | if( preg_match( '/^(?:wp\-)?jquery/ism', $key ) ) { |
272 | 272 | wp_dequeue_style( $key ); |
@@ -337,8 +337,8 @@ discard block |
||
337 | 337 | |
338 | 338 | //unregistering scripts |
339 | 339 | $registered = array(); |
340 | - foreach( $wp_objects->registered as $handle => $script_registration ){ |
|
341 | - if( in_array( $handle, $required_objects ) ){ |
|
340 | + foreach( $wp_objects->registered as $handle => $script_registration ) { |
|
341 | + if( in_array( $handle, $required_objects ) ) { |
|
342 | 342 | $registered[ $handle ] = $script_registration; |
343 | 343 | } |
344 | 344 | } |
@@ -290,7 +290,7 @@ discard block |
||
290 | 290 | $has_poll_fields = true; |
291 | 291 | } |
292 | 292 | |
293 | - if( GFCommon::is_product_field( $field['type'] ) ){ |
|
293 | + if( GFCommon::is_product_field( $field['type'] ) ) { |
|
294 | 294 | $has_product_fields = true; |
295 | 295 | } |
296 | 296 | |
@@ -373,7 +373,7 @@ discard block |
||
373 | 373 | |
374 | 374 | $fields = array(); |
375 | 375 | |
376 | - foreach ( $extra_fields as $key => $field ){ |
|
376 | + foreach ( $extra_fields as $key => $field ) { |
|
377 | 377 | if ( ! empty( $only_default_column ) && ! empty( $field['is_default_column'] ) ) { |
378 | 378 | $fields[ $key ] = array( 'label' => $field['label'], 'type' => 'entry_meta' ); |
379 | 379 | } |
@@ -913,7 +913,7 @@ discard block |
||
913 | 913 | * @return array|null Array: Gravity Forms field array; NULL: Gravity Forms GFFormsModel does not exist |
914 | 914 | */ |
915 | 915 | public static function get_field( $form, $field_id ) { |
916 | - if ( class_exists( 'GFFormsModel' ) ){ |
|
916 | + if ( class_exists( 'GFFormsModel' ) ) { |
|
917 | 917 | return GFFormsModel::get_field( $form, $field_id ); |
918 | 918 | } else { |
919 | 919 | return null; |
@@ -960,7 +960,7 @@ discard block |
||
960 | 960 | $shortcodes = array(); |
961 | 961 | |
962 | 962 | preg_match_all( '/' . get_shortcode_regex() . '/s', $content, $matches, PREG_SET_ORDER ); |
963 | - if ( empty( $matches ) ){ |
|
963 | + if ( empty( $matches ) ) { |
|
964 | 964 | return false; |
965 | 965 | } |
966 | 966 | |
@@ -1423,7 +1423,7 @@ discard block |
||
1423 | 1423 | public static function array_merge_recursive_distinct( array &$array1, array &$array2 ) { |
1424 | 1424 | $merged = $array1; |
1425 | 1425 | |
1426 | - foreach ( $array2 as $key => &$value ) { |
|
1426 | + foreach ( $array2 as $key => &$value ) { |
|
1427 | 1427 | if ( is_array( $value ) && isset( $merged[ $key ] ) && is_array( $merged[ $key ] ) ) { |
1428 | 1428 | $merged[ $key ] = self::array_merge_recursive_distinct( $merged[ $key ], $value ); |
1429 | 1429 | } else { |