`e{&p{(^HD$8HD$(HHHpHXH@PLyLqHHD$ HHH;H////fnH....fnfpfpHFHHfoH;soN fofsHftftffHHHu/H+HH;pfooNftftffHtHH;BHHHNH;H HD$(H;H;HFH;HHH////fnHfpHHfoftfHHH"H+HH;foftfHtHH;HHD$(Ht$0Ll$ HH;{HFHNH=..eH/[Lt$8Ht$8H\$0H} uTH](HHH\$0HEL;HHL+L?HuHHP]A]A^A_[HHt$0H;Hӏ$Ht$HIHIHIyyUAHLIH$Ht$PHH{xquery->get_total_count(); // No URLs are being monitored. if ( 0 === $total_count ) { return 'no-url'; } // Check if any URLs are in progress. $in_progress_count = $this->query->query( [ 'count' => true, 'status__in' => [ 'to-submit', 'pending', 'in-progress' ], ] ); if ( (int) $in_progress_count > 0 ) { return 'in-progress'; } // Check if *all* URLs have failed. $failed_count = $this->query->query( [ 'count' => true, 'status__in' => [ 'failed' ], ] ); if ( (int) $failed_count === (int) $total_count ) { return 'failed'; } // All tests are complete. return 'complete'; } }