Lines Matching refs:docArray

17     public $docArray = [
62 $this->docArray['created'] = $meta['date']['created'];
63 $this->docArray['modified'] = $meta['date']['modified'];
64 $this->docArray['authors']['*'] = 0;
70 $this->docArray['changes'] = count($revs);
74 $authorUserCnt = empty($this->docArray['authors'][$info['user']])
76 : $this->docArray['authors'][$info['user']];
77 $this->docArray['authors'][$info['user']] = $authorUserCnt + 1;
79 ++$this->docArray['authors']['*'];
85 $this->docArray['chars'] = PhpString::strlen($text);
86 $this->docArray['words'] = count(array_filter(preg_split('/[^\w\-_]/u', $text)));
100 $this->docArray['err']['nobacklink'] += 2;
104 $this->docArray['err']['fixme'] += $this->docArray['fixme'];
107 if ($this->docArray['header_count'][1] == 0) {
108 $this->docArray['err']['noh1'] += 5;
111 if ($this->docArray['header_count'][1] > 1) {
112 $this->docArray['err']['manyh1'] += $this->docArray['header'][1];
116 $cnt = count($this->docArray['header_struct']);
118 if ($this->docArray['header_struct'][$i] - $this->docArray['header_struct'][$i - 1] > 1) {
119 ++$this->docArray['err']['headernest'];
124 if ($this->docArray['quote_nest'] > 2) {
125 $this->docArray['err']['deepquote'] = $this->docArray['quote_nest'] / 2;
131 if ($this->docArray['hr'] > 2) {
132 $this->docArray['err']['manyhr'] = ($this->docArray['hr'] - 2) / 2;
136 if ($this->docArray['linebreak'] > 2) {
137 $this->docArray['err']['manybr'] = $this->docArray['linebreak'] - 2;
141 if (!$this->getConf('single_author_only') && count($this->docArray['authors']) == 1) {
142 $this->docArray['err']['singleauthor'] = 1;
146 if ($this->docArray['chars'] < 150) {
147 $this->docArray['err']['toosmall'] = 1;
151 if ($this->docArray['chars'] > 100000) {
152 $this->docArray['err']['toolarge'] = 1;
156 $hc = $this->docArray['header_count'][1] +
157 $this->docArray['header_count'][2] +
158 $this->docArray['header_count'][3] +
159 $this->docArray['header_count'][4] +
160 $this->docArray['header_count'][5];
163 $hr = $this->docArray['chars'] / $hc;
167 $this->docArray['err']['manyheaders'] = 1;
172 $this->docArray['err']['fewheaders'] = 1;
177 if (!$this->docArray['internal_links']) {
178 $this->docArray['err']['nolink'] = 1;
182 if ($this->docArray['broken_links'] > 2) {
183 $this->docArray['err']['brokenlink'] = $this->docArray['broken_links'] * 0.5;
187 if ($this->docArray['formatted'] && $this->docArray['chars'] / $this->docArray['formatted'] < 3) {
188 $this->docArray['err']['manyformat'] = 2;
192 foreach ($this->docArray['err'] as $val) $this->docArray['score'] += $val;
196 $this->doc = serialize($this->docArray);
222 $this->docArray['link_lengths'][] = $length;
224 $this->docArray['internal_links']++;
225 if (!$exists) $this->docArray['broken_links']++;
231 $this->docArray['external_links']++;
237 $this->docArray['header_count'][$level]++;
238 $this->docArray['header_struct'][] = $level;
244 if ($smiley == 'FIXME') $this->docArray['fixme']++;
251 $this->docArray['linebreak']++;
270 $this->docArray['hr']++;
276 $this->docArray['quote_count']++;
278 $this->docArray['quote_nest'] = max($this->quotelevel, $this->docArray['quote_nest']);
331 if ($len > 500) $this->docArray['err']['longformat']++;
334 if ($this->formatting > 1) $this->docArray['err']['multiformat'] += 1 * ($this->formatting - 1);
336 $this->docArray['formatted'] += $len;