/** * Return a closing block if required * * @return string */ public function getClosingBlock() { if ($this->format->isSingleBlock()) { return static::JSON_ARRAY_END; } else { return ''; } }