A free open source IT asset/license management system
Codacy tweaks
snipe0ac63a8ac69e
diff --git a/app/Helpers/Helper.php b/app/Helpers/Helper.phpindex a7fe9b3f82..3e8afdf931 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: \''.$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 202a4a634f..1cd70b0a33 100644--- a/app/Models/Asset.php+++ b/app/Models/Asset.php@@ -770,7 +770,7 @@ class Asset extends Depreciable$first_asset = $this;}if ($iterations > 10) {- throw new \Exception('Asset assignment Loop for Asset ID: '.$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) {