diff --git a/libs/ContentTypes/Markdown/ContentType.php b/libs/ContentTypes/Markdown/ContentType.php index c1724de..07f5636 100644 --- a/libs/ContentTypes/Markdown/ContentType.php +++ b/libs/ContentTypes/Markdown/ContentType.php @@ -42,6 +42,7 @@ class ContentType implements \Todaymade\Daux\ContentTypes\ContentType return $this->doConversion($raw); } + // TODO :: add daux version to cache key $cacheKey = $this->config->getCacheKey() . sha1($raw); $payload = Cache::get($cacheKey); diff --git a/libs/Format/HTML/ContentTypes/Markdown/TOC/Processor.php b/libs/Format/HTML/ContentTypes/Markdown/TOC/Processor.php index d66be7d..1989d87 100644 --- a/libs/Format/HTML/ContentTypes/Markdown/TOC/Processor.php +++ b/libs/Format/HTML/ContentTypes/Markdown/TOC/Processor.php @@ -254,8 +254,6 @@ class Processor implements DocumentProcessorInterface $method->invoke($subnode, $firstClone); } - $deepCopy = new DeepCopy(); - - return $deepCopy->copy($firstClone)->children(); + return (new DeepCopy())->copy($firstClone)->children(); } }