From caa51d2c1f54edf395abcfd8167adb1e312178f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dominik=20Tr=C3=A4nklein?= Date: Thu, 28 Nov 2024 11:36:50 +0100 Subject: [PATCH] style: fix linting issues --- includes/models/class-test-run.php | 4 ++-- includes/models/class-test.php | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/includes/models/class-test-run.php b/includes/models/class-test-run.php index cf797df..f4ff3c3 100644 --- a/includes/models/class-test-run.php +++ b/includes/models/class-test-run.php @@ -419,8 +419,8 @@ public static function delete_all_not_finished() { $test_runs_table = Test_Runs_Table::get_table_name(); - // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching -- It's ok. - return $wpdb->query( "DELETE FROM $test_runs_table WHERE finished_at = NULL" ); + // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching, WordPress.DB.PreparedSQL.InterpolatedNotPrepared -- It's ok. + return $wpdb->query( "DELETE FROM $test_runs_table WHERE finished_at IS NULL" ); } /** diff --git a/includes/models/class-test.php b/includes/models/class-test.php index 256a555..ee39352 100644 --- a/includes/models/class-test.php +++ b/includes/models/class-test.php @@ -816,6 +816,7 @@ public static function reset_base_screenshots() { // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching -- It's ok. return $wpdb->query( + // phpcs:ignore WordPress.DB.PreparedSQL.InterpolatedNotPrepared -- It's ok. "UPDATE $table_test SET base_screenshot_url = null, base_screenshot_date = null, last_comparison_date = null, next_run_date = null, is_running = null" ); }