for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Dallgoot\Yaml\Nodes;
use Dallgoot\Yaml\Nodes\Generic\NodeGeneric;
/**
*
* @author Stéphane Rebai <[email protected]>
* @license Apache 2.0
* @link https://github.com/dallgoot/yaml
*/
class Quoted extends NodeGeneric
{
public function build(&$parent = null)
// return substr(Scalar::replaceSequences(trim($this->raw)), 1,-1);
return (
new Scalar('', 0))->replaceSequences(
substr(trim($this->raw), 1, -1
)
);
}