8000 minor #6674 CheckStyle in Voters cookbook (JakeFr) · symfony/symfony-docs@527595d · GitHub
[go: up one dir, main page]

Skip to content

Commit 527595d

Browse files
committed
minor #6674 CheckStyle in Voters cookbook (JakeFr)
This PR was submitted for the 3.1 branch but it was merged into the 2.7 branch instead (closes #6674). Discussion ---------- CheckStyle in Voters cookbook Hello! Apply fixes done by php-cs-fixer (Symfony level) after copy/paste this code sample in a project Commits ------- 9c5a0ba CheckStyle in Voters cookbook
2 parents 76da97a + 9c5a0ba commit 527595d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cookbook/security/voters.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ edit a particular object. Here's an example implementation:
9797
throw new \LogicException('The user is somehow not our User class!');
9898
}
9999
100-
switch($attribute) {
100+
switch ($attribute) {
101101
case self::VIEW:
102102
// the data object could have for example a method isPrivate()
103103
// which checks the Boolean attribute $private

0 commit comments

Comments
 (0)
0