@@ -48,7 +48,7 @@ abstract class Locale
48
48
*
49
49
* @param string $header The string containing the "Accept-Language" header value
50
50
*
51
- * @return string The corresponding locale code
51
+ * @return string
52
52
*
53
53
* @see https://php.net/locale.acceptfromhttp
54
54
*
@@ -93,7 +93,7 @@ public static function canonicalize(string $locale)
93
93
*
94
94
* @param array $subtags A keyed array where the keys identify the particular locale code subtag
95
95
*
96
- * @return string The corresponding locale code
96
+ * @return string
97
97
*
98
98
* @see https://php.net/locale.composelocale
99
99
*
@@ -110,7 +110,7 @@ public static function composeLocale(array $subtags)
110
110
* @param string $langtag The language tag to check
111
111
* @param string $locale The language range to check against
112
112
*
113
- * @return string The corresponding locale code
113
+ * @return string
114
114
*
115
115
* @see https://php.net/locale.filtermatches
116
116
*
@@ -126,7 +126,7 @@ public static function filterMatches(string $langtag, string $locale, bool $cano
126
126
*
127
127
* @param string $locale The locale to extract the variants from
128
128
*
129
- * @return array The locale variants
129
+ * @return array
130
130
*
131
131
* @see https://php.net/locale.getallvariants
132
132
*
@@ -138,9 +138,9 @@ public static function getAllVariants(string $locale)
138
138
}
139
139
140
140
/**
141
- * Returns the default locale.
141
+ * Returns the default locale, which is always "en" .
142
142
*
143
- * @return string The default locale code. Always returns 'en'
143
+ * @return string
144
144
*
145
145
* @see https://php.net/locale.getdefault
146
146
*/
@@ -155,7 +155,7 @@ public static function getDefault()
155
155
* @param string $locale The locale code to return the display language from
156
156
* @param string $inLocale Optional format locale code to use to display the language name
157
157
*
158
- * @return string The localized language display name
158
+ * @return string
159
159
*
160
160
* @see https://php.net/locale.getdisplaylanguage
161
161
*
@@ -172,7 +172,7 @@ public static function getDisplayLanguage(string $locale, string $inLocale = nul
172
172
* @param string $locale The locale code to return the display locale name from
173
173
* @param string $inLocale Optional format locale code to use to display the locale name
174
174
*
175
- * @return string The localized locale display name
175
+ * @return string
176
176
*
177
177
* @see https://php.net/locale.getdisplayname
178
178
*
@@ -189,7 +189,7 @@ public static function getDisplayName(string $locale, string $inLocale = null)
189
189
* @param string $locale The locale code to return the display region from
190
190
* @param string $inLocale Optional format locale code to use to display the region name
191
191
*
192
- * @return string The localized region display name
192
+ * @return string
193
193
*
194
194
* @see https://php.net/locale.getdisplayregion
195
195
*
@@ -206,7 +206,7 @@ public static function getDisplayRegion(string $locale, string $inLocale = null)
206
206
* @param string $locale The locale code to return the display script from
207
207
* @param string $inLocale Optional format locale code to use to display the script name
208
208
*
209
- * @return string The localized script display name
209
+ * @return string
210
210
*
211
211
* @see https://php.net/locale.getdisplayscript
212
212
*
@@ -223,7 +223,7 @@ public static function getDisplayScript(string $locale, string $inLocale = null)
223
223
* @param string $locale The locale code to return the display variant from
224
224
* @param string $inLocale Optional format locale code to use to display the variant name
225
225
*
226
- * @return string The localized variant display name
226
+ * @return string
227
227
*
228
228
* @see https://php.net/locale.getdisplayvariant
229
229
*
@@ -239,7 +239,7 @@ public static function getDisplayVariant(string $locale, string $inLocale = null
239
239
*
240
240
* @param string $locale The locale code to extract the keywords from
241
241
*
242
- * @return array Associative array with the extracted variants
242
+ * @return array
243
243
*
244
244
* @see https://php.net/locale.getkeywords
245
245
*
@@ -255,7 +255,7 @@ public static function getKeywords(string $locale)
255
255
*
256
256
* @param string $locale The locale code to extract the language code from
257
257
*
258
- * @return string|null The extracted language code or null in case of error
258
+ * @return string|null
259
259
*
260
260
* @see https://php.net/locale.getprimarylanguage
261
261
*
@@ -271,7 +271,7 @@ public static function getPrimaryLanguage(string $locale)
271
271
*
272
272
* @param string $locale The locale code to extract the region code from
273
273
*
274
- * @return string|null The extracted region code or null if not present
274
+ * @return string|null
275
275
*
276
276
* @see https://php.net/locale.getregion
277
277
*
@@ -287,7 +287,7 @@ public static function getRegion(string $locale)
287
287
*
288
288
* @param string $locale The locale code to extract the script code from
289
289
*
290
- * @return string|null The extracted script code or null if not present
290
+ * @return string|null
291
291
*
292
292
* @see https://php.net/locale.getscript
293
293
*
@@ -320,7 +320,7 @@ public static function lookup(array $langtag, string $locale, bool $canonicalize
320
320
*
321
321
* @param string $locale The locale code to extract the subtag array from
322
322
*
323
- * @return array Associative array with the extracted subtags
323
+ * @return array
324
324
*
325
325
* @see https://php.net/locale.parselocale
326
326
*
@@ -334,7 +334,7 @@ public static function parseLocale(string $locale)
334
334
/**
335
335
* Not supported. Sets the default runtime locale.
336
336
*
337
- * @return bool true on success or false on failure
337
+ * @return bool
338
338
*
339
339
* @see https://php.net/locale.setdefault
340
340
*
0 commit comments