Lines Matching refs:stats
27 * A analysis Renderer that exports stats/quality/metadata in a json format
147 public $stats = array(); // the stats
224 $statExport = $this->stats;
233 * Edit author stats
303 if (array_key_exists(self::FIXME, $this->stats)) {
304 $fixmeCount = $this->stats[self::FIXME];
366 if (array_key_exists(self::HEADER_POSITION, $this->stats)) {
367 $headersCount = count($this->stats[self::HEADER_POSITION]);
370 $currentHeaderLevel = $this->stats[self::HEADER_STRUCT][$i];
371 $previousHeaderLevel = $this->stats[self::HEADER_STRUCT][$i - 1];
425 $headers = $this->stats[self::HEADING_COUNT] ?? null;
431 $wordCount = $this->stats[self::WORD_COUNT] ?? 0;
499 $internalLinksCount = $this->stats[self::INTERNAL_LINK_COUNT] ?? null;
515 if (array_key_exists(self::INTERNAL_LINK_BROKEN_COUNT, $this->stats)) {
516 $brokenLinksCount = $this->stats[self::INTERNAL_LINK_BROKEN_COUNT];
683 if (!array_key_exists(self::HEADING_COUNT, $this->stats)) {
684 $this->stats[self::HEADING_COUNT] = [];
689 $this->stats[self::HEADING_COUNT])) {
690 $this->stats[self::HEADING_COUNT][$heading] = 0;
692 $this->stats[self::HEADING_COUNT][$heading]++;
695 $this->stats[self::HEADER_POSITION][$this->headerId] = $heading;
702 if (!array_key_exists(self::HEADING_COUNT, $this->stats)) {
703 $this->stats[self::HEADER_STRUCT] = [];
705 $this->stats[self::HEADER_STRUCT][] = $level;
712 $totalFixme = $this->stats[self::FIXME] ?? 0;
713 $this->stats[self::FIXME] = $totalFixme + 1;
720 $linebreak = $this->stats['linebreak'] ?? 0;
721 $this->stats['linebreak'] = $linebreak + 1;
737 $hr = $this->stats['hr'] ?? 0;
738 $this->stats['hr'] = $hr + 1;
743 $quoteCount = $this->stats['quote_count'] ?? 0;
744 $this->stats['quote_count'] = $quoteCount + 1;
746 $quoteNest = $this->stats['quote_nest'] ?? 0;
747 $this->stats['quote_nest'] = max($this->quotelevel, $quoteNest);
806 $this->stats[self::PLAINTEXT][$this->plainTextId]['len'] = $len;
814 $this->stats[self::PLAINTEXT][$this->plainTextId]['multiformat'] += $numberOfFormats;
820 $totalLen = $this->stats[self::PLAINTEXT][0] ?? 0;
821 $this->stats[self::PLAINTEXT][0] = $totalLen + $len;
827 $this->stats[self::INTERNAL_MEDIA_COUNT]++;
832 $this->stats[self::EXTERNAL_MEDIA_COUNT]++;
837 $this->stats = array();