psalm happiness
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
This commit is contained in:
parent
8ec640d14a
commit
8235d90ecc
|
@ -1769,9 +1769,6 @@
|
||||||
</TooManyArguments>
|
</TooManyArguments>
|
||||||
</file>
|
</file>
|
||||||
<file src="apps/lookup_server_connector/lib/BackgroundJobs/RetryJob.php">
|
<file src="apps/lookup_server_connector/lib/BackgroundJobs/RetryJob.php">
|
||||||
<InvalidArrayOffset occurrences="1">
|
|
||||||
<code>$publicData[IAccountManager::PROPERTY_DISPLAYNAME]['value']</code>
|
|
||||||
</InvalidArrayOffset>
|
|
||||||
<InvalidScalarArgument occurrences="1">
|
<InvalidScalarArgument occurrences="1">
|
||||||
<code>$this->retries + 1</code>
|
<code>$this->retries + 1</code>
|
||||||
</InvalidScalarArgument>
|
</InvalidScalarArgument>
|
||||||
|
|
|
@ -142,7 +142,7 @@ class AccountManager implements IAccountManager {
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function sanitizeLength(array &$propertyData, bool $throwOnData = false): void {
|
protected function sanitizeLength(array &$propertyData, bool $throwOnData = false): void {
|
||||||
if (isset($propertyData) && isset($propertyData['value']) && strlen($propertyData['value']) > 2048) {
|
if (isset($propertyData['value']) && strlen($propertyData['value']) > 2048) {
|
||||||
if ($throwOnData) {
|
if ($throwOnData) {
|
||||||
throw new \InvalidArgumentException();
|
throw new \InvalidArgumentException();
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue