A free open source IT asset/license management system
Aaaand pint
snipe64f346a5f092
diff --git a/app/Helpers/Helper.php b/app/Helpers/Helper.phpindex 3e8afdf931..80edca68ec 100644--- a/app/Helpers/Helper.php+++ b/app/Helpers/Helper.php@@ -1511,7 +1511,7 @@ class Helpercase 'pt':return (1 / 72) * static::getUnitConversionFactor('in');default:- throw new \InvalidArgumentException('Unit: ' . e($unit) . ' is not supported');+ throw new \InvalidArgumentException('Unit: '.e($unit).' is not supported');return false;}diff --git a/app/Models/Asset.php b/app/Models/Asset.phpindex 1cd70b0a33..8a9391dc31 100644--- a/app/Models/Asset.php+++ b/app/Models/Asset.php@@ -634,8 +634,6 @@ class Asset extends Depreciablereturn $this->hasOneThrough(Category::class, AssetModel::class, 'id', 'id', 'model_id', 'category_id');}--/*** Establishes the asset -> depreciation relationship*@@ -770,7 +768,7 @@ class Asset extends Depreciable$first_asset = $this;}if ($iterations > 10) {- throw new \Exception('Asset assignment Loop for Asset ID: ' . e($first_asset->id));+ throw new \Exception('Asset assignment Loop for Asset ID: '.e($first_asset->id));}$assigned_to = self::find($this->assigned_to); // have to do this this way because otherwise it errorsif ($assigned_to) {