@@ -48,7 +48,7 @@ abstract class Locale
4848 *
4949 * @param string $header The string containing the "Accept-Language" header value
5050 *
51- * @return string The corresponding locale code
51+ * @return string
5252 *
5353 * @see https://php.net/locale.acceptfromhttp
5454 *
@@ -93,7 +93,7 @@ public static function canonicalize(string $locale)
9393 *
9494 * @param array $subtags A keyed array where the keys identify the particular locale code subtag
9595 *
96- * @return string The corresponding locale code
96+ * @return string
9797 *
9898 * @see https://php.net/locale.composelocale
9999 *
@@ -110,7 +110,7 @@ public static function composeLocale(array $subtags)
110110 * @param string $langtag The language tag to check
111111 * @param string $locale The language range to check against
112112 *
113- * @return string The corresponding locale code
113+ * @return string
114114 *
115115 * @see https://php.net/locale.filtermatches
116116 *
@@ -126,7 +126,7 @@ public static function filterMatches(string $langtag, string $locale, bool $cano
126126 *
127127 * @param string $locale The locale to extract the variants from
128128 *
129- * @return array The locale variants
129+ * @return array
130130 *
131131 * @see https://php.net/locale.getallvariants
132132 *
@@ -138,9 +138,9 @@ public static function getAllVariants(string $locale)
138138 }
139139
140140 /**
141- * Returns the default locale.
141+ * Returns the default locale, which is always "en" .
142142 *
143- * @return string The default locale code. Always returns 'en'
143+ * @return string
144144 *
145145 * @see https://php.net/locale.getdefault
146146 */
@@ -155,7 +155,7 @@ public static function getDefault()
155155 * @param string $locale The locale code to return the display language from
156156 * @param string $inLocale Optional format locale code to use to display the language name
157157 *
158- * @return string The localized language display name
158+ * @return string
159159 *
160160 * @see https://php.net/locale.getdisplaylanguage
161161 *
@@ -172,7 +172,7 @@ public static function getDisplayLanguage(string $locale, string $inLocale = nul
172172 * @param string $locale The locale code to return the display locale name from
173173 * @param string $inLocale Optional format locale code to use to display the locale name
174174 *
175- * @return string The localized locale display name
175+ * @return string
176176 *
177177 * @see https://php.net/locale.getdisplayname
178178 *
@@ -189,7 +189,7 @@ public static function getDisplayName(string $locale, string $inLocale = null)
189189 * @param string $locale The locale code to return the display region from
190190 * @param string $inLocale Optional format locale code to use to display the region name
191191 *
192- * @return string The localized region display name
192+ * @return string
193193 *
194194 * @see https://php.net/locale.getdisplayregion
195195 *
@@ -206,7 +206,7 @@ public static function getDisplayRegion(string $locale, string $inLocale = null)
206206 * @param string $locale The locale code to return the display script from
207207 * @param string $inLocale Optional format locale code to use to display the script name
208208 *
209- * @return string The localized script display name
209+ * @return string
210210 *
211211 * @see https://php.net/locale.getdisplayscript
212212 *
@@ -223,7 +223,7 @@ public static function getDisplayScript(string $locale, string $inLocale = null)
223223 * @param string $locale The locale code to return the display variant from
224224 * @param string $inLocale Optional format locale code to use to display the variant name
225225 *
226- * @return string The localized variant display name
226+ * @return string
227227 *
228228 * @see https://php.net/locale.getdisplayvariant
229229 *
@@ -239,7 +239,7 @@ public static function getDisplayVariant(string $locale, string $inLocale = null
239239 *
240240 * @param string $locale The locale code to extract the keywords from
241241 *
242- * @return array Associative array with the extracted variants
242+ * @return array
243243 *
244244 * @see https://php.net/locale.getkeywords
245245 *
@@ -255,7 +255,7 @@ public static function getKeywords(string $locale)
255255 *
256256 * @param string $locale The locale code to extract the language code from
257257 *
258- * @return string|null The extracted language code or null in case of error
258+ * @return string|null
259259 *
260260 * @see https://php.net/locale.getprimarylanguage
261261 *
@@ -271,7 +271,7 @@ public static function getPrimaryLanguage(string $locale)
271271 *
272272 * @param string $locale The locale code to extract the region code from
273273 *
274- * @return string|null The extracted region code or null if not present
274+ * @return string|null
275275 *
276276 * @see https://php.net/locale.getregion
277277 *
@@ -287,7 +287,7 @@ public static function getRegion(string $locale)
287287 *
288288 * @param string $locale The locale code to extract the script code from
289289 *
290- * @return string|null The extracted script code or null if not present
290+ * @return string|null
291291 *
292292 * @see https://php.net/locale.getscript
293293 *
@@ -320,7 +320,7 @@ public static function lookup(array $langtag, string $locale, bool $canonicalize
320320 *
321321 * @param string $locale The locale code to extract the subtag array from
322322 *
323- * @return array Associative array with the extracted subtags
323+ * @return array
324324 *
325325 * @see https://php.net/locale.parselocale
326326 *
@@ -334,7 +334,7 @@ public static function parseLocale(string $locale)
334334 /**
335335 * Not supported. Sets the default runtime locale.
336336 *
337- * @return bool true on success or false on failure
337+ * @return bool
338338 *
339339 * @see https://php.net/locale.setdefault
340340 *
0 commit comments