Skip to content

Commit c056735

Browse files
authored
AdminIdentity: Fix coding standard rules.
1 parent 98a7236 commit c056735

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/User/AdminIdentity.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,13 @@ public function __construct(
2020
?array $roles = null,
2121
?iterable $data = null,
2222
?string $name = null,
23-
?string $avatarUrl = null
23+
?string $avatarUrl = null,
2424
) {
2525
parent::__construct($id, $roles, $data);
2626
$this->name = $name;
2727
if ($avatarUrl !== null) {
2828
if (Validators::isUrl($avatarUrl) === false) {
29-
throw new \InvalidArgumentException('Avatar URL is not valid URL, because "' . $avatarUrl . '" given.');
29+
throw new \InvalidArgumentException(sprintf('Avatar URL is not valid URL, because "%s" given.', $avatarUrl));
3030
}
3131
$this->avatarUrl = $avatarUrl;
3232
}

0 commit comments

Comments
 (0)