Skip to content

A free open source IT asset/license management system

Aaaand pint

snipe64f346a5f092
diff --git a/app/Helpers/Helper.php b/app/Helpers/Helper.php
index 3e8afdf931..80edca68ec 100644
--- a/app/Helpers/Helper.php
+++ b/app/Helpers/Helper.php
@@ -1511,7 +1511,7 @@ class Helper
case '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.php
index 1cd70b0a33..8a9391dc31 100644
--- a/app/Models/Asset.php
+++ b/app/Models/Asset.php
@@ -634,8 +634,6 @@ class Asset extends Depreciable
return $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 errors
if ($assigned_to) {