Code Duplication    Length = 3-3 lines in 2 locations

eZ/Publish/Core/Persistence/Legacy/Content/Language/MaskGenerator.php 2 locations

@@ 96-98 (lines=3) @@
93
            $mask |= $language->id;
94
        }
95
96
        if ($missing = array_diff($languageCodes, array_keys($languageList))) {
97
            throw new NotFoundException('Language', implode(', ', $missing));
98
        }
99
100
        return $mask;
101
    }
@@ 122-124 (lines=3) @@
119
            $mask |= $language->id;
120
        }
121
122
        if ($missing = array_diff($languageCodes, array_keys($languageList))) {
123
            throw new NotFoundException('Language', implode(', ', $missing));
124
        }
125
126
127
        return $mask;