Code Duplication    Length = 8-8 lines in 2 locations

Language/Cpp.php 1 location

@@ 58-65 (lines=8) @@
55
        return 'cpp';
56
    }
57
58
    public static function getMetadata()
59
    {
60
        return [
61
            'name'      => ['cpp', 'c++'],
62
            'mime'      => ['text/x-c++src', 'text/x-c++hdr'],
63
            'extension' => ['*.cpp', '*.hpp', '*.hxx', '*.cxx', '*.cc', '*.hh']
64
        ];
65
    }
66
}
67

Language/Ruby.php 1 location

@@ 115-122 (lines=8) @@
112
        return 'ruby';
113
    }
114
115
    public static function getMetadata()
116
    {
117
        return [
118
            'name'      => ['ruby'],
119
            'mime'      => ['text/x-ruby', 'application/x-ruby'],
120
            'extension' => ['*.rb', '*.rbw', 'Rakefile', '*.rake', '*.gemspec', '*.rbx', '*.duby', 'Gemfile'],
121
        ];
122
    }
123
}
124