X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fjson%2FFormatJson.php;h=0c77a7bcc2d90bae6958602e6ce254022bb5b333;hb=80f787fba3e8dcbf959f37f925a6f6a89979a5c0;hp=775ab43c981000238d9a3e1a96580cecf942441d;hpb=96906168cac0e9a7748511b48c369cf22c8406d5;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/json/FormatJson.php b/includes/json/FormatJson.php index 775ab43c98..0c77a7bcc2 100644 --- a/includes/json/FormatJson.php +++ b/includes/json/FormatJson.php @@ -216,7 +216,7 @@ class FormatJson { $count = 0; $value = preg_replace( '/,([ \t]*[}\]][^"\r\n]*([\r\n]|$)|[ \t]*[\r\n][ \t\r\n]*[}\]])/', '$1', - $value, - 1, $count ); + $value, -1, $count ); if ( $count > 0 ) { $result = json_decode( $value, $assoc ); if ( JSON_ERROR_NONE === json_last_error() ) { @@ -271,7 +271,7 @@ class FormatJson { */ public static function stripComments( $json ) { // Ensure we have a string - $str = (string) $json; + $str = (string)$json; $buffer = ''; $maxLen = strlen( $str ); $mark = 0;