original_string: protected function getColorMapOrAsHex(string $color)
      {
          return isset($this->colorMap[$color]) ? $this->colorMap[$color] : $color;
      }
code: protected function getColorMapOrAsHex(string $color)
      {
          return isset($this->colorMap[$color]) ? $this->colorMap[$color] : $color;
      }
code_tokens: protected function getColorMapOrAsHex ( string $ color ) { return isset ( $ this -> colorMap [ $ color ] ) ? $ this -> colorMap [ $ color ] : $ color ; }
docstring: Check if the color is within the color map, or return it as normal.
  
  @param string $color
  
  @return string
docstring_tokens: Check if the color is within the color map or return it as normal .