From 098b56649636a6c0e10d46b5eb7b02328f856965 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Goetz?= Date: Fri, 21 Sep 2018 22:12:00 +0200 Subject: [PATCH] small changes --- libs/ContentTypes/Markdown/ContentType.php | 1 + libs/Format/HTML/ContentTypes/Markdown/TOC/Processor.php | 4 +--- 2 files changed, 2 insertions(+), 3 deletions(-) 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(); } }