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