TransposeValues   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
dl 0
loc 10
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A transform() 0 3 1
1
<?php
2
3
namespace Ghc\Rosetta\Transformers;
4
5
class TransposeValues extends Transformer
6
{
7
    /**
8
     * @param array $data
9
     *
10
     * @return array
11
     */
12
    public function transform($data)
13
    {
14
        return array_map(null, ...$data);
0 ignored issues
show
Bug introduced by
$data is expanded, but the parameter $arr1 of array_map() does not expect variable arguments. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-type  annotation

14
        return array_map(null, /** @scrutinizer ignore-type */ ...$data);
Loading history...
15
    }
16
}
17