Code Duplication    Length = 12-12 lines in 3 locations

src/Graviton/CoreBundle/Tests/Controller/ElemMatchOperatorControllerTest.php 1 location

@@ 344-355 (lines=12) @@
341
     * @param string $string String
342
     * @return string
343
     */
344
    private function encodeRqlString($string)
345
    {
346
        return strtr(
347
            rawurlencode($string),
348
            [
349
                '-' => '%2D',
350
                '_' => '%5F',
351
                '.' => '%2E',
352
                '~' => '%7E',
353
            ]
354
        );
355
    }
356
}
357

src/Graviton/CoreBundle/Tests/Controller/ModuleControllerTest.php 1 location

@@ 681-692 (lines=12) @@
678
     * @param string $value Value
679
     * @return string
680
     */
681
    private function encodeRqlString($value)
682
    {
683
        return strtr(
684
            rawurlencode($value),
685
            [
686
                '-' => '%2D',
687
                '_' => '%5F',
688
                '.' => '%2E',
689
                '~' => '%7E',
690
            ]
691
        );
692
    }
693
}
694

src/Graviton/CoreBundle/Tests/Controller/ShowcaseControllerTest.php 1 location

@@ 877-888 (lines=12) @@
874
     * @param string $value String value
875
     * @return string
876
     */
877
    private function encodeRqlString($value)
878
    {
879
        return strtr(
880
            rawurlencode($value),
881
            [
882
                '-' => '%2D',
883
                '_' => '%5F',
884
                '.' => '%2E',
885
                '~' => '%7E',
886
            ]
887
        );
888
    }
889
890
    /**
891
     * Trigger a 301 Status code