@@ -26,7 +26,7 @@ |
||
| 26 | 26 | */ |
| 27 | 27 | public function __construct($purpose, $allowedRoles) |
| 28 | 28 | { |
| 29 | - if (!in_array($purpose, [IVotingResult::ALLOW, IVotingResult::DENY ])) { |
|
| 29 | + if (!in_array($purpose, [ IVotingResult::ALLOW, IVotingResult::DENY ])) { |
|
| 30 | 30 | throw new InvalidArgumentException(sprintf("Wrong voting purpose for this voter: got %s, expected one of allow, deny.", $purpose)); |
| 31 | 31 | } |
| 32 | 32 | |