public function addCSSInline($css, $type = 'text/css') { if ($this->container->platform->isCli()) { return; } $document = $this->container->platform->getDocument(); if (!method_exists($document, 'addStyleDeclaration')) { return; } $document->addStyleDeclaration($css, $type); }