Skip to content

Commit

Permalink
Fix php lint issues (#2041)
Browse files Browse the repository at this point in the history
  • Loading branch information
albarin authored Sep 8, 2022
1 parent 18b50a2 commit 6549177
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
4 changes: 3 additions & 1 deletion inc/nux/class-storefront-nux-starter-content.php
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,9 @@ public function starter_content() {
$starter_content['posts'] = array_merge( $starter_content['posts'], $starter_content_wc_pages );
}

// Register support for starter content.
/**
* Register support for starter content.
*/
add_theme_support( 'starter-content', apply_filters( 'storefront_starter_content', $starter_content ) );
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -758,7 +758,9 @@ function storefront_single_product_pagination() {
return;
}

// Show only products in the same category?
/**
* Show only products in the same category?
*/
$in_same_term = apply_filters( 'storefront_single_product_pagination_same_category', true );
$excluded_terms = apply_filters( 'storefront_single_product_pagination_excluded_terms', '' );
$taxonomy = apply_filters( 'storefront_single_product_pagination_taxonomy', 'product_cat' );
Expand Down
8 changes: 8 additions & 0 deletions phpcs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,12 @@
<rule ref="Generic.Arrays.DisallowShortArraySyntax.Found">
<exclude-pattern>src/*</exclude-pattern>
</rule>

<rule ref="WooCommerce.Commenting.CommentHooks.MissingHookComment">
<exclude-pattern>*</exclude-pattern>
</rule>

<rule ref="WooCommerce.Commenting.CommentHooks.MissingSinceComment">
<exclude-pattern>*</exclude-pattern>
</rule>
</ruleset>

0 comments on commit 6549177

Please sign in to comment.