diff --git a/src/MetaTech/Output/Formatter.php b/src/MetaTech/Output/Formatter.php index 74ba611..f7f0407 100644 --- a/src/MetaTech/Output/Formatter.php +++ b/src/MetaTech/Output/Formatter.php @@ -86,11 +86,11 @@ class Formatter if (!$this->embedStyle) { $this->embedStyle = true; $style .= ''; } return $style; @@ -128,7 +128,7 @@ class Formatter { $content = $value . ($newline ? self::LF : ''); if ($this->type == self::TYPE_HTML) { - $content = $this->embedStyleIfNeeded() . '
'.$content.'
'; + $content = $this->embedStyleIfNeeded() . '
'.$content.'
'; } echo $content; } diff --git a/src/MetaTech/Ws/Client.php b/src/MetaTech/Ws/Client.php index 9048297..15a7d2f 100644 --- a/src/MetaTech/Ws/Client.php +++ b/src/MetaTech/Ws/Client.php @@ -55,7 +55,7 @@ class Client if (!is_array($config)) { throw new \Exception('bad rest config'); } - $typeFormatter = $this->config['html_output'] ? Formatter::TYPE_HTML : Formatter::TYPE_CLI; + $typeFormatter = $config['html_output'] ? Formatter::TYPE_HTML : Formatter::TYPE_CLI; $this->formatter = new Formatter($typeFormatter); $this->config = $config; $this->authenticator = $authenticator;