Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Goran Alković <[email protected]>
  • Loading branch information
iruzevic and goranalkovic-infinum authored May 9, 2024
1 parent 99807d7 commit 5f85d56
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
5 changes: 1 addition & 4 deletions src/Blocks/components/checkboxes/checkboxes.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,7 @@
'fieldName' => $checkboxesName,
'fieldIsRequired' => $checkboxesIsRequired,
'fieldTypeCustom' => $checkboxesTypeCustom ?: 'checkbox', // phpcs:ignore WordPress.PHP.DisallowShortTernary.Found
'fieldConditionalTags' => Components::render(
'conditional-tags',
Components::props('conditionalTags', $attributes)
),
'fieldConditionalTags' => Components::render('conditional-tags', Components::props('conditionalTags', $attributes)),
'fieldAttrs' => $checkboxesFieldAttrs,
];

Expand Down
5 changes: 1 addition & 4 deletions src/Blocks/components/radios/radios.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,7 @@
'fieldId' => $radiosName,
'fieldTracking' => $radiosTracking,
'fieldTypeCustom' => $radiosTypeCustom ?: 'radio', // phpcs:ignore WordPress.PHP.DisallowShortTernary.Found
'fieldConditionalTags' => Components::render(
'conditional-tags',
Components::props('conditionalTags', $attributes)
),
'fieldConditionalTags' => Components::render('conditional-tags', Components::props('conditionalTags', $attributes)),
'fieldAttrs' => $radiosFieldAttrs,
];

Expand Down

0 comments on commit 5f85d56

Please sign in to comment.