Jelajahi Sumber

Ici: Add strict types to remaining php files (#7548)

Takashi Irie 1 tahun lalu
induk
melakukan
9dc09dc1b9

+ 2 - 0
ici/patterns/404.php

@@ -4,6 +4,8 @@
  * Slug: ici/404
  * Inserter: no
  */
+
+declare( strict_types = 1 );
 ?>
 
 <!-- wp:heading {"level":1,"fontSize":"x-small"} -->

+ 2 - 0
ici/patterns/footer.php

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

+ 2 - 0
ici/patterns/header.php

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

+ 3 - 0
ici/patterns/no-results.php

@@ -4,7 +4,10 @@
  * Slug: ici/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', 'ici' ); ?></p>
 <!-- /wp:paragraph -->