| Conditions | 3 |
| Paths | 2 |
| Total Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 3 |
| Changes | 0 | ||
| 1 | <?php |
||
| 62 | 13 | public function getIcon() |
|
| 63 | { |
||
| 64 | 13 | $actionIcons = (array) config('nwlaravel.activity.action_icon'); |
|
| 65 | 13 | $icons = $actionIcons['icons']; |
|
| 66 | 13 | $action = $this->getAttribute('action'); |
|
| 67 | |||
| 68 | 13 | if (empty($action) || !isset($icons[$action])) { |
|
| 69 | 1 | return $icons['default']; |
|
| 70 | } |
||
| 71 | |||
| 72 | 12 | return $icons[$action]; |
|
| 73 | } |
||
| 74 | |||
| 88 |