Completed
Push — master ( 2a1d1e...a0a921 )
by Ondrej
01:40
created
src/Voter/RoleVoter.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -26,12 +26,12 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.