From 7fc2f991584ffd98832de17076ca9e95083a48dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Filip=20Ben=C4=8Do?= Date: Fri, 13 Dec 2019 22:48:28 +0100 Subject: [PATCH] Fix codestyle --- PropertyDescriber/ArrayPropertyDescriber.php | 3 +-- PropertyDescriber/BooleanPropertyDescriber.php | 3 +-- PropertyDescriber/DateTimePropertyDescriber.php | 3 +-- PropertyDescriber/FloatPropertyDescriber.php | 3 +-- PropertyDescriber/IntegerPropertyDescriber.php | 3 +-- PropertyDescriber/ObjectPropertyDescriber.php | 2 +- PropertyDescriber/PropertyDescriberInterface.php | 4 ++-- PropertyDescriber/StringPropertyDescriber.php | 3 +-- 8 files changed, 9 insertions(+), 15 deletions(-) diff --git a/PropertyDescriber/ArrayPropertyDescriber.php b/PropertyDescriber/ArrayPropertyDescriber.php index 0a05e8e..a7e6941 100644 --- a/PropertyDescriber/ArrayPropertyDescriber.php +++ b/PropertyDescriber/ArrayPropertyDescriber.php @@ -54,5 +54,4 @@ class ArrayPropertyDescriber implements PropertyDescriberInterface, ModelRegistr { return $type->isCollection(); } - -} \ No newline at end of file +} diff --git a/PropertyDescriber/BooleanPropertyDescriber.php b/PropertyDescriber/BooleanPropertyDescriber.php index 8d16c7f..73a0cd9 100644 --- a/PropertyDescriber/BooleanPropertyDescriber.php +++ b/PropertyDescriber/BooleanPropertyDescriber.php @@ -16,7 +16,6 @@ use Symfony\Component\PropertyInfo\Type; class BooleanPropertyDescriber implements PropertyDescriberInterface { - public function describe(Type $type, Schema $property, array $groups) { $property->setType('boolean'); @@ -26,4 +25,4 @@ class BooleanPropertyDescriber implements PropertyDescriberInterface { return Type::BUILTIN_TYPE_BOOL === $type->getBuiltinType(); } -} \ No newline at end of file +} diff --git a/PropertyDescriber/DateTimePropertyDescriber.php b/PropertyDescriber/DateTimePropertyDescriber.php index 57f4533..99b6885 100644 --- a/PropertyDescriber/DateTimePropertyDescriber.php +++ b/PropertyDescriber/DateTimePropertyDescriber.php @@ -16,7 +16,6 @@ use Symfony\Component\PropertyInfo\Type; class DateTimePropertyDescriber implements PropertyDescriberInterface { - public function describe(Type $type, Schema $property, array $groups) { $property->setType('string'); @@ -28,4 +27,4 @@ class DateTimePropertyDescriber implements PropertyDescriberInterface return Type::BUILTIN_TYPE_OBJECT === $type->getBuiltinType() && is_a($type->getClassName(), \DateTimeInterface::class, true); } -} \ No newline at end of file +} diff --git a/PropertyDescriber/FloatPropertyDescriber.php b/PropertyDescriber/FloatPropertyDescriber.php index 778e441..e784fa7 100644 --- a/PropertyDescriber/FloatPropertyDescriber.php +++ b/PropertyDescriber/FloatPropertyDescriber.php @@ -16,7 +16,6 @@ use Symfony\Component\PropertyInfo\Type; class FloatPropertyDescriber implements PropertyDescriberInterface { - public function describe(Type $type, Schema $property, array $groups) { $property->setType('number'); @@ -27,4 +26,4 @@ class FloatPropertyDescriber implements PropertyDescriberInterface { return Type::BUILTIN_TYPE_FLOAT === $type->getBuiltinType(); } -} \ No newline at end of file +} diff --git a/PropertyDescriber/IntegerPropertyDescriber.php b/PropertyDescriber/IntegerPropertyDescriber.php index 094127b..cc318d8 100644 --- a/PropertyDescriber/IntegerPropertyDescriber.php +++ b/PropertyDescriber/IntegerPropertyDescriber.php @@ -16,7 +16,6 @@ use Symfony\Component\PropertyInfo\Type; class IntegerPropertyDescriber implements PropertyDescriberInterface { - public function describe(Type $type, Schema $property, array $groups) { $property->setType('integer'); @@ -26,4 +25,4 @@ class IntegerPropertyDescriber implements PropertyDescriberInterface { return Type::BUILTIN_TYPE_INT === $type->getBuiltinType(); } -} \ No newline at end of file +} diff --git a/PropertyDescriber/ObjectPropertyDescriber.php b/PropertyDescriber/ObjectPropertyDescriber.php index dc853ea..792f5da 100644 --- a/PropertyDescriber/ObjectPropertyDescriber.php +++ b/PropertyDescriber/ObjectPropertyDescriber.php @@ -34,4 +34,4 @@ class ObjectPropertyDescriber implements PropertyDescriberInterface, ModelRegist { return Type::BUILTIN_TYPE_OBJECT === $type->getBuiltinType(); } -} \ No newline at end of file +} diff --git a/PropertyDescriber/PropertyDescriberInterface.php b/PropertyDescriber/PropertyDescriberInterface.php index f6e9fee..7ef3a1d 100644 --- a/PropertyDescriber/PropertyDescriberInterface.php +++ b/PropertyDescriber/PropertyDescriberInterface.php @@ -11,12 +11,12 @@ namespace Nelmio\ApiDocBundle\PropertyDescriber; -use Symfony\Component\PropertyInfo\Type; use EXSyst\Component\Swagger\Schema; +use Symfony\Component\PropertyInfo\Type; interface PropertyDescriberInterface { public function describe(Type $type, Schema $property, array $groups); public function supports(Type $type): bool; -} \ No newline at end of file +} diff --git a/PropertyDescriber/StringPropertyDescriber.php b/PropertyDescriber/StringPropertyDescriber.php index a269b37..630cbf6 100644 --- a/PropertyDescriber/StringPropertyDescriber.php +++ b/PropertyDescriber/StringPropertyDescriber.php @@ -16,7 +16,6 @@ use Symfony\Component\PropertyInfo\Type; class StringPropertyDescriber implements PropertyDescriberInterface { - public function describe(Type $type, Schema $property, array $groups) { $property->setType('string'); @@ -26,4 +25,4 @@ class StringPropertyDescriber implements PropertyDescriberInterface { return Type::BUILTIN_TYPE_STRING === $type->getBuiltinType(); } -} \ No newline at end of file +}