Completed
Push — master ( 71ddd1...0aabb4 )
by Faysal
03:44
created

helpers.php ➔ prepare_attributes()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 10

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 2
nc 2
nop 1
dl 0
loc 10
rs 9.9332
c 0
b 0
f 0
1
<?php
2
3
if (! function_exists('prepare_attributes')) {
4
5
    function prepare_attributes(array $attributes)
6
    {
7
        $attributes_string = '';
8
        
9
        foreach($attributes as $key => $value){
10
            $attributes_string .= $key . '="' . $value . '" ';
11
        }
12
13
        return $attributes_string;
14
    }
15
}