From 323c60eb6d29e8c8dae5fa3a477ceaa95fb10d32 Mon Sep 17 00:00:00 2001 From: fshcherbanich Date: Sun, 10 Sep 2023 17:03:01 +0300 Subject: [PATCH 01/12] Fixing StrTypeToUrl output --- src/Core/Renderer/Twig/Filter/StrTypeToUrl.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/Core/Renderer/Twig/Filter/StrTypeToUrl.php b/src/Core/Renderer/Twig/Filter/StrTypeToUrl.php index aac42857..3764fe10 100644 --- a/src/Core/Renderer/Twig/Filter/StrTypeToUrl.php +++ b/src/Core/Renderer/Twig/Filter/StrTypeToUrl.php @@ -81,7 +81,12 @@ public function __invoke( } else { $type = "\\{$entityOfLink->getName()}"; } - $preparedTypes[] = "{$type}"; + + if ($link && $link !== '#') { + $preparedTypes[] = "{$type}"; + } else { + $preparedTypes[] = $type; + } } } else { if ($entityOfLink::isEntityNameValid($type)) { From 2de99e99203936016fac9070e69fbc14da60eaed Mon Sep 17 00:00:00 2001 From: fshcherbanich Date: Sun, 10 Sep 2023 17:03:28 +0300 Subject: [PATCH 02/12] Fixing template throw url --- .../PhpClassToMd/templates/_method_details.md.twig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/LanguageHandler/Php/Renderer/EntityDocRenderer/PhpClassToMd/templates/_method_details.md.twig b/src/LanguageHandler/Php/Renderer/EntityDocRenderer/PhpClassToMd/templates/_method_details.md.twig index 3af0505f..26e32a52 100644 --- a/src/LanguageHandler/Php/Renderer/EntityDocRenderer/PhpClassToMd/templates/_method_details.md.twig +++ b/src/LanguageHandler/Php/Renderer/EntityDocRenderer/PhpClassToMd/templates/_method_details.md.twig @@ -65,7 +65,7 @@