Browse Source

Beep: Add strict types to remaining php files (#7546)

Takashi Irie 1 year ago
parent
commit
283668368d

+ 2 - 0
beep/patterns/404.php

@@ -4,6 +4,8 @@
  * Slug: beep/404
  * Slug: beep/404
  * Inserter: no
  * Inserter: no
  */
  */
+
+declare( strict_types = 1 );
 ?>
 ?>
 
 
 <!-- wp:heading {"textAlign":"left","level":1,"anchor":"oops-that-page-can-t-be-found"} -->
 <!-- wp:heading {"textAlign":"left","level":1,"anchor":"oops-that-page-can-t-be-found"} -->

+ 2 - 0
beep/patterns/archive-title.php

@@ -4,6 +4,8 @@
  * Slug: beep/archive-title
  * Slug: beep/archive-title
  * Inserter: no
  * Inserter: no
  */
  */
+
+declare( strict_types = 1 );
 ?>
 ?>
 
 
 <!-- wp:group {"style":{"spacing":{"padding":{"top":"0","right":"var:preset|spacing|80","bottom":"0","left":"var:preset|spacing|80"},"blockGap":"0"}},"layout":{"type":"flex","flexWrap":"nowrap"}} -->
 <!-- wp:group {"style":{"spacing":{"padding":{"top":"0","right":"var:preset|spacing|80","bottom":"0","left":"var:preset|spacing|80"},"blockGap":"0"}},"layout":{"type":"flex","flexWrap":"nowrap"}} -->

+ 2 - 0
beep/patterns/footer-page.php

@@ -5,6 +5,8 @@
  * Categories: footer
  * Categories: footer
  * Block Types: core/template-part/footer
  * Block Types: core/template-part/footer
  */
  */
+
+declare( strict_types = 1 );
 ?>
 ?>
 
 
 <!-- wp:spacer {"height":"50px"} -->
 <!-- wp:spacer {"height":"50px"} -->

+ 2 - 0
beep/patterns/footer-post.php

@@ -5,6 +5,8 @@
  * Categories: footer
  * Categories: footer
  * Block Types: core/template-part/footer
  * Block Types: core/template-part/footer
  */
  */
+
+declare( strict_types = 1 );
 ?>
 ?>
 
 
 <!-- wp:spacer {"height":"50px"} -->
 <!-- wp:spacer {"height":"50px"} -->

+ 2 - 0
beep/patterns/footer.php

@@ -5,6 +5,8 @@
  * Categories: footer
  * Categories: footer
  * Block Types: core/template-part/footer
  * Block Types: core/template-part/footer
  */
  */
+
+declare( strict_types = 1 );
 ?>
 ?>
 
 
 <!-- wp:spacer {"height":"50px"} -->
 <!-- wp:spacer {"height":"50px"} -->

+ 2 - 0
beep/patterns/header.php

@@ -5,6 +5,8 @@
  * Categories: header
  * Categories: header
  * Block Types: core/template-part/header
  * Block Types: core/template-part/header
  */
  */
+
+declare( strict_types = 1 );
 ?>
 ?>
 
 
 <!-- wp:group {"style":{"spacing":{"padding":{"top":"var:preset|spacing|80","right":"var:preset|spacing|80","bottom":"0","left":"var:preset|spacing|80"},"blockGap":"var:preset|spacing|40","margin":{"top":"0","bottom":"0"}}},"layout":{"type":"flex","flexWrap":"nowrap","justifyContent":"left","verticalAlignment":"top"}} -->
 <!-- wp:group {"style":{"spacing":{"padding":{"top":"var:preset|spacing|80","right":"var:preset|spacing|80","bottom":"0","left":"var:preset|spacing|80"},"blockGap":"var:preset|spacing|40","margin":{"top":"0","bottom":"0"}}},"layout":{"type":"flex","flexWrap":"nowrap","justifyContent":"left","verticalAlignment":"top"}} -->

+ 2 - 0
beep/patterns/navigation.php

@@ -4,6 +4,8 @@
  * Slug: beep/navigation
  * Slug: beep/navigation
  * Inserter: no
  * Inserter: no
  */
  */
+
+declare( strict_types = 1 );
 ?>
 ?>
 
 
 <!-- wp:group {"style":{"spacing":{"padding":{"top":"0","right":"var:preset|spacing|80","bottom":"var:preset|spacing|80","left":"var:preset|spacing|80"},"blockGap":"0"}},"layout":{"type":"flex","flexWrap":"nowrap","verticalAlignment":"top"}} -->
 <!-- wp:group {"style":{"spacing":{"padding":{"top":"0","right":"var:preset|spacing|80","bottom":"var:preset|spacing|80","left":"var:preset|spacing|80"},"blockGap":"0"}},"layout":{"type":"flex","flexWrap":"nowrap","verticalAlignment":"top"}} -->

+ 2 - 0
beep/patterns/no-results.php

@@ -4,6 +4,8 @@
  * Slug: beep/no-results
  * Slug: beep/no-results
  * Inserter: no
  * Inserter: no
  */
  */
+
+declare( strict_types = 1 );
 ?>
 ?>
 <!-- wp:paragraph -->
 <!-- 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', 'beep' ); ?></p>
 <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', 'beep' ); ?></p>

+ 2 - 0
beep/patterns/post-content.php

@@ -4,6 +4,8 @@
  * Slug: beep/post-content
  * Slug: beep/post-content
  * Inserter: no
  * Inserter: no
  */
  */
+
+declare( strict_types = 1 );
 ?>
 ?>
 
 
 <!-- wp:paragraph {"style":{"spacing":{"margin":{"left":"0","right":"var:preset|spacing|40"}}},"textColor":"inactive"} -->
 <!-- wp:paragraph {"style":{"spacing":{"margin":{"left":"0","right":"var:preset|spacing|40"}}},"textColor":"inactive"} -->

+ 2 - 0
beep/patterns/post-meta.php

@@ -4,6 +4,8 @@
  * Slug: beep/post-meta
  * Slug: beep/post-meta
  * Inserter: no
  * Inserter: no
  */
  */
+
+declare( strict_types = 1 );
 ?>
 ?>
 
 
 <!-- wp:group {"layout":{"type":"flex","flexWrap":"nowrap"}} -->
 <!-- wp:group {"layout":{"type":"flex","flexWrap":"nowrap"}} -->

+ 2 - 0
beep/patterns/post-nav.php

@@ -4,6 +4,8 @@
  * Slug: beep/post-nav
  * Slug: beep/post-nav
  * Inserter: no
  * Inserter: no
  */
  */
+
+declare( strict_types = 1 );
 ?>
 ?>
 
 
 <!-- wp:group {"layout":{"type":"flex","flexWrap":"nowrap"}} -->
 <!-- wp:group {"layout":{"type":"flex","flexWrap":"nowrap"}} -->

+ 2 - 0
beep/patterns/post-title.php

@@ -4,6 +4,8 @@
  * Slug: beep/post-title
  * Slug: beep/post-title
  * Inserter: no
  * Inserter: no
  */
  */
+
+declare( strict_types = 1 );
 ?>
 ?>
 
 
 <!-- wp:group {"layout":{"type":"flex","flexWrap":"nowrap"}} -->
 <!-- wp:group {"layout":{"type":"flex","flexWrap":"nowrap"}} -->

+ 2 - 0
beep/patterns/query-title.php

@@ -4,6 +4,8 @@
  * Slug: beep/query-title
  * Slug: beep/query-title
  * Inserter: no
  * Inserter: no
  */
  */
+
+declare( strict_types = 1 );
 ?>
 ?>
 
 
 <!-- wp:group {"style":{"spacing":{"padding":{"top":"0","right":"var:preset|spacing|80","bottom":"0","left":"var:preset|spacing|80"},"blockGap":"0"}},"layout":{"type":"flex","flexWrap":"nowrap"}} -->
 <!-- wp:group {"style":{"spacing":{"padding":{"top":"0","right":"var:preset|spacing|80","bottom":"0","left":"var:preset|spacing|80"},"blockGap":"0"}},"layout":{"type":"flex","flexWrap":"nowrap"}} -->