diff --git a/cookbook/security/voters.rst b/cookbook/security/voters.rst index 8649295180a..8522f80c8e4 100644 --- a/cookbook/security/voters.rst +++ b/cookbook/security/voters.rst @@ -150,7 +150,7 @@ would look like this:: /** @var Post $post */ $post = $subject; - switch($attribute) { + switch ($attribute) { case self::VIEW: return $this->canView($post, $user); case self::EDIT: