From 2034498545dd528e6e3c5bb0337f839dc2488ce0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-Fran=C3=A7ois=20L=C3=A9pine?= Date: Mon, 20 Jan 2025 10:53:52 +0100 Subject: [PATCH] applied suggestions about phpdoc and style --- .../src/ComponentPropertiesExtractor.php | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/TwigComponent/src/ComponentPropertiesExtractor.php b/src/TwigComponent/src/ComponentPropertiesExtractor.php index 3fee21ab1c..db3ca36229 100644 --- a/src/TwigComponent/src/ComponentPropertiesExtractor.php +++ b/src/TwigComponent/src/ComponentPropertiesExtractor.php @@ -17,7 +17,7 @@ /** * @author Jean-François Lépine - * + * * @experimental This class is not covered by the BC promise yet */ final class ComponentPropertiesExtractor @@ -28,17 +28,19 @@ public function __construct( } /** - * Returns a list of properties from a Component. + * Returns a list of properties from a Component. * * Warning: We do not recommend using this method at runtime, as it is rather slow. + * + * @return array */ public function getComponentProperties(ComponentMetadata $metadata): array { - if ($medata->isAnonymous()) { - return $this->getAnonymousComponentProperties($medata); + if ($metadata->isAnonymous()) { + return $this->getAnonymousComponentProperties($metadata); } - return $this->getNonAnonymousComponentProperties($medata); + return $this->getNonAnonymousComponentProperties($metadata); } /**