Skip to content

Commit

Permalink
style: fix linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
domtra committed Nov 28, 2024
1 parent 74f45b2 commit caa51d2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions includes/models/class-test-run.php
Original file line number Diff line number Diff line change
Expand Up @@ -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" );
}

/**
Expand Down
1 change: 1 addition & 0 deletions includes/models/class-test.php
Original file line number Diff line number Diff line change
Expand Up @@ -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"
);
}
Expand Down

0 comments on commit caa51d2

Please sign in to comment.