Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
12 | 399 | public function __construct(string $locale, array $throwables = []) |
|
13 | { |
||
14 | 399 | $reasons = []; |
|
15 | 399 | foreach ($throwables as $preset => $throwable) { |
|
16 | 399 | $reasons[] = \sprintf('%s: %s', $preset, $throwable->getMessage()); |
|
17 | } |
||
18 | |||
19 | 399 | parent::__construct(\sprintf( |
|
20 | "Attempted to load the locale \"%s\" dataset. However, the following preset(s) were unable to be loaded:\n%s", |
||
21 | 399 | $locale, |
|
22 | 399 | \implode("\n", $reasons) |
|
23 | )); |
||
26 |