Conditions | 1 |
Paths | 1 |
Total Lines | 17 |
Lines | 0 |
Ratio | 0 % |
Tests | 12 |
CRAP Score | 1.0004 |
Changes | 0 |
1 | <?php |
||
20 | 7 | public function __construct($strategy, array $candidates) |
|
21 | { |
||
22 | 7 | $classes = array_map( |
|
23 | 7 | function ($a) { |
|
24 | return $a['class']; |
||
25 | 7 | }, |
|
26 | $candidates |
||
27 | 7 | ); |
|
28 | |||
29 | 7 | $message = sprintf( |
|
30 | 7 | 'No valid candidate found using strategy "%s". We tested the following candidates: %s.', |
|
31 | 7 | $strategy, |
|
32 | 7 | implode(', ', $classes) |
|
33 | 7 | ); |
|
34 | |||
35 | 7 | parent::__construct($message); |
|
36 | 7 | } |
|
37 | } |
||
38 |