From 3064b3f80e9c75355fed953cab91da72c8291603 Mon Sep 17 00:00:00 2001 From: snipe Date: Sat, 28 Oct 2017 02:31:54 -0700 Subject: [PATCH] Updated availableForCheckout() method to be clearer --- app/Models/Asset.php | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/app/Models/Asset.php b/app/Models/Asset.php index 798d4cd4c9..219f1ca0a4 100644 --- a/app/Models/Asset.php +++ b/app/Models/Asset.php @@ -127,11 +127,10 @@ class Asset extends Depreciable public function availableForCheckout() { - return ( - empty($this->assigned_to) && - $this->assetstatus->deployable == 1 && - empty($this->deleted_at) - ); + if ((empty($this->assigned_to)) && (empty($this->deleted_at)) && ($this->assetstatus->deployable == 1)) { + return true; + } + return false; } /**