mirror of
https://github.com/retailcrm/NelmioApiDocBundle.git
synced 2025-02-13 04:59:24 +03:00
Fix codestyle
This commit is contained in:
parent
5d8765db04
commit
7fc2f99158
@ -54,5 +54,4 @@ class ArrayPropertyDescriber implements PropertyDescriberInterface, ModelRegistr
|
|||||||
{
|
{
|
||||||
return $type->isCollection();
|
return $type->isCollection();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
|
||||||
|
@ -16,7 +16,6 @@ use Symfony\Component\PropertyInfo\Type;
|
|||||||
|
|
||||||
class BooleanPropertyDescriber implements PropertyDescriberInterface
|
class BooleanPropertyDescriber implements PropertyDescriberInterface
|
||||||
{
|
{
|
||||||
|
|
||||||
public function describe(Type $type, Schema $property, array $groups)
|
public function describe(Type $type, Schema $property, array $groups)
|
||||||
{
|
{
|
||||||
$property->setType('boolean');
|
$property->setType('boolean');
|
||||||
@ -26,4 +25,4 @@ class BooleanPropertyDescriber implements PropertyDescriberInterface
|
|||||||
{
|
{
|
||||||
return Type::BUILTIN_TYPE_BOOL === $type->getBuiltinType();
|
return Type::BUILTIN_TYPE_BOOL === $type->getBuiltinType();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -16,7 +16,6 @@ use Symfony\Component\PropertyInfo\Type;
|
|||||||
|
|
||||||
class DateTimePropertyDescriber implements PropertyDescriberInterface
|
class DateTimePropertyDescriber implements PropertyDescriberInterface
|
||||||
{
|
{
|
||||||
|
|
||||||
public function describe(Type $type, Schema $property, array $groups)
|
public function describe(Type $type, Schema $property, array $groups)
|
||||||
{
|
{
|
||||||
$property->setType('string');
|
$property->setType('string');
|
||||||
@ -28,4 +27,4 @@ class DateTimePropertyDescriber implements PropertyDescriberInterface
|
|||||||
return Type::BUILTIN_TYPE_OBJECT === $type->getBuiltinType()
|
return Type::BUILTIN_TYPE_OBJECT === $type->getBuiltinType()
|
||||||
&& is_a($type->getClassName(), \DateTimeInterface::class, true);
|
&& is_a($type->getClassName(), \DateTimeInterface::class, true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -16,7 +16,6 @@ use Symfony\Component\PropertyInfo\Type;
|
|||||||
|
|
||||||
class FloatPropertyDescriber implements PropertyDescriberInterface
|
class FloatPropertyDescriber implements PropertyDescriberInterface
|
||||||
{
|
{
|
||||||
|
|
||||||
public function describe(Type $type, Schema $property, array $groups)
|
public function describe(Type $type, Schema $property, array $groups)
|
||||||
{
|
{
|
||||||
$property->setType('number');
|
$property->setType('number');
|
||||||
@ -27,4 +26,4 @@ class FloatPropertyDescriber implements PropertyDescriberInterface
|
|||||||
{
|
{
|
||||||
return Type::BUILTIN_TYPE_FLOAT === $type->getBuiltinType();
|
return Type::BUILTIN_TYPE_FLOAT === $type->getBuiltinType();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -16,7 +16,6 @@ use Symfony\Component\PropertyInfo\Type;
|
|||||||
|
|
||||||
class IntegerPropertyDescriber implements PropertyDescriberInterface
|
class IntegerPropertyDescriber implements PropertyDescriberInterface
|
||||||
{
|
{
|
||||||
|
|
||||||
public function describe(Type $type, Schema $property, array $groups)
|
public function describe(Type $type, Schema $property, array $groups)
|
||||||
{
|
{
|
||||||
$property->setType('integer');
|
$property->setType('integer');
|
||||||
@ -26,4 +25,4 @@ class IntegerPropertyDescriber implements PropertyDescriberInterface
|
|||||||
{
|
{
|
||||||
return Type::BUILTIN_TYPE_INT === $type->getBuiltinType();
|
return Type::BUILTIN_TYPE_INT === $type->getBuiltinType();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -34,4 +34,4 @@ class ObjectPropertyDescriber implements PropertyDescriberInterface, ModelRegist
|
|||||||
{
|
{
|
||||||
return Type::BUILTIN_TYPE_OBJECT === $type->getBuiltinType();
|
return Type::BUILTIN_TYPE_OBJECT === $type->getBuiltinType();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -11,12 +11,12 @@
|
|||||||
|
|
||||||
namespace Nelmio\ApiDocBundle\PropertyDescriber;
|
namespace Nelmio\ApiDocBundle\PropertyDescriber;
|
||||||
|
|
||||||
use Symfony\Component\PropertyInfo\Type;
|
|
||||||
use EXSyst\Component\Swagger\Schema;
|
use EXSyst\Component\Swagger\Schema;
|
||||||
|
use Symfony\Component\PropertyInfo\Type;
|
||||||
|
|
||||||
interface PropertyDescriberInterface
|
interface PropertyDescriberInterface
|
||||||
{
|
{
|
||||||
public function describe(Type $type, Schema $property, array $groups);
|
public function describe(Type $type, Schema $property, array $groups);
|
||||||
|
|
||||||
public function supports(Type $type): bool;
|
public function supports(Type $type): bool;
|
||||||
}
|
}
|
||||||
|
@ -16,7 +16,6 @@ use Symfony\Component\PropertyInfo\Type;
|
|||||||
|
|
||||||
class StringPropertyDescriber implements PropertyDescriberInterface
|
class StringPropertyDescriber implements PropertyDescriberInterface
|
||||||
{
|
{
|
||||||
|
|
||||||
public function describe(Type $type, Schema $property, array $groups)
|
public function describe(Type $type, Schema $property, array $groups)
|
||||||
{
|
{
|
||||||
$property->setType('string');
|
$property->setType('string');
|
||||||
@ -26,4 +25,4 @@ class StringPropertyDescriber implements PropertyDescriberInterface
|
|||||||
{
|
{
|
||||||
return Type::BUILTIN_TYPE_STRING === $type->getBuiltinType();
|
return Type::BUILTIN_TYPE_STRING === $type->getBuiltinType();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user