From df954a3af2dd47533a66cc11cc69c6cc54f33bf5 Mon Sep 17 00:00:00 2001 From: spencerrlongg Date: Thu, 30 Nov 2023 12:06:58 -0600 Subject: [PATCH] return types --- app/Models/Asset.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/app/Models/Asset.php b/app/Models/Asset.php index 8505c12cfe..5c5d861ed3 100644 --- a/app/Models/Asset.php +++ b/app/Models/Asset.php @@ -466,19 +466,18 @@ class Asset extends Depreciable * * @author [A. Gianotto] [] * @since [v4.0] - * @return bool */ - public function checkedOutToUser() + public function checkedOutToUser(): bool { return $this->assignedType() === self::USER; } - public function checkedOutToLocation() + public function checkedOutToLocation(): bool { return $this->assignedType() === self::LOCATION; } - public function checkedOutToAsset() + public function checkedOutToAsset(): bool { return $this->assignedType() === self::ASSET; }