Skip to content

Commit

Permalink
Add strict type declaration for kaze
Browse files Browse the repository at this point in the history
  • Loading branch information
dsas committed Nov 30, 2023
1 parent 3514135 commit 758646d
Show file tree
Hide file tree
Showing 11 changed files with 21 additions and 0 deletions.
1 change: 1 addition & 0 deletions kaze/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
* @since Kaze 1.0
*/

declare( strict_types = 1 );

if ( ! function_exists( 'kaze_support' ) ) :

Expand Down
2 changes: 2 additions & 0 deletions kaze/patterns/cart.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
* Slug: kaze/cart
* Inserter: no
*/

declare( strict_types = 1 );
?>

<!-- wp:heading {"level":1,"align":"wide"} -->
Expand Down
2 changes: 2 additions & 0 deletions kaze/patterns/checkout.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
* Slug: kaze/checkout
* Inserter: no
*/

declare( strict_types = 1 );
?>

<!-- wp:template-part {"slug":"checkout-header","theme":"woocommerce/woocommerce"} /-->
Expand Down
2 changes: 2 additions & 0 deletions kaze/patterns/footer.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
* Categories: footer
* Block Types: core/template-part/footer
*/

declare( strict_types = 1 );
?>

<!-- wp:spacer {"height":"192px"} -->
Expand Down
2 changes: 2 additions & 0 deletions kaze/patterns/front-page.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
* Categories: hidden
* Inserter: no
*/

declare( strict_types = 1 );
?>
<!-- wp:group {"layout":{"type":"constrained"}} -->
<div class="wp-block-group">
Expand Down
2 changes: 2 additions & 0 deletions kaze/patterns/header.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
* Categories: header
* Block Types: core/template-part/header
*/

declare( strict_types = 1 );
?>

<!-- wp:group {"layout":{"type":"default"}} -->
Expand Down
2 changes: 2 additions & 0 deletions kaze/patterns/hidden-404.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
* Slug: kaze/hidden-404
* Inserter: no
*/

declare( strict_types = 1 );
?>

<!-- wp:heading {"textAlign":"left","level":1,"style":{"typography":{"fontStyle":"normal","fontWeight":"700","lineHeight":1.388888889}},"fontSize":"medium"} -->
Expand Down
2 changes: 2 additions & 0 deletions kaze/patterns/hidden-comments.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
* Slug: kaze/hidden-comments
* Inserter: no
*/

declare( strict_types = 1 );
?>
<!-- wp:spacer {"height":"3rem"} -->
<div style="height:3rem" aria-hidden="true" class="wp-block-spacer"></div>
Expand Down
2 changes: 2 additions & 0 deletions kaze/patterns/hidden-no-results.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
* Slug: kaze/hidden-no-results
* Inserter: no
*/

declare( strict_types = 1 );
?>
<!-- wp:paragraph -->
<p><?php echo esc_html_x( 'Sorry, but nothing matched your search terms. Please try again with some different keywords.', 'Message explaining that there are no results returned from a search', 'kaze' ); ?></p>
Expand Down
2 changes: 2 additions & 0 deletions kaze/patterns/hidden-search-field.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,7 @@
* Slug: kaze/hidden-search-field
* Inserter: no
*/

declare( strict_types = 1 );
?>
<!-- wp:search {"showLabel":false,"placeholder":"<?php echo esc_html_x( 'Search...', 'This is a placeholder for search field', 'kaze' ); ?>","buttonText":"<?php esc_attr_e( 'Search', 'kaze' ); ?>"} /-->
2 changes: 2 additions & 0 deletions kaze/patterns/post-list.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
* Slug: kaze/post-list
* Categories: posts
*/

declare( strict_types = 1 );
?>

<!-- wp:query {"query":{"perPage":10,"pages":0,"offset":0,"postType":"post","order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"","inherit":true,"taxQuery":null,"parents":[]},"layout":{"type":"default"}} -->
Expand Down

0 comments on commit 758646d

Please sign in to comment.