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; ?>