Skip to content

Commit

Permalink
fix phpcs
Browse files Browse the repository at this point in the history
  • Loading branch information
dannyvankooten committed Sep 17, 2024
1 parent 5160d75 commit 7e94fd3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion includes/views/parts/lists-overview.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
$attr_data_list_id = esc_attr($list->id);
$list_name = esc_html($list->name);
echo '<tr>';
echo '<td><a href="#" class="mc4wp-mailchimp-list" data-list-id="', $attr_data_list_id, '">', $list_name,'</a><span class="row-actions alignright"></span></td>';
echo '<td><a href="#" class="mc4wp-mailchimp-list" data-list-id="', $attr_data_list_id, '">', $list_name, '</a><span class="row-actions alignright"></span></td>';
echo '<td><code>', esc_html($list->id), '</code></td>';
echo '<td>', esc_html($list->stats->member_count), '</td>';
echo '</tr>';
Expand Down
5 changes: 3 additions & 2 deletions integrations/woocommerce/class-woocommerce.php
Original file line number Diff line number Diff line change
Expand Up @@ -155,9 +155,10 @@ public function triggered($order_id = null)
if (class_exists(Package::class) && class_exists(CheckoutFields::class)) {
$checkout_fields = Package::container()->get(CheckoutFields::class);

if ($checkout_fields
&& method_exists($checkout_fields, 'get_field_from_object')
if (
$checkout_fields

&& method_exists($checkout_fields, 'get_field_from_object')
// method was private in earlier versions of WooCommerce, so check if callable
&& is_callable(array($checkout_fields, 'get_field_from_object'))
) {
Expand Down

0 comments on commit 7e94fd3

Please sign in to comment.