Skip to content

Commit caa51d2

Browse files
committed
style: fix linting issues
1 parent 74f45b2 commit caa51d2

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

includes/models/class-test-run.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -419,8 +419,8 @@ public static function delete_all_not_finished() {
419419

420420
$test_runs_table = Test_Runs_Table::get_table_name();
421421

422-
// phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching -- It's ok.
423-
return $wpdb->query( "DELETE FROM $test_runs_table WHERE finished_at = NULL" );
422+
// phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching, WordPress.DB.PreparedSQL.InterpolatedNotPrepared -- It's ok.
423+
return $wpdb->query( "DELETE FROM $test_runs_table WHERE finished_at IS NULL" );
424424
}
425425

426426
/**

includes/models/class-test.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -816,6 +816,7 @@ public static function reset_base_screenshots() {
816816

817817
// phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching -- It's ok.
818818
return $wpdb->query(
819+
// phpcs:ignore WordPress.DB.PreparedSQL.InterpolatedNotPrepared -- It's ok.
819820
"UPDATE $table_test SET base_screenshot_url = null, base_screenshot_date = null, last_comparison_date = null, next_run_date = null, is_running = null"
820821
);
821822
}

0 commit comments

Comments
 (0)