Replace   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 2
Bugs 0 Features 0
Metric Value
eloc 3
c 2
b 0
f 0
dl 0
loc 10
ccs 0
cts 2
cp 0
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A assemble() 0 5 1
1
<?php
2
3
namespace Nip\Database\Query;
4
5
/**
6
 * Class Replace
7
 * @package Nip\Database\Query
8
 */
9
class Replace extends Insert
10
{
11
    /**
12
     * @return string
13
     */
14
    public function assemble()
15
    {
16
        $query = 'REPLACE INTO ' . $this->protect($this->getTable()) . $this->parseCols() . $this->parseValues();
0 ignored issues
show
Bug introduced by
Are you sure $this->parseValues() of type false|string can be used in concatenation? ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-type  annotation

16
        $query = 'REPLACE INTO ' . $this->protect($this->getTable()) . $this->parseCols() . /** @scrutinizer ignore-type */ $this->parseValues();
Loading history...
17
18
        return $query;
19
    }
20
}
21