Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 2 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
48 | 2 | public function build($query, $compiler) |
|
49 | { |
||
50 | 2 | $sql = 'MATCH('.$compiler->quoteIdentifier($query, $query->preprocessor()->field($this->search)).' AGAINST('.$compiler->quote($this->value).')'; |
|
51 | |||
52 | 2 | if ($this->booleanMode) { |
|
53 | 1 | $sql .= ' IN BOOLEAN MODE)'; |
|
54 | } else { |
||
55 | 1 | $sql .= ')'; |
|
56 | } |
||
57 | |||
58 | 2 | return $sql; |
|
59 | } |
||
60 | } |