html !== ''; } /** One-line summary for logs and the prefs UI. */ public function summary(): string { $rule = $this->rule_sources ? basename($this->rule_sources[0]) : 'none'; $how = match (true) { $this->rule_matched => "rule=$rule", $this->rule_stale => "rule=$rule STALE->readability", default => 'readability', }; return sprintf('%s %s %db %dms%s', $this->backend, $how, strlen($this->html), $this->timing_ms, $this->pages > 1 ? " pages={$this->pages}" : ''); } }