Verified Commit 527ed343 authored by Côme Chilliet's avatar Côme Chilliet
Browse files

🚑 fix(plugins) Fix two mistakes spotted by sonar

issue #6061
parent 543fd6dd
......@@ -519,7 +519,7 @@ class faiPartition extends simplePlugin
}
}
return $messages;
return $errors;
}
function save (): array
......
......@@ -73,7 +73,7 @@ class SocialAccountAttribute extends CompositeAttribute
$value = $handler->validate($this->attributes[1]->getValue());
$this->attributes[1]->setValue($value);
} catch (socialHandlerInvalidValueException $e) {
new SimplePluginCheckError(
return new SimplePluginCheckError(
$this,
htmlescape($e->getMessage()),
0,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment