Conditions | 1 |
Paths | 1 |
Total Lines | 18 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
30 | public static function parseFontAwesomeIcon(array $args) { |
||
31 | |||
32 | // Initialize the icon. |
||
33 | $icon = IconFactory::newFontAwesomeIcon(); |
||
34 | |||
35 | $icon->setName(ArrayHelper::get($args, "name", "home")); |
||
36 | $icon->setStyle(ArrayHelper::get($args, "style")); |
||
37 | |||
38 | $icon->setAnimation(ArrayHelper::get($args, "animation")); |
||
39 | $icon->setBordered(ArrayHelper::get($args, "bordered", false)); |
||
40 | $icon->setFixedWidth(ArrayHelper::get($args, "fixedWidth", false)); |
||
41 | $icon->setFont(ArrayHelper::get($args, "font")); |
||
42 | $icon->setPull(ArrayHelper::get($args, "pull")); |
||
43 | $icon->setSize(ArrayHelper::get($args, "size")); |
||
44 | |||
45 | // Return the icon. |
||
46 | return $icon; |
||
47 | } |
||
48 | |||
50 |