getLastScanTimestamp(); $nextScanTime = $scanData->getNextScanTimestamp(); // Rule incident display data. $showWafSection = isset( $data['showWafSection'] ) && $data['showWafSection']; $wafEnabled = isset( $data['wafEnabled'] ) && $data['wafEnabled']; $wafMonitoring = isset( $data['wafMonitoring'] ) && $data['wafMonitoring']; $rules = isset( $data['rules'] ) ? $data['rules'] : array(); $ruleset = isset( $data['ruleset'] ) ? $data['ruleset'] : ''; // Calculate total incidents count for navigation link. $totalIncidentsCount = 0; if ( ! empty( $rules ) ) { foreach ( $rules as $rule ) { $totalIncidentsCount += $rule->incidentsCount; } } use CloudLinux\Imunify\App\Helpers\DateTimeFormatter; use CloudLinux\Imunify\App\Helpers\PathFormatter; ?>
getName() ); ?> getStatusLabel() ); ?>
0 ) { echo esc_html( DateTimeFormatter::formatScanTime( $lastScanTime ) ); } else { esc_html_e( 'never', 'imunify-security' ); } ?>
0 ) { echo esc_html( DateTimeFormatter::formatScanTime( $nextScanTime ) ); } else { esc_html_e( 'not scheduled', 'imunify-security' ); } ?>