mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-01-15 06:39:33 +00:00
Removed german comments
This commit is contained in:
parent
232094640a
commit
034cba55a6
1 changed files with 2 additions and 2 deletions
|
|
@ -19,17 +19,17 @@ class UniquePartIpnValidator extends ConstraintValidator
|
||||||
$this->ipnSuggestSettings = $ipnSuggestSettings;
|
$this->ipnSuggestSettings = $ipnSuggestSettings;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function validate($value, Constraint $constraint)
|
public function validate($value, Constraint $constraint): void
|
||||||
{
|
{
|
||||||
if (null === $value || '' === $value) {
|
if (null === $value || '' === $value) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//If the autoAppendSuffix option is enabled, the IPN becomes unique automatically later
|
||||||
if ($this->ipnSuggestSettings->autoAppendSuffix) {
|
if ($this->ipnSuggestSettings->autoAppendSuffix) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Stelle sicher, dass es unser eigenes Constraint ist (wichtig für PHPStan)
|
|
||||||
if (!$constraint instanceof UniquePartIpnConstraint) {
|
if (!$constraint instanceof UniquePartIpnConstraint) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue