@@ -56,8 +56,9 @@ |
||
| 56 | 56 | new MaximumLength($this->maxLength)); |
| 57 | 57 | |
| 58 | 58 | $result = $rule->validate($username); |
| 59 | - if ($result->isValid()) |
|
| 60 | - return new Success(); |
|
| 59 | + if ($result->isValid()) { |
|
| 60 | + return new Success(); |
|
| 61 | + } |
|
| 61 | 62 | /** |
| 62 | 63 | * @var Failure $result |
| 63 | 64 | */ |