Skip to content

Commit d8b0b68

Browse files
committed
Disable sniff that checks for constant prefix
1 parent a0daac7 commit d8b0b68

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

‎src/SQLite_Command.php‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,9 @@ public function import( $args, $assoc_args ) {
3131

3232
if ( $enable_ast_driver ) {
3333
if ( ! defined( 'WP_SQLITE_AST_DRIVER' ) || ! WP_SQLITE_AST_DRIVER ) {
34+
// @phpcs:disable WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedConstantFound
3435
define( 'WP_SQLITE_AST_DRIVER', true );
36+
// @phpcs:enable WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedConstantFound
3537
}
3638
}
3739

@@ -93,7 +95,9 @@ public function export( $args, $assoc_args ) {
9395

9496
if ( $enable_ast_driver ) {
9597
if ( ! defined( 'WP_SQLITE_AST_DRIVER' ) || ! WP_SQLITE_AST_DRIVER ) {
98+
// @phpcs:disable WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedConstantFound
9699
define( 'WP_SQLITE_AST_DRIVER', true );
100+
// @phpcs:enable WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedConstantFound
97101
}
98102
}
99103

@@ -159,7 +163,9 @@ public function tables( $args, $assoc_args ) {
159163

160164
if ( $enable_ast_driver ) {
161165
if ( ! defined( 'WP_SQLITE_AST_DRIVER' ) || ! WP_SQLITE_AST_DRIVER ) {
166+
// @phpcs:disable WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedConstantFound
162167
define( 'WP_SQLITE_AST_DRIVER', true );
168+
// @phpcs:enable WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedConstantFound
163169
}
164170
}
165171

0 commit comments

Comments
 (0)