mirror of
https://github.com/retailcrm/NelmioApiDocBundle.git
synced 2025-03-10 09:36:10 +03:00
fixed cs
This commit is contained in:
parent
149f282481
commit
68767f6c72
@ -4,9 +4,7 @@ namespace Nelmio\ApiDocBundle\DependencyInjection;
|
||||
|
||||
use Symfony\Component\DependencyInjection\ContainerBuilder;
|
||||
use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface;
|
||||
use Symfony\Component\DependencyInjection\Reference;
|
||||
use Symfony\Component\DependencyInjection\Loader\XmlFileLoader;
|
||||
use Symfony\Component\Config\Definition\Processor;
|
||||
use Symfony\Component\Config\FileLocator;
|
||||
|
||||
class RegisterJmsParserPass implements CompilerPassInterface
|
||||
|
@ -32,7 +32,7 @@ class JmsMetadataParser implements ParserInterface
|
||||
*/
|
||||
public function supports($input)
|
||||
{
|
||||
if($meta = $this->factory->getMetadataForClass($input)) {
|
||||
if ($meta = $this->factory->getMetadataForClass($input)) {
|
||||
return true;
|
||||
}
|
||||
|
||||
@ -46,7 +46,7 @@ class JmsMetadataParser implements ParserInterface
|
||||
{
|
||||
$meta = $this->factory->getMetadataForClass($input);
|
||||
|
||||
if(is_null($meta)) {
|
||||
if (is_null($meta)) {
|
||||
throw new \InvalidArgumentException(sprintf("No metadata found for class %s", $input));
|
||||
}
|
||||
|
||||
@ -78,7 +78,6 @@ class JmsMetadataParser implements ParserInterface
|
||||
|
||||
//TODO: regex comment to get description - or move doc comment parsing functionality from `ApiDocExtractor` to a new location
|
||||
//in order to reuse it here
|
||||
|
||||
return $description;
|
||||
}
|
||||
|
||||
|
@ -55,4 +55,3 @@ jms_serializer:
|
||||
# class: My\FooBundle\Entity\User
|
||||
# expected path: @MyFooBundle/Resources/config/serializer/Entity.User.(yml|xml|php)
|
||||
auto_detection: true
|
||||
|
||||
|
@ -69,4 +69,3 @@ test_service_route_4:
|
||||
NelmioApiDocBundle:
|
||||
resource: "@NelmioApiDocBundle/Resources/config/routing.yml"
|
||||
prefix: /
|
||||
|
Loading…
x
Reference in New Issue
Block a user