From 582d58a97a40ed515884f2afce00b5f8bd839798 Mon Sep 17 00:00:00 2001 From: Christian Flothmann Date: Wed, 3 Jan 2018 07:50:38 +0100 Subject: [PATCH] make StyleCI happy again --- .styleci.yml | 1 + Context/Context.php | 6 ++++++ Controller/Annotations/AbstractParam.php | 6 ++++++ Controller/Annotations/AbstractScalarParam.php | 2 ++ Controller/Annotations/FileParam.php | 3 +++ Controller/Annotations/RouteResource.php | 1 + Serializer/JMSSerializerAdapter.php | 1 + Tests/EventListener/VersionListenerTest.php | 2 ++ 8 files changed, 22 insertions(+) diff --git a/.styleci.yml b/.styleci.yml index cd698522a..9757c85e2 100644 --- a/.styleci.yml +++ b/.styleci.yml @@ -1,3 +1,4 @@ preset: symfony disabled: - braces + - property_separation diff --git a/Context/Context.php b/Context/Context.php index 6b3daa515..055b95bcb 100644 --- a/Context/Context.php +++ b/Context/Context.php @@ -24,26 +24,32 @@ final class Context * @var array */ private $attributes = array(); + /** * @var int|null */ private $version; + /** * @var array|null */ private $groups; + /** * @var int */ private $maxDepth; + /** * @var bool */ private $isMaxDepthEnabled; + /** * @var bool */ private $serializeNull; + /** * @var ExclusionStrategyInterface[] */ diff --git a/Controller/Annotations/AbstractParam.php b/Controller/Annotations/AbstractParam.php index 3179cf7a3..189d7b4c6 100644 --- a/Controller/Annotations/AbstractParam.php +++ b/Controller/Annotations/AbstractParam.php @@ -24,16 +24,22 @@ abstract class AbstractParam implements ParamInterface { /** @var string */ public $name; + /** @var string */ public $key; + /** @var mixed */ public $default; + /** @var string */ public $description; + /** @var bool */ public $strict = false; + /** @var bool */ public $nullable = false; + /** @var array */ public $incompatibles = array(); diff --git a/Controller/Annotations/AbstractScalarParam.php b/Controller/Annotations/AbstractScalarParam.php index 7f9d4a3c1..8cf85247d 100644 --- a/Controller/Annotations/AbstractScalarParam.php +++ b/Controller/Annotations/AbstractScalarParam.php @@ -25,8 +25,10 @@ abstract class AbstractScalarParam extends AbstractParam { /** @var mixed */ public $requirements = null; + /** @var bool */ public $map = false; + /** @var bool */ public $allowBlank = true; diff --git a/Controller/Annotations/FileParam.php b/Controller/Annotations/FileParam.php index 2e5cae919..02767e0e5 100644 --- a/Controller/Annotations/FileParam.php +++ b/Controller/Annotations/FileParam.php @@ -28,10 +28,13 @@ class FileParam extends AbstractParam { /** @var bool */ public $strict = true; + /** @var mixed */ public $requirements = null; + /** @var bool */ public $image = false; + /** @var bool */ public $map = false; diff --git a/Controller/Annotations/RouteResource.php b/Controller/Annotations/RouteResource.php index 28da9c875..05ada940b 100644 --- a/Controller/Annotations/RouteResource.php +++ b/Controller/Annotations/RouteResource.php @@ -23,6 +23,7 @@ class RouteResource * @var string required */ public $resource; + /** * @var bool */ diff --git a/Serializer/JMSSerializerAdapter.php b/Serializer/JMSSerializerAdapter.php index 44878b51c..422a9a6f0 100644 --- a/Serializer/JMSSerializerAdapter.php +++ b/Serializer/JMSSerializerAdapter.php @@ -30,6 +30,7 @@ class JMSSerializerAdapter implements Serializer * @internal */ const SERIALIZATION = 0; + /** * @internal */ diff --git a/Tests/EventListener/VersionListenerTest.php b/Tests/EventListener/VersionListenerTest.php index 6e46a6cb6..3365e45ac 100644 --- a/Tests/EventListener/VersionListenerTest.php +++ b/Tests/EventListener/VersionListenerTest.php @@ -27,10 +27,12 @@ class VersionListenerTest extends TestCase * @var \FOS\RestBundle\View\ConfigurableViewHandlerInterface */ private $viewHandler; + /** * @var \FOS\RestBundle\Version\VersionResolverInterface */ private $resolver; + /** * @var VersionListener */