@@ -58,7 +58,7 @@ |
||
| 58 | 58 | */ |
| 59 | 59 | public function toJson(int $options = 0) |
| 60 | 60 | { |
| 61 | - return parent::toJson($options); |
|
| 61 | + return parent::toJson($options); |
|
| 62 | 62 | } |
| 63 | 63 | } |
| 64 | 64 | |
@@ -7,39 +7,39 @@ discard block |
||
| 7 | 7 | class CacheDatabaseException extends BaseException |
| 8 | 8 | { |
| 9 | 9 | |
| 10 | - /** @param string $before */ |
|
| 11 | - private static string $before = "<Database Cache Store Exception>"; |
|
| 10 | + /** @param string $before */ |
|
| 11 | + private static string $before = "<Database Cache Store Exception>"; |
|
| 12 | 12 | |
| 13 | - /** |
|
| 14 | - * @param string $message |
|
| 15 | - * @param int $code |
|
| 16 | - * @param Exception|null $previous |
|
| 17 | - * @param array $details |
|
| 18 | - * @return self |
|
| 19 | - */ |
|
| 20 | - public static function create(string $message = "", int $code = 0, ?Exception $previous = null, array $details = []) |
|
| 21 | - { |
|
| 13 | + /** |
|
| 14 | + * @param string $message |
|
| 15 | + * @param int $code |
|
| 16 | + * @param Exception|null $previous |
|
| 17 | + * @param array $details |
|
| 18 | + * @return self |
|
| 19 | + */ |
|
| 20 | + public static function create(string $message = "", int $code = 0, ?Exception $previous = null, array $details = []) |
|
| 21 | + { |
|
| 22 | 22 | return new self(self::getBefore() . ": " .$message, $code, $previous, $details); |
| 23 | - } |
|
| 23 | + } |
|
| 24 | 24 | |
| 25 | 25 | |
| 26 | - /** |
|
| 27 | - * @return string |
|
| 28 | - */ |
|
| 29 | - public static function getBefore(): string |
|
| 30 | - { |
|
| 26 | + /** |
|
| 27 | + * @return string |
|
| 28 | + */ |
|
| 29 | + public static function getBefore(): string |
|
| 30 | + { |
|
| 31 | 31 | return self::$before; |
| 32 | - } |
|
| 32 | + } |
|
| 33 | 33 | |
| 34 | - /** |
|
| 35 | - * @return void |
|
| 36 | - */ |
|
| 37 | - public static function setBefore(string $text): void |
|
| 38 | - { |
|
| 34 | + /** |
|
| 35 | + * @return void |
|
| 36 | + */ |
|
| 37 | + public static function setBefore(string $text): void |
|
| 38 | + { |
|
| 39 | 39 | self::$before = $text; |
| 40 | - } |
|
| 40 | + } |
|
| 41 | 41 | |
| 42 | - /* |
|
| 42 | + /* |
|
| 43 | 43 | * @return array |
| 44 | 44 | */ |
| 45 | 45 | public function toArray() |
@@ -61,6 +61,6 @@ discard block |
||
| 61 | 61 | */ |
| 62 | 62 | public function toJson(int $options = 0) |
| 63 | 63 | { |
| 64 | - return parent::toJson($options); |
|
| 64 | + return parent::toJson($options); |
|
| 65 | 65 | } |
| 66 | 66 | } |
@@ -19,7 +19,7 @@ |
||
| 19 | 19 | */ |
| 20 | 20 | public static function create(string $message = "", int $code = 0, ?Exception $previous = null, array $details = []) |
| 21 | 21 | { |
| 22 | - return new self(self::getBefore() . ": " .$message, $code, $previous, $details); |
|
| 22 | + return new self(self::getBefore() . ": " . $message, $code, $previous, $details); |
|
| 23 | 23 | } |
| 24 | 24 | |
| 25 | 25 | |
@@ -58,7 +58,7 @@ |
||
| 58 | 58 | */ |
| 59 | 59 | public function toJson(int $options = 0) |
| 60 | 60 | { |
| 61 | - return parent::toJson($options); |
|
| 61 | + return parent::toJson($options); |
|
| 62 | 62 | } |
| 63 | 63 | } |
| 64 | 64 | |
@@ -58,7 +58,7 @@ |
||
| 58 | 58 | */ |
| 59 | 59 | public function toJson(int $options = 0) |
| 60 | 60 | { |
| 61 | - return parent::toJson($options); |
|
| 61 | + return parent::toJson($options); |
|
| 62 | 62 | } |
| 63 | 63 | } |
| 64 | 64 | |