ArrayHelper::undot()   A
last analyzed

Complexity

Conditions 2
Paths 2

Size

Total Lines 9
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
dl 0
loc 9
rs 9.6667
c 1
b 0
f 0
cc 2
eloc 5
nc 2
nop 1
1
<?php
2
3
namespace Tacone\Bees\Helper;
4
5
class ArrayHelper
6
{
7
    public static function undot($array)
8
    {
9
        $result = [];
10
        foreach ($array as $key => $value) {
11
            array_set($result, $key, $value);
12
        }
13
14
        return $result;
15
    }
16
}
17