Completed
Push — master ( a4e176...8c9478 )
by Adam
02:50
created

Map   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 13
ccs 3
cts 3
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
1
<?php
2
3
namespace BestServedCold\PhalueObjects\VOArray;
4
5
use BestServedCold\PhalueObjects\Variadic;
6
use BestServedCold\PhalueObjects\VOArray;
7
use BestServedCold\PhalueObjects\VOClosure;
8
9
/**
10
 * Class Map
11
 *
12
 * @package BestServedCold\PhalueObjects\VOArray
13
 */
14
class Map extends VOArray
15
{
16
    /**
17
     * Map constructor.
18
     *
19
     * @param \Closure $value
20
     * @param \array[] ...$array
21
     */
0 ignored issues
show
Documentation introduced by
Should the type for parameter $array not be \array[][]?

This check looks for @param annotations where the type inferred by our type inference engine differs from the declared type.

It makes a suggestion as to what type it considers more descriptive.

Most often this is a case of a parameter that can be null in addition to its declared types.

Loading history...
22 2
    public function __construct(\Closure $value, array ...$array)
0 ignored issues
show
Unused Code introduced by
The parameter $array is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
23
    {
24 2
        parent::__construct(call_user_func_array('array_map', func_get_args()));
25 2
    }
26
}
27
28