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

@@ 869-880 (lines=12) @@
866
     * @param string $value String value
867
     * @return string
868
     */
869
    private function encodeRqlString($value)
870
    {
871
        return strtr(
872
            rawurlencode($value),
873
            [
874
                '-' => '%2D',
875
                '_' => '%5F',
876
                '.' => '%2E',
877
                '~' => '%7E',
878
            ]
879
        );
880
    }
881
882
    /**
883
     * Trigger a 301 Status code