From 12dd9429c3ed62a4e766f01138eb41a715bdcb99 Mon Sep 17 00:00:00 2001
From: xamgore <xamgore@ya.ru>
Date: Sat, 9 Jul 2016 12:41:39 +0300
Subject: [PATCH] Improve twig's dump function

---
 ~dev_rating/system/classes/Kohana/Text.php | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/~dev_rating/system/classes/Kohana/Text.php b/~dev_rating/system/classes/Kohana/Text.php
index dda030f6a..2becdf881 100644
--- a/~dev_rating/system/classes/Kohana/Text.php
+++ b/~dev_rating/system/classes/Kohana/Text.php
@@ -17,7 +17,9 @@ class Kohana_Text {
         return Arr::map('trim', $res);
     }
 
-    public static function dump($data) { var_dump($data); }
+    public static function dump($data) {
+		echo '<pre style="white-space: pre-wrap">' . var_export($data, true) . '</pre>';
+	}
 
     // take array with (at least) LastName & FirstName keys
     public static function abbreviateName($personInfo) {
-- 
GitLab