Code Duplication    Length = 8-8 lines in 3 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

Language/JavaScript.php 1 location

@@ 119-126 (lines=8) @@
116
        return 'javascript';
117
    }
118
119
    public static function getMetadata()
120
    {
121
        return [
122
            'name'      => ['js', 'jscript', 'javascript'],
123
            'mime'      => ['application/javascript', 'application/x-javascript', 'text/x-javascript', 'text/javascript', 'application/json'],
124
            'extension' => ['*.js', '*.jsx'],
125
        ];
126
    }
127
}
128