File tree Expand file tree Collapse file tree 6 files changed +11
-22
lines changed
app/code/Magento/Catalog/Pricing/Render
lib/internal/Magento/Framework/Json Expand file tree Collapse file tree 6 files changed +11
-22
lines changed Original file line number Diff line number Diff line change @@ -59,13 +59,11 @@ public function __construct(
59
59
* Encode the mixed $valueToEncode into the JSON format
60
60
*
61
61
* @param mixed $valueToEncode
62
- * @param boolean $cycleCheck Optional; whether or not to check for object recursion; off by default
63
- * @param array $options Additional options used during encoding
64
62
* @return string
65
63
*/
66
- public function jsonEncode ($ valueToEncode, $ cycleCheck = false , $ options = [] )
64
+ public function jsonEncode ($ valueToEncode )
67
65
{
68
- return $ this ->jsonHelper ->jsonEncode ($ valueToEncode, $ cycleCheck , $ options );
66
+ return $ this ->jsonHelper ->jsonEncode ($ valueToEncode );
69
67
}
70
68
71
69
/**
Original file line number Diff line number Diff line change @@ -13,10 +13,9 @@ class Decoder implements DecoderInterface
13
13
* Decodes the given $data string which is encoded in the JSON format.
14
14
*
15
15
* @param string $data
16
- * @param int $objectDecodeType Optional; flag indicating how to decode
17
16
* @return mixed
18
17
*/
19
- public function decode ($ data, $ objectDecodeType = \Zend_Json:: TYPE_ARRAY )
18
+ public function decode ($ data )
20
19
{
21
20
return \Zend_Json::decode ($ data );
22
21
}
Original file line number Diff line number Diff line change @@ -15,8 +15,7 @@ interface DecoderInterface
15
15
* Decodes the given $data string which is encoded in the JSON format.
16
16
*
17
17
* @param string $data
18
- * @param int $objectDecodeType Optional; flag indicating how to decode
19
18
* @return mixed
20
19
*/
21
- public function decode ($ data, $ objectDecodeType = \Zend_Json:: TYPE_ARRAY );
20
+ public function decode ($ data );
22
21
}
Original file line number Diff line number Diff line change @@ -26,13 +26,11 @@ public function __construct(\Magento\Framework\Translate\InlineInterface $transl
26
26
* Encode the mixed $data into the JSON format.
27
27
*
28
28
* @param mixed $data
29
- * @param boolean $cycleCheck Optional; whether or not to check for object recursion; off by default
30
- * @param array $options Additional options used during encoding
31
29
* @return string
32
30
*/
33
- public function encode ($ data, $ cycleCheck = false , $ options = [] )
31
+ public function encode ($ data )
34
32
{
35
- $ json = \Zend_Json::encode ($ data, $ cycleCheck , $ options );
33
+ $ json = \Zend_Json::encode ($ data );
36
34
$ this ->translateInline ->processResponseBody ($ json , true );
37
35
return $ json ;
38
36
}
Original file line number Diff line number Diff line change @@ -15,9 +15,7 @@ interface EncoderInterface
15
15
* Encode the mixed $data into the JSON format.
16
16
*
17
17
* @param mixed $data
18
- * @param boolean $cycleCheck Optional; whether or not to check for object recursion; off by default
19
- * @param array $options Additional options used during encoding
20
18
* @return string
21
19
*/
22
- public function encode ($ data, $ cycleCheck = false , $ options = [] );
20
+ public function encode ($ data );
23
21
}
Original file line number Diff line number Diff line change @@ -39,25 +39,22 @@ public function __construct(
39
39
* Encode the mixed $valueToEncode into the JSON format
40
40
*
41
41
* @param mixed $valueToEncode
42
- * @param boolean $cycleCheck Optional; whether or not to check for object recursion; off by default
43
- * @param array $options Additional options used during encoding
44
42
* @return string
45
43
*/
46
- public function jsonEncode ($ valueToEncode, $ cycleCheck = false , $ options = [] )
44
+ public function jsonEncode ($ valueToEncode )
47
45
{
48
- return $ this ->jsonEncoder ->encode ($ valueToEncode, $ cycleCheck , $ options );
46
+ return $ this ->jsonEncoder ->encode ($ valueToEncode );
49
47
}
50
48
51
49
/**
52
50
* Decodes the given $encodedValue string which is
53
51
* encoded in the JSON format
54
52
*
55
53
* @param string $encodedValue
56
- * @param int $objectDecodeType
57
54
* @return mixed
58
55
*/
59
- public function jsonDecode ($ encodedValue, $ objectDecodeType = \Zend_Json:: TYPE_ARRAY )
56
+ public function jsonDecode ($ encodedValue )
60
57
{
61
- return $ this ->jsonDecoder ->decode ($ encodedValue, $ objectDecodeType );
58
+ return $ this ->jsonDecoder ->decode ($ encodedValue );
62
59
}
63
60
}
You can’t perform that action at this time.
0 commit comments