Conditions | 2 |
Paths | 2 |
Total Lines | 7 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 6 |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php namespace BuildR\Foundation\Exception; |
||
31 | public static function createByFormat($message = "", $format = [], $code = 0, VanillaException $previous = NULL) { |
||
32 | if(!empty($format)) { |
||
33 | $message = vsprintf($message, $format); |
||
34 | } |
||
35 | |||
36 | return new static($message, $code, $previous); |
||
37 | } |
||
38 | |||
40 |