Skip to content

Commit 143f255

Browse files
committed
ICL: Helper function removed.
1 parent 10eed96 commit 143f255

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

src/Log/Formatter.php

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -31,21 +31,3 @@ protected function convertToString($data)
3131
return var_export($data, true);
3232
}
3333
}
34-
35-
36-
37-
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
38-
function is_json($string, $return = false)
39-
{
40-
if (!is_string($string)) {
41-
return false;
42-
}
43-
44-
$data = json_decode($string);
45-
if (json_last_error() != JSON_ERROR_NONE) {
46-
return false;
47-
}
48-
49-
return ($return ? $data : true);
50-
}
51-
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

0 commit comments

Comments
 (0)