src/Cache/CacheJsonSerializer.php 1 location
|
@@ 93-101 (lines=9) @@
|
| 90 |
|
return $cacheFile; |
| 91 |
|
} |
| 92 |
|
|
| 93 |
|
private function encode(stdClass $jsonData) |
| 94 |
|
{ |
| 95 |
|
$encoder = new JsonEncoder(); |
| 96 |
|
$encoder->setPrettyPrinting(true); |
| 97 |
|
$encoder->setEscapeSlash(false); |
| 98 |
|
$encoder->setTerminateWithLineFeed(true); |
| 99 |
|
|
| 100 |
|
return $encoder->encode($jsonData); |
| 101 |
|
} |
| 102 |
|
|
| 103 |
|
private function decode($json, $path = null) |
| 104 |
|
{ |
src/Config/ConfigJsonSerializer.php 1 location
|
@@ 63-71 (lines=9) @@
|
| 60 |
|
return $configFile; |
| 61 |
|
} |
| 62 |
|
|
| 63 |
|
private function encode($jsonData) |
| 64 |
|
{ |
| 65 |
|
$encoder = new JsonEncoder(); |
| 66 |
|
$encoder->setPrettyPrinting(true); |
| 67 |
|
$encoder->setEscapeSlash(false); |
| 68 |
|
$encoder->setTerminateWithLineFeed(true); |
| 69 |
|
|
| 70 |
|
return $encoder->encode($jsonData); |
| 71 |
|
} |
| 72 |
|
|
| 73 |
|
private function decode($json, $path = null) |
| 74 |
|
{ |
src/Package/PackageJsonSerializer.php 1 location
|
@@ 499-509 (lines=11) @@
|
| 496 |
|
} |
| 497 |
|
} |
| 498 |
|
|
| 499 |
|
private function encode(stdClass $jsonData, $path = null) |
| 500 |
|
{ |
| 501 |
|
$encoder = new JsonEncoder(); |
| 502 |
|
$encoder->setPrettyPrinting(true); |
| 503 |
|
$encoder->setEscapeSlash(false); |
| 504 |
|
$encoder->setTerminateWithLineFeed(true); |
| 505 |
|
|
| 506 |
|
$this->validate($jsonData, $path); |
| 507 |
|
|
| 508 |
|
return $encoder->encode($jsonData); |
| 509 |
|
} |
| 510 |
|
|
| 511 |
|
private function decode($json, $path = null) |
| 512 |
|
{ |