public function encode($pretty = true)
{
if (true === $pretty && defined('JSON_PRETTY_PRINT')) {
// Cannot test this part JSON_PRETTY_PRINT is only 5.4
return json_encode($this->content, JSON_PRETTY_PRINT);
}
return json_encode($this->content);
}