fulltext_support   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Importance

Changes 6
Bugs 0 Features 0
Metric Value
eloc 2
c 6
b 0
f 0
dl 0
loc 12
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A is_index() 0 3 1
1
<?php
2
/**
3
 *
4
 * Precise Similar Topics
5
 *
6
 * @copyright (c) 2014 Matt Friedman
7
 * @license GNU General Public License, version 2 (GPL-2.0)
8
 *
9
 */
10
11
namespace vse\similartopics\core;
12
13
/**
14
 * Class is now a wrapper for use by old migrations,
15
 * to avoid having to edit the old migrations too much.
16
 */
17
class fulltext_support extends \vse\similartopics\driver\mysqli
18
{
19
	/**
20
	 * Check if a column is a FULLTEXT index in topics table
21
	 * This has been deprecated in 1.5.0, replaced by is_fulltext()
22
	 *
23
	 * @param string $column Name of the column
24
	 * @return bool True if column is a FULLTEXT index, false otherwise
25
	 */
26
	public function is_index($column = 'topic_title')
27
	{
28
		return $this->is_fulltext($column, TOPICS_TABLE);
0 ignored issues
show
Bug introduced by
The constant vse\similartopics\core\TOPICS_TABLE was not found. Maybe you did not declare it correctly or list all dependencies?
Loading history...
29
	}
30
}
31