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

@@ 860-871 (lines=12) @@
857
     * @param string $value String value
858
     * @return string
859
     */
860
    private function encodeRqlString($value)
861
    {
862
        return strtr(
863
            rawurlencode($value),
864
            [
865
                '-' => '%2D',
866
                '_' => '%5F',
867
                '.' => '%2E',
868
                '~' => '%7E',
869
            ]
870
        );
871
    }
872
873
    /**
874
     * Trigger a 301 Status code