Skip to content

Commit

Permalink
c/s and some comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Richard Quadling authored and Richard Quadling committed Oct 10, 2019
1 parent e467fb8 commit 9bb755b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions SensioLabs/AnsiConverter/AnsiToHtmlConverter.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,16 @@ class AnsiToHtmlConverter

public function __construct(Theme $theme = null, $inlineStyles = true, $charset = 'UTF-8', $cssPrefix = 'ansi_color')
{
if (is_null($theme)) {
if (null === $theme) {
// If no theme supplied create one and use the default css prefix.
$this->theme = new Theme($cssPrefix);
$this->cssPrefix = $cssPrefix;
} else {
// Use the supplied theme and the themes prefix if it is defined.
$this->theme = $theme;
$this->cssPrefix = $theme->getPrefix();
if (is_null($this->cssPrefix)) {
if (null === $this->cssPrefix) {
// Set the prefix on the theme and use the prefix locally.
$this->theme->setPrefix($cssPrefix);
$this->cssPrefix = $cssPrefix;
}
Expand Down

0 comments on commit 9bb755b

Please sign in to comment.