Conditions | 4 |
Paths | 4 |
Total Lines | 14 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 20 |
Changes | 0 |
1 | <?php |
||
30 | public function run() |
||
31 | { |
||
32 | $out = ''; |
||
33 | foreach ($this->links as $name => $value) { |
||
34 | if ($value) { |
||
35 | $icon = isset($this->icons[$name]) ? $this->icons[$name] : $name; |
||
36 | $out .= Html::beginTag($this->tag, $this->tagOptions); |
||
37 | $out .= Html::a(Html::tag('span', '', ['class' => "fa fa-{$icon}"]), $value, ['title' => ucfirst($name)]); |
||
38 | $out .= Html::endTag($this->tag); |
||
39 | } |
||
40 | } |
||
41 | |||
42 | return $out; |
||
43 | } |
||
44 | } |
||
45 |