Code Duplication    Length = 14-14 lines in 2 locations

Features/CustomPostTypes/Translator.php 1 location

@@ 9-22 (lines=14) @@
6
7
class Translator
8
{
9
    public static function translateConfig($config)
10
    {
11
        $config = apply_filters(
12
            'Flynt/Features/CustomPostTypes/TranslateConfig',
13
            self::translateKeys($config)
14
        );
15
16
        $config = apply_filters(
17
            "Flynt/Features/CustomPostTypes/TranslateConfig?name={$config['name']}",
18
            $config
19
        );
20
21
        return $config;
22
    }
23
24
    protected static function translateKeys($config)
25
    {

Features/CustomTaxonomies/Translator.php 1 location

@@ 9-22 (lines=14) @@
6
7
class Translator
8
{
9
    public static function translateConfig($config)
10
    {
11
        $config = apply_filters(
12
            'Flynt/Features/CustomTaxonomies/TranslateConfig',
13
            self::translateKeys($config)
14
        );
15
16
        $config = apply_filters(
17
            "Flynt/Features/CustomTaxonomies/TranslateConfig?name={$config['name']}",
18
            $config
19
        );
20
21
        return $config;
22
    }
23
24
    protected static function translateKeys($config)
25
    {