Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upd. Settings. Improved scan tab render. #444

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from
Open

Conversation

svfcode
Copy link
Member

@svfcode svfcode commented Nov 22, 2024

@@ -1953,6 +1956,15 @@ function spbc_scanner_get_file_by_id($file_id)
return $file_info ?: false;
}

function spbc_scanner_load_more_scan_logs()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please, add doc-block and rerun tests.

@@ -1108,19 +1109,21 @@ function spbc_get_sql_where_addiction_for_table_of_category($category)
* @param string $category Category of files category which needs to be searched for
* @return array Array of IDs
*/
function spbc_scanner_get_files_by_category($category)
function spbc_scanner_get_files_by_category($category, $count = false)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please, update doc-block with new param and rerun tests

// suppress because data is static
// @psalm-suppress WpdbUnsafeMethodsIssue
$res = $wpdb->get_results($query);

foreach ($res as $tmp) {
$ids[] = $tmp->fast_hash;
$ids[] = isset($tmp->fast_hash) ? $tmp->fast_hash : null;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe is_string()?

@alexandergull alexandergull requested review from AntonV1211 and removed request for Glomberg November 25, 2024 11:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants