diff --git a/automatically-paginate-posts.php b/automatically-paginate-posts.php
index 6214ff602edeef6bc05d1d40b4c70ec5cb7698ae..4984fab991f212f4f5637d0e1625422a2e2ca41b 100644
--- a/automatically-paginate-posts.php
+++ b/automatically-paginate-posts.php
@@ -180,7 +180,7 @@ class Automatically_Paginate_Posts {
 			if ( ! did_action( 'init' ) ) {
 				_doing_it_wrong(
 					__METHOD__,
-					__(
+					esc_html__(
 						'Post types can only be retrieved after the "init" hook.',
 						'autopaging'
 					),
diff --git a/inc/class-block-editor.php b/inc/class-block-editor.php
index 32ebb2860eb003d5801da749d95bd5ba1df43941..f6e47e4845b8aa0b4c66dd50c7c8654868198edb 100644
--- a/inc/class-block-editor.php
+++ b/inc/class-block-editor.php
@@ -133,9 +133,9 @@ class Block_Editor {
 		wp_localize_script(
 			$asset_handle,
 			'autopagingSettings',
-			[
+			array(
 				'metaKey' => $this->autopaging_instance->meta_key,
-			]
+			)
 		);
 
 		wp_set_script_translations(
diff --git a/phpcs.xml b/phpcs.xml
index c7914ff6e9f2cbd28580c0b39d5259445d09b868..af3242247038680a068eb196e943bc675d245902 100644
--- a/phpcs.xml
+++ b/phpcs.xml
@@ -4,9 +4,8 @@
 
 	<!-- What to scan -->
 	<file>.</file>
-	<exclude-pattern>/vendor/</exclude-pattern>
+	<exclude-pattern>/assets/build/</exclude-pattern>
 	<exclude-pattern>/node_modules/</exclude-pattern>
-	<exclude-pattern>/tests/*</exclude-pattern>
 
 	<!-- How to scan -->
 	<!-- Usage instructions: https://github.com/squizlabs/PHP_CodeSniffer/wiki/Usage -->