Completed
Pull Request — master (#2)
by Ondrej
01:50
created
src/Voter/ClosureVoter.php 1 patch
Indentation   +19 added lines, -19 removed lines patch added patch discarded remove patch
@@ -35,28 +35,28 @@
 block discarded – undo
35 35
 		$closure = $this->authorizationClosure;
36 36
 		$result = $closure($votingSubject, $votingContext);
37 37
 
38
-        $result = $this->prepareResult($result);
38
+		$result = $this->prepareResult($result);
39 39
 
40
-        return $result;
40
+		return $result;
41 41
 	}
42 42
 
43 43
 
44 44
 	/**
45
-     * @param mixed $result
46
-     * @return SingleVoterResult
47
-     */
48
-    public function prepareResult($result)
49
-    {
50
-        if ($result === true) {
51
-            $result = new SingleVoterResult(VotingDecisionEnum::ALLOWED());
52
-            return $result;
53
-        } elseif ($result === false) {
54
-            $result = new SingleVoterResult(VotingDecisionEnum::DENIED());
55
-            return $result;
56
-        } elseif ($result instanceof VotingDecisionEnum) {
57
-            $result = new SingleVoterResult($result);
58
-            return $result;
59
-        }
60
-        return $result;
61
-    }
45
+	 * @param mixed $result
46
+	 * @return SingleVoterResult
47
+	 */
48
+	public function prepareResult($result)
49
+	{
50
+		if ($result === true) {
51
+			$result = new SingleVoterResult(VotingDecisionEnum::ALLOWED());
52
+			return $result;
53
+		} elseif ($result === false) {
54
+			$result = new SingleVoterResult(VotingDecisionEnum::DENIED());
55
+			return $result;
56
+		} elseif ($result instanceof VotingDecisionEnum) {
57
+			$result = new SingleVoterResult($result);
58
+			return $result;
59
+		}
60
+		return $result;
61
+	}
62 62
 }
Please login to merge, or discard this patch.