Lines Matching refs:docArray

17     public $docArray = [  variable in renderer_plugin_qc
63 $this->docArray['created'] = $meta['date']['created'];
64 $this->docArray['modified'] = $meta['date']['modified'];
65 $this->docArray['authors']['*'] = 0;
72 $this->docArray['changes'] = count($revs);
76 $authorUserCnt = empty($this->docArray['authors'][$info['user']])
78 : $this->docArray['authors'][$info['user']];
79 $this->docArray['authors'][$info['user']] = $authorUserCnt + 1;
81 ++$this->docArray['authors']['*'];
87 $this->docArray['chars'] = PhpString::strlen($text);
88 $this->docArray['words'] = count(array_filter(preg_split('/[^\w\-_]/u', $text)));
102 $this->docArray['err']['nobacklink'] += 2;
106 $this->docArray['err']['fixme'] += $this->docArray['fixme'];
109 if ($this->docArray['header_count'][1] == 0) {
110 $this->docArray['err']['noh1'] += 5;
113 if ($this->docArray['header_count'][1] > 1) {
114 $this->docArray['err']['manyh1'] += $this->docArray['header_count'][1];
118 $cnt = count($this->docArray['header_struct']);
120 … if ($this->docArray['header_struct'][$i] - $this->docArray['header_struct'][$i - 1] > 1) {
121 ++$this->docArray['err']['headernest'];
126 if ($this->docArray['quote_nest'] > 2) {
127 $this->docArray['err']['deepquote'] = $this->docArray['quote_nest'] / 2;
133 if ($this->docArray['hr'] > 2) {
134 $this->docArray['err']['manyhr'] = ($this->docArray['hr'] - 2) / 2;
138 if ($this->docArray['linebreak'] > 2) {
139 $this->docArray['err']['manybr'] = $this->docArray['linebreak'] - 2;
143 if (!$this->getConf('single_author_only') && count($this->docArray['authors']) == 1) {
144 $this->docArray['err']['singleauthor'] = 1;
148 if ($this->docArray['chars'] < 150) {
149 $this->docArray['err']['toosmall'] = 1;
153 if ($this->docArray['chars'] > 100000) {
154 $this->docArray['err']['toolarge'] = 1;
158 $hc = $this->docArray['header_count'][1] +
159 $this->docArray['header_count'][2] +
160 $this->docArray['header_count'][3] +
161 $this->docArray['header_count'][4] +
162 $this->docArray['header_count'][5];
165 $hr = $this->docArray['chars'] / $hc;
169 $this->docArray['err']['manyheaders'] = 1;
174 $this->docArray['err']['fewheaders'] = 1;
179 if (!$this->docArray['internal_links']) {
180 $this->docArray['err']['nolink'] = 1;
184 if ($this->docArray['broken_links'] > 2) {
185 $this->docArray['err']['brokenlink'] = $this->docArray['broken_links'] * 0.5;
189 … if ($this->docArray['formatted'] && $this->docArray['chars'] / $this->docArray['formatted'] < 3) {
190 $this->docArray['err']['manyformat'] = 2;
194 foreach ($this->docArray['err'] as $val) $this->docArray['score'] += $val;
198 $this->doc = serialize($this->docArray);
224 $this->docArray['link_lengths'][] = $length;
226 $this->docArray['internal_links']++;
227 if (!$exists) $this->docArray['broken_links']++;
233 $this->docArray['external_links']++;
239 $this->docArray['header_count'][$level]++;
240 $this->docArray['header_struct'][] = $level;
246 if ($smiley == 'FIXME') $this->docArray['fixme']++;
253 $this->docArray['linebreak']++;
272 $this->docArray['hr']++;
278 $this->docArray['quote_count']++;
280 $this->docArray['quote_nest'] = max($this->quotelevel, $this->docArray['quote_nest']);
333 if ($len > 500) $this->docArray['err']['longformat']++;
336 … if ($this->formatting > 1) $this->docArray['err']['multiformat'] += 1 * ($this->formatting - 1);
338 $this->docArray['formatted'] += $len;