PluginProbe
Assistant – Every Day Productivity Apps / 1.5.5.1
Assistant – Every Day Productivity Apps v1.5.5.1
1.5.5.1 1.5.5 trunk 0.1.0 0.2.0 0.2.1 0.2.2 0.3.0 0.3.1 0.4 0.4.1 0.4.2 0.5.0 0.5.1 0.6.0 0.7.0 0.7.0.2 0.7.0.3 0.7.0.4 0.7.0.5 0.7.0.6 0.7.0.7 0.7.0.8 0.7.0.9 0.7.1 All 72 releases
← All changes | backend/src/Helpers/JsonHelper.php +21 -21 1.5.5 → 1.5.5.1 View file →
@@ -1,21 +1,21 @@
1 -<?php
2 -
3 -namespace FL\Assistant\Helpers;
4 -
5 -class JsonHelper {
6 -
7 - /**
8 - * @param string $string
9 - * @return bool
10 - */
11 - public static function is_string_json( $string ) {
12 -
13 - if ( ! is_string( $string ) || trim( $string ) === '' ) {
14 - return false;
15 - }
16 -
17 - $decoded = json_decode( $string );
18 -
19 - return is_object( $decoded ) || is_array( $decoded );
20 - }
21 -}
1 +<?php
2 +
3 +namespace FL\Assistant\Helpers;
4 +
5 +class JsonHelper {
6 +
7 + /**
8 + * @param string $string
9 + * @return bool
10 + */
11 + public static function is_string_json( $string ) {
12 +
13 + if ( ! is_string( $string ) || trim( $string ) === '' ) {
14 + return false;
15 + }
16 +
17 + $decoded = json_decode( $string );
18 +
19 + return is_object( $decoded ) || is_array( $decoded );
20 + }
21 +}