| @@ 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 |
|
| @@ 123-129 (lines=7) @@ | ||
| 120 | * |
|
| 121 | * @return string |
|
| 122 | */ |
|
| 123 | protected function getUnifiedTitle($title) |
|
| 124 | { |
|
| 125 | $title = mb_strtolower($title, 'utf8'); |
|
| 126 | $title = preg_replace('/\W+/u', ' ', $title); |
|
| 127 | ||
| 128 | return trim($title); |
|
| 129 | } |
|
| 130 | } |
|
| 131 | ||