Updated availableForCheckout() method to be clearer

This commit is contained in:
snipe 2017-10-28 02:31:54 -07:00
parent df430a2263
commit 3064b3f80e

View file

@ -127,11 +127,10 @@ class Asset extends Depreciable
public function availableForCheckout() public function availableForCheckout()
{ {
return ( if ((empty($this->assigned_to)) && (empty($this->deleted_at)) && ($this->assetstatus->deployable == 1)) {
empty($this->assigned_to) && return true;
$this->assetstatus->deployable == 1 && }
empty($this->deleted_at) return false;
);
} }
/** /**