We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 10eed96 commit 143f255Copy full SHA for 143f255
src/Log/Formatter.php
@@ -31,21 +31,3 @@ protected function convertToString($data)
31
return var_export($data, true);
32
}
33
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
47
48
49
- return ($return ? $data : true);
50
-}
51
0 commit comments