| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 20 | public function run() |
||
| 21 | { |
||
| 22 | $color = GridLegend::create(new ServerGridLegend($this->model))->gridColumnOptions('actions'); |
||
| 23 | $colorString = implode(';', $color); |
||
| 24 | |||
| 25 | $this->view->registerCss('.badge .server-badge-text { color: #bbbbbb; mix-blend-mode: difference; }'); |
||
| 26 | |||
| 27 | return <<<HTML |
||
| 28 | <span class="badge" style="$colorString"><span class="server-badge-text">{$this->model->name}</span></span> |
||
| 29 | HTML |
||
| 33 |