| Conditions | 2 |
| Paths | 1 |
| Total Lines | 15 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 41 | 3 | public static function build( |
|
| 42 | string $settingName, |
||
| 43 | string $provider, |
||
| 44 | string $originalProvider, |
||
| 45 | Throwable $prior = null |
||
| 46 | ) { |
||
| 47 | |||
| 48 | 3 | $msg = sprintf( |
|
| 49 | 3 | 'Setting name collision: %s (attempting to load from %s; already loaded from %s)', |
|
| 50 | 2 | $settingName, |
|
| 51 | 2 | $provider, |
|
| 52 | 2 | $originalProvider |
|
| 53 | ); |
||
| 54 | |||
| 55 | 3 | return new static($msg, $prior ? $prior->getCode() : 0, $prior); |
|
| 56 | } |
||
| 58 |