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

PreparedStatements::generatePlaceholdersString()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 3
dl 0
loc 5
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 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