From c3097c743940ed69b365fadd0afe63d883dffcfc Mon Sep 17 00:00:00 2001 From: William DURAND Date: Wed, 11 Dec 2013 01:59:59 +0100 Subject: [PATCH] cs --- Extractor/Handler/JmsSecurityExtraHandler.php | 2 +- Parser/ValidationParser.php | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Extractor/Handler/JmsSecurityExtraHandler.php b/Extractor/Handler/JmsSecurityExtraHandler.php index b1eeada..8aae3d1 100644 --- a/Extractor/Handler/JmsSecurityExtraHandler.php +++ b/Extractor/Handler/JmsSecurityExtraHandler.php @@ -24,7 +24,7 @@ class JmsSecurityExtraHandler implements HandlerInterface foreach ($annotations as $annot) { if ($annot instanceof PreAuthorize) { $annotation->setAuthentication(true); - } else if ($annot instanceof Secure) { + } elseif ($annot instanceof Secure) { $annotation->setAuthentication(true); $annotation->setAuthenticationRoles(is_array($annot->roles) ? $annot->roles : explode(',', $annot->roles)); } diff --git a/Parser/ValidationParser.php b/Parser/ValidationParser.php index 646b4f5..a7281e2 100644 --- a/Parser/ValidationParser.php +++ b/Parser/ValidationParser.php @@ -52,6 +52,7 @@ class ValidationParser implements ParserInterface, PostParserInterface public function parse(array $input) { $className = $input['class']; + return $this->doParse($className, array()); } @@ -62,7 +63,7 @@ class ValidationParser implements ParserInterface, PostParserInterface * @param array $visited * @return array */ - protected function doParse ($className, array $visited) + protected function doParse($className, array $visited) { $params = array(); $classdata = $this->factory->getMetadataFor($className);