chore: fix cgl issues flagged by phpstan
This commit is contained in:
1 parent
f47142c465
commit
2f8701c2e0
6 files changed
+50
-111
No files matched your search
@@ -48,6 +48,9 @@ class DatabaseAnonymizer
|
||||
$this->identitySequence = 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return array{users: int, newsletterConsents: int, newsletterOptInRequests: int, bookingEditDrafts: int}
|
||||
*/
|
||||
public function anonymizeAll(int $batchSize = self::DEFAULT_BATCH_SIZE): array
|
||||
{
|
||||
if ($batchSize < 1) {
|
||||
@@ -405,6 +408,9 @@ class DatabaseAnonymizer
|
||||
return null !== $this->stringOrNull($value);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array<string, string> $identity
|
||||
*/
|
||||
private function placeholderText(array $identity, string $suffix): string
|
||||
{
|
||||
return sprintf('%s-%s', $identity['lastName'], $suffix);
|
||||
|
||||
Reference in new issue
Block a user