From 71b668e1a33638cd58aecdd8363a61d463a44923 Mon Sep 17 00:00:00 2001 From: snipe Date: Tue, 23 May 2017 15:53:39 -0700 Subject: [PATCH] Removed extra else to make Codacy happy --- app/Presenters/ActionlogPresenter.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Presenters/ActionlogPresenter.php b/app/Presenters/ActionlogPresenter.php index 55374e2783..dc9629953c 100644 --- a/app/Presenters/ActionlogPresenter.php +++ b/app/Presenters/ActionlogPresenter.php @@ -39,6 +39,8 @@ class ActionlogPresenter extends Presenter public function icon() { + $itemicon = 'fa fa-paperclip'; + if ($this->itemType() == "asset") { $itemicon = 'fa fa-barcode'; } elseif ($this->itemType() == "accessory") { @@ -49,9 +51,7 @@ class ActionlogPresenter extends Presenter $itemicon = 'fa fa-floppy-o'; } elseif ($this->itemType()=="component") { $itemicon = 'fa fa-hdd-o'; - } else { - $itemicon = 'fa fa-paperclip'; - } + } return $itemicon; }