reverseMultidimensionalArrayValues()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
eloc 3
nc 1
nop 1
dl 0
loc 5
ccs 0
cts 3
cp 0
crap 2
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace MidasSoft\DominicanBankParser\Traits;
4
5
trait InteractsWithArrayTrait
6
{
7
    /**
8
     * Reverse every value whitin the array.
9
     *
10
     * @param array $array
11
     *
12
     * @return array
13
     */
14
    private function reverseMultidimensionalArrayValues(array $array)
15
    {
16
        return array_map(function ($value) {
17
            return array_reverse($value);
18
        }, $array);
19
    }
20
}
21