@@ -26,9 +26,9 @@ public static function toString($e, $getTrace = true, $catcher = null): string
2626 /**
2727 * Converts an exception into a simple string.
2828 * @param \Exception|\Throwable $e the exception being converted
29- * @param bool $clearHtml
30- * @param bool $getTrace
31- * @param null|string $catcher
29+ * @param bool $clearHtml
30+ * @param bool $getTrace
31+ * @param null|string $catcher
3232 * @return string the string representation of the exception.
3333 */
3434 public static function toHtml ($ e , $ getTrace = true , $ catcher = null , $ clearHtml = false ): string
@@ -54,17 +54,17 @@ public static function toHtml($e, $getTrace = true, $catcher = null, $clearHtml
5454 /**
5555 * Converts an exception into a simple array.
5656 * @param \Exception|\Throwable $e the exception being converted
57- * @param bool $getTrace
58- * @param null|string $catcher
57+ * @param bool $getTrace
58+ * @param null|string $catcher
5959 * @return array
6060 */
6161 public static function toArray ($ e , $ getTrace = true , $ catcher = null ): array
6262 {
6363 $ data = [
64- 'class ' => \get_class ($ e ),
64+ 'class ' => \get_class ($ e ),
6565 'message ' => $ e ->getMessage (),
66- 'code ' => $ e ->getCode (),
67- 'file ' => $ e ->getFile () . ': ' . $ e ->getLine (),
66+ 'code ' => $ e ->getCode (),
67+ 'file ' => $ e ->getFile () . ': ' . $ e ->getLine (),
6868 ];
6969
7070 if ($ catcher ) {
@@ -81,8 +81,8 @@ public static function toArray($e, $getTrace = true, $catcher = null): array
8181 /**
8282 * Converts an exception into a json string.
8383 * @param \Exception|\Throwable $e the exception being converted
84- * @param bool $getTrace
85- * @param null|string $catcher
84+ * @param bool $getTrace
85+ * @param null|string $catcher
8686 * @return string the string representation of the exception.
8787 */
8888 public static function toJson ($ e , $ getTrace = true , $ catcher = null ): string
@@ -92,7 +92,7 @@ public static function toJson($e, $getTrace = true, $catcher = null): string
9292 } else {
9393 $ map = [
9494 'code ' => $ e ->getCode () ?: 500 ,
95- 'msg ' => sprintf (
95+ 'msg ' => sprintf (
9696 '%s(%d): %s, File: %s(Line %d) ' ,
9797 \get_class ($ e ),
9898 $ e ->getCode (),
0 commit comments