Code Duplication    Length = 7-7 lines in 2 locations

src/Service/Search.php 1 location

@@ 169-175 (lines=7) @@
166
     *
167
     * @return string
168
     */
169
    protected function getUnifiedTitle($title)
170
    {
171
        $title = mb_strtolower($title, 'utf8');
172
        $title = preg_replace('/\W+/u', ' ', $title);
173
174
        return trim($title);
175
    }
176
177
    /**
178
     * @param string $locale

src/Command/UpdateTitlesCommand.php 1 location

@@ 130-136 (lines=7) @@
127
     *
128
     * @return string
129
     */
130
    protected function getUnifiedTitle($title)
131
    {
132
        $title = mb_strtolower($title, 'utf8');
133
        $title = preg_replace('/\W+/u', ' ', $title);
134
135
        return trim($title);
136
    }
137
}
138