Issues (119)

src/Query/Replace.php (1 issue)

Labels
Severity
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
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