A free open source IT asset/license management system
Make codacy happy
snipe389eedd4ec61
diff --git a/app/Http/Traits/UniqueUndeletedTrait.php b/app/Http/Traits/UniqueUndeletedTrait.phpindex b8c95f9353..c16d7796f3 100644--- a/app/Http/Traits/UniqueUndeletedTrait.php+++ b/app/Http/Traits/UniqueUndeletedTrait.php@@ -33,10 +33,13 @@ trait UniqueUndeletedTrait* other locations whose parent_id (and company_id) match, not* globally as `unique_undeleted` does.*+ * ValidatingTrait calls this via `call_user_func_array` with+ * `[$parameters, $field]`, but we do not use the field name here so+ * only $parameters is declared. PHP silently discards the extra arg.+ ** @param array $parameters the scope column names declared on the model- * @param string $field the attribute being validated*/- protected function prepareUniqueUndeletedInScopeRule($parameters, $field)+ protected function prepareUniqueUndeletedInScopeRule($parameters){$id = $this->exists ? $this->getKey() : 0;