-
Notifications
You must be signed in to change notification settings - Fork 4
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
base: dev
Are you sure you want to change the base?
Conversation
@@ -1953,6 +1956,15 @@ function spbc_scanner_get_file_by_id($file_id) | |||
return $file_info ?: false; | |||
} | |||
|
|||
function spbc_scanner_load_more_scan_logs() |
There was a problem hiding this comment.
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) |
There was a problem hiding this comment.
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; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe is_string()?
task https://doboard.com/1/task/10014