Code Duplication    Length = 4-4 lines in 2 locations

src/PlaygroundGame/Controller/Frontend/PostVoteController.php 2 locations

@@ 656-659 (lines=4) @@
653
        if ($postId) {
654
            $postTarget = $sg->getPostVotePostMapper()->findById($postId);
655
            if ($postTarget) {
656
                foreach ($postTarget->getPostElements() as $element) {
657
                    $fbShareImage = $this->frontendUrl()->fromRoute(
658
                        '',
659
                        array('channel' => ''),
660
                        array('force_canonical' => true),
661
                        false
662
                    ) . $element->getValue();
@@ 853-856 (lines=4) @@
850
851
        $viewModel = $this->buildView($game);
852
    
853
        foreach ($post->getPostElements() as $element) {
854
            $fbShareImage = $this->frontendUrl()->fromRoute(
855
                '',
856
                array('channel' => ''),
857
                array('force_canonical' => true),
858
                false
859
            ) . $element->getValue();