Passed
Push — master ( 64deae...57bf37 )
by Radu
01:22
created

PreparedStatements   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 7
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 4
dl 0
loc 7
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A generatePlaceholdersString() 0 5 1
1
<?php
2
namespace WebServCo\Framework\Database\Utils;
3
4
final class PreparedStatements
5
{
6
    public static function generatePlaceholdersString($data = [])
7
    {
8
        return implode(', ', array_map(function () {
9
            return '?';
10
        }, $data));
11
    }
12
}
13