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();
@@ 855-858 (lines=4) @@
852
853
        $viewModel = $this->buildView($game);
854
    
855
        foreach ($post->getPostElements() as $element) {
856
            $fbShareImage = $this->frontendUrl()->fromRoute(
857
                '',
858
                array('channel' => ''),
859
                array('force_canonical' => true),
860
                false
861
            ) . $element->getValue();