TransposeValues::transform()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 1
eloc 1
nc 1
nop 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