@@ -26,12 +26,12 @@ |
||
| 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 | |
| 33 | 33 | $this->purpose = $purpose; |
| 34 | - $this->allowedRoles = (array) $allowedRoles; |
|
| 34 | + $this->allowedRoles = (array)$allowedRoles; |
|
| 35 | 35 | } |
| 36 | 36 | |
| 37 | 37 | |