| Conditions | 1 |
| Paths | 1 |
| Total Lines | 8 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 1 |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 27 | 1 | public static function create($template, array $availableTemplates, $code = 0, \Exception $prev = null) |
|
| 28 | { |
||
| 29 | 1 | return new static(sprintf( |
|
| 30 | 1 | 'Not found template with name "%s". Available templates: "%s"', |
|
| 31 | 1 | $template, |
|
| 32 | 1 | implode('", "', $availableTemplates) |
|
| 33 | 1 | ), $code, $prev); |
|
| 34 | } |
||
| 35 | } |
||
| 36 |