Skip to content

Commit bfa5e5c

Browse files
authored
Formatting: Fixed PHPCS issues. (#895)
* Formatting: Fixed PHPCS issues. * Formatting: Fixed PHPCS issues.
1 parent 053ad62 commit bfa5e5c

File tree

6 files changed

+17
-15
lines changed

6 files changed

+17
-15
lines changed

gp-nested-forms/gpnf-map-child-entries-to-acf-repeater-field.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class GPNF_Map_Child_Entries_To_ACF_Repeater {
1212
public function __construct( $args ) {
1313
$this->_args = wp_parse_args( $args, array(
1414
'form_id' => false,
15-
'nested_form_field_id' => false,
15+
'nested_form_field_id' => false,
1616
'field_map' => array(),
1717
'acf_repeater_field_name' => false,
1818
) );
@@ -42,15 +42,15 @@ function gw_child_entries_to_repeater( $post_id, $feed, $entry, $form ) {
4242
update_field( $this->_args['acf_repeater_field_name'], $repeat_value, $post_id );
4343
}
4444
}
45-
}
45+
}
4646

47-
new GPNF_Map_Child_Entries_To_ACF_Repeater( array(
47+
new GPNF_Map_Child_Entries_To_ACF_Repeater( array(
4848
'form_id' => 7, // Set this to the parent form ID
4949
'nested_form_field_id' => 18, // Update to the ID of the Nested Form field.
5050
'field_map' => array(
5151
'num_comedien' => 1,
5252
'role_comedien' => 3,
5353
), // The field map contains "field_name" => "child_entry_field_id" pairs. The field name is the name of the fields in
5454
// the ACF Repeater field. The child entry field ID is the field ID from the child form.
55-
'acf_repeater_field_name' => 'comediens', // Update o the field name of the ACF repeater field.
55+
'acf_repeater_field_name' => 'comediens', // Update to the field name of the ACF repeater field.
5656
) );

gp-notification-scheduler/gpns-payment-status-conditional-logic.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
<?php
12
/**
23
* This snippet has evolved! 🦄
34
* Find the new version of this snippet here:

gp-populate-anything/gppa-acf-datepicker-comparison.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
<?php
12
/**
23
* This snippet has evolved! 🦄
34
* Find the new version of this snippet here:

gravity-forms/gw-all-fields-template.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,15 @@
1515
*
1616
* - **`{all_fields}`**
1717
*
18-
* By default, enabling this plugin will look for this template:
18+
* By default, enabling this plugin will look for this template:
1919
* `<theme>/gravity-forms/all-fields.php`
2020
*
21-
* Override the `{all_fields}` template for a specific form by specifying the form ID:
21+
* Override the `{all_fields}` template for a specific form by specifying the form ID:
2222
* `<theme>/gravity-forms/all-fields-<formId>.php`
2323
*
2424
* - **`{all_fields:template[custom]}`**
2525
*
26-
* Specify a custom template suffix. This is useful for allowing specific forms to use the same template.
26+
* Specify a custom template suffix. This is useful for allowing specific forms to use the same template.
2727
* `<theme>/gravity-forms/all-fields-custom.php`
2828
*
2929
* - **`{all_fields:notemplate}`**
@@ -41,24 +41,24 @@
4141
* Filtering will only include the specified fields and exclude all others. It cannot be combined with the include
4242
* exclude filters.
4343
*
44-
* `{all_fields:filter[1]}`
44+
* `{all_fields:filter[1]}`
4545
* `{all_fields:filter[1,2]}`
4646
*
4747
* - **`:include`**
4848
*
4949
* Including will include fields with types that are typically not supported by the `{all_fields}` merge tag
5050
* (e.g., HTML fields).
5151
*
52-
* `{all_fields:include[3]}`
53-
* `{all_fields:include[3,4]}`
52+
* `{all_fields:include[3]}`
53+
* `{all_fields:include[3,4]}`
5454
* `{all_fields:include[3,4],exclude[5]}`
5555
*
5656
* - **`:exclude`**
5757
*
5858
* Excluding will exclude specific fields from being included in the `{all_fields}` output.
5959
*
60-
* `{all_fields:exclude[5]}`
61-
* `{all_fields:exclude[5,6]}`
60+
* `{all_fields:exclude[5]}`
61+
* `{all_fields:exclude[5,6]}`
6262
* `{all_fields:exclude[5],include[3,4]}`
6363
*
6464
*/

gravity-forms/gw-custom-validation.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
if ( strpos( $value, '.' ) !== false ) {
2020
$result['is_valid'] = false;
21-
$result['message'] = 'Please enter a valid value.';
21+
$result['message'] = 'Please enter a valid value.';
2222
}
2323

2424
return $result;

gravity-forms/gw-require-unique-values.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ public function validate( $result, $value, $form, $field ) {
8888
$is_unique = true;
8989

9090
foreach ( $field->inputs as $input ) {
91-
$input_id = $input['id'];
91+
$input_id = $input['id'];
9292
$input_value = rgars( $value, $input_id );
9393

9494
if ( empty( $input_value ) ) {
@@ -101,7 +101,7 @@ public function validate( $result, $value, $form, $field ) {
101101
}
102102

103103
$input_hash = $this->get_value_hash( array( $input_value ) );
104-
$is_unique = ! in_array( $input_hash, $values );
104+
$is_unique = ! in_array( $input_hash, $values );
105105
if ( ! $is_unique ) {
106106
break;
107107
}

0 commit comments

Comments
 (0)