@@ -8,34 +8,34 @@ |
||
| 8 | 8 | { |
| 9 | 9 | |
| 10 | 10 | |
| 11 | - /** @param string $before */ |
|
| 12 | - private static string $before = "<Redis Cache Store Exception>"; |
|
| 11 | + /** @param string $before */ |
|
| 12 | + private static string $before = "<Redis Cache Store Exception>"; |
|
| 13 | 13 | |
| 14 | 14 | |
| 15 | - /** |
|
| 16 | - * @return void |
|
| 17 | - */ |
|
| 18 | - public static function create(string $message = "", int $code = 0, ?Exception $previous = null, array $details = []) |
|
| 19 | - { |
|
| 15 | + /** |
|
| 16 | + * @return void |
|
| 17 | + */ |
|
| 18 | + public static function create(string $message = "", int $code = 0, ?Exception $previous = null, array $details = []) |
|
| 19 | + { |
|
| 20 | 20 | return new self(self::getBefore() . ": " .$message, $code, $previous, $details); |
| 21 | - } |
|
| 21 | + } |
|
| 22 | 22 | |
| 23 | 23 | |
| 24 | - /** |
|
| 25 | - * @return string |
|
| 26 | - */ |
|
| 27 | - public static function getBefore() |
|
| 28 | - { |
|
| 24 | + /** |
|
| 25 | + * @return string |
|
| 26 | + */ |
|
| 27 | + public static function getBefore() |
|
| 28 | + { |
|
| 29 | 29 | return self::$before; |
| 30 | - } |
|
| 30 | + } |
|
| 31 | 31 | |
| 32 | - /** |
|
| 33 | - * @return void |
|
| 34 | - */ |
|
| 35 | - public static function setBefore(string $text) |
|
| 36 | - { |
|
| 32 | + /** |
|
| 33 | + * @return void |
|
| 34 | + */ |
|
| 35 | + public static function setBefore(string $text) |
|
| 36 | + { |
|
| 37 | 37 | self::$before = $text; |
| 38 | - } |
|
| 38 | + } |
|
| 39 | 39 | |
| 40 | 40 | } |
| 41 | 41 | |