Passed
Push — master ( 7d3861...c0cfa7 )
by Radu
01:22
created

PgsqlDatabaseTrait::escapeIdentifier()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 1
eloc 1
nc 1
nop 1
1
<?php
2
namespace WebServCo\Framework\Traits;
3
4
trait PgsqlDatabaseTrait
5
{
6
    public function escapeIdentifier($string)
7
    {
8
        return '"' . str_replace('"', '""', $string) . '"';
9
    }
10
}
11