From 7fbe9f8752baf9ed0ecef62b73abedd66ef09e99 Mon Sep 17 00:00:00 2001 From: Alexey Skobkin Date: Mon, 12 Dec 2016 21:30:27 +0300 Subject: [PATCH] PointParser code quality fix. --- .../PointToolsBundle/Service/Markdown/PointParser.php | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/Skobkin/Bundle/PointToolsBundle/Service/Markdown/PointParser.php b/src/Skobkin/Bundle/PointToolsBundle/Service/Markdown/PointParser.php index 906d57d..f057502 100644 --- a/src/Skobkin/Bundle/PointToolsBundle/Service/Markdown/PointParser.php +++ b/src/Skobkin/Bundle/PointToolsBundle/Service/Markdown/PointParser.php @@ -178,7 +178,6 @@ class PointParser extends MarkdownParser protected function doAnchorsPointUsernameCallback($matches) { - //$wholeMatch = $matches[1]; $username = $matches[2]; $href = $this->router->generate('user_show', ['login' => $username]); $tail = htmlspecialchars($matches[3]); @@ -188,15 +187,10 @@ class PointParser extends MarkdownParser protected function doAnchorsPointPostCallback($matches) { - //$wholeMatch = $matches[1]; $postId = $matches[2]; $href = $this->router->generate('post_show', ['id' => $postId]); $tail = htmlspecialchars($matches[3]); - return $this->hashPart( - '#'.$postId.'' - //.'' - .$tail - ); + return $this->hashPart('#'.$postId.''.$tail); } } \ No newline at end of file