Removed extra else to make Codacy happy

This commit is contained in:
snipe 2017-05-23 15:53:39 -07:00
parent 3c167c9d33
commit 71b668e1a3

View file

@ -39,6 +39,8 @@ class ActionlogPresenter extends Presenter
public function icon() public function icon()
{ {
$itemicon = 'fa fa-paperclip';
if ($this->itemType() == "asset") { if ($this->itemType() == "asset") {
$itemicon = 'fa fa-barcode'; $itemicon = 'fa fa-barcode';
} elseif ($this->itemType() == "accessory") { } elseif ($this->itemType() == "accessory") {
@ -49,8 +51,6 @@ class ActionlogPresenter extends Presenter
$itemicon = 'fa fa-floppy-o'; $itemicon = 'fa fa-floppy-o';
} elseif ($this->itemType()=="component") { } elseif ($this->itemType()=="component") {
$itemicon = 'fa fa-hdd-o'; $itemicon = 'fa fa-hdd-o';
} else {
$itemicon = 'fa fa-paperclip';
} }
return $itemicon; return $itemicon;