Completed
Push — master ( 670622...a5ffbc )
by Edson
01:42
created

Tool   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
dl 0
loc 15
ccs 6
cts 6
cp 1
rs 10
c 0
b 0
f 0
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getAttributesKey() 0 3 1
A getAttributesValue() 0 3 1
A columns() 0 3 1
1
<?php
2
3
namespace Keep;
4
5
trait Tool
6
{
7 4
    public static function columns(array $columns): string
8
    {
9 4
        return implode('`, `', $columns);
10
    }
11
12 2
    public static function getAttributesKey(array $attributes): string
13
    {
14 2
        return implode('`, `', array_keys($attributes));
15
    }
16
17 2
    public static function getAttributesValue(array $attributes): string
18
    {
19 2
        return implode(', :', array_keys($attributes));
20
    }
21
}
22