| Conditions | 3 |
| Paths | 2 |
| Total Lines | 18 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 32 | public function render() |
||
| 33 | { |
||
| 34 | $converted = sprintf( |
||
| 35 | '<span style="color:#%1$s" class="variable-value-%3$s">'. |
||
| 36 | '%2$s'. |
||
| 37 | '</span>', |
||
| 38 | $this->getTypeColor(), |
||
| 39 | $this->_render(), |
||
| 40 | str_replace(' ', '-', $this->type) |
||
| 41 | ); |
||
| 42 | |||
| 43 | if($this->info->getBoolOption('prepend-type') && !$this->info->isNull()) |
||
| 44 | { |
||
| 45 | $typeLabel = '<span style="color:#1c2eb1" class="variable-type">'.$this->info->getType().'</span> '; |
||
| 46 | $converted = $typeLabel.' '.$converted; |
||
| 47 | } |
||
| 48 | |||
| 49 | return $converted; |
||
| 50 | } |
||
| 52 |