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

PgsqlDatabaseTrait   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 5
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
dl 0
loc 5
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A escapeIdentifier() 0 3 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