@@ -72,7 +72,7 @@ class Collator
72
72
*
73
73
* @param string $locale The locale code. The only currently supported locale is "en".
74
74
*
75
- * @throws MethodArgumentValueNotImplementedException When $locale different than "en" is passed
75
+ * @throws MethodArgumentValueNotImplementedException When $locale different than "en" is passed
76
76
*/
77
77
public function __construct ($ locale )
78
78
{
@@ -88,7 +88,7 @@ public function __construct($locale)
88
88
*
89
89
* @return Collator
90
90
*
91
- * @throws MethodArgumentValueNotImplementedException When $locale different than "en" is passed
91
+ * @throws MethodArgumentValueNotImplementedException When $locale different than "en" is passed
92
92
*/
93
93
public static function create ($ locale )
94
94
{
@@ -98,13 +98,13 @@ public static function create($locale)
98
98
/**
99
99
* Sort array maintaining index association
100
100
*
101
- * @param array &$array Input array
102
- * @param int $sortFlag Flags for sorting, can be one of the following:
103
- * Collator::SORT_REGULAR - compare items normally (don't change types)
104
- * Collator::SORT_NUMERIC - compare items numerically
105
- * Collator::SORT_STRING - compare items as strings
101
+ * @param array &$array Input array
102
+ * @param int $sortFlag Flags for sorting, can be one of the following:
103
+ * Collator::SORT_REGULAR - compare items normally (don't change types)
104
+ * Collator::SORT_NUMERIC - compare items numerically
105
+ * Collator::SORT_STRING - compare items as strings
106
106
*
107
- * @return bool True on success or false on failure
107
+ * @return bool True on success or false on failure
108
108
*/
109
109
public function asort (&$ array , $ sortFlag = self ::SORT_REGULAR )
110
110
{
@@ -125,10 +125,10 @@ public function asort(&$array, $sortFlag = self::SORT_REGULAR)
125
125
* @param string $str1 The first string to compare
126
126
* @param string $str2 The second string to compare
127
127
*
128
- * @return bool|int Return the comparison result or false on failure:
129
- * 1 if $str1 is greater than $str2
130
- * 0 if $str1 is equal than $str2
131
- * -1 if $str1 is less than $str2
128
+ * @return bool|int Return the comparison result or false on failure:
129
+ * 1 if $str1 is greater than $str2
130
+ * 0 if $str1 is equal than $str2
131
+ * -1 if $str1 is less than $str2
132
132
*
133
133
* @see http://www.php.net/manual/en/collator.compare.php
134
134
*
@@ -144,7 +144,7 @@ public function compare($str1, $str2)
144
144
*
145
145
* @param int $attr An attribute specifier, one of the attribute constants
146
146
*
147
- * @return bool|int The attribute value on success or false on error
147
+ * @return bool|int The attribute value on success or false on error
148
148
*
149
149
* @see http://www.php.net/manual/en/collator.getattribute.php
150
150
*
@@ -207,7 +207,7 @@ public function getSortKey($string)
207
207
/**
208
208
* Not supported. Get current collator's strength
209
209
*
210
- * @return bool|int The current collator's strength or false on failure
210
+ * @return bool|int The current collator's strength or false on failure
211
211
*
212
212
* @see http://www.php.net/manual/en/collator.getstrength.php
213
213
*
@@ -224,7 +224,7 @@ public function getStrength()
224
224
* @param int $attr An attribute specifier, one of the attribute constants
225
225
* @param int $val The attribute value, one of the attribute value constants
226
226
*
227
- * @return bool True on success or false on failure
227
+ * @return bool True on success or false on failure
228
228
*
229
229
* @see http://www.php.net/manual/en/collator.setattribute.php
230
230
*
@@ -239,14 +239,14 @@ public function setAttribute($attr, $val)
239
239
* Not supported. Set the collator's strength
240
240
*
241
241
* @param int $strength Strength to set, possible values:
242
- * Collator::PRIMARY
243
- * Collator::SECONDARY
244
- * Collator::TERTIARY
245
- * Collator::QUATERNARY
246
- * Collator::IDENTICAL
247
- * Collator::DEFAULT
242
+ * Collator::PRIMARY
243
+ * Collator::SECONDARY
244
+ * Collator::TERTIARY
245
+ * Collator::QUATERNARY
246
+ * Collator::IDENTICAL
247
+ * Collator::DEFAULT
248
248
*
249
- * @return bool True on success or false on failure
249
+ * @return bool True on success or false on failure
250
250
*
251
251
* @see http://www.php.net/manual/en/collator.setstrength.php
252
252
*
@@ -260,9 +260,9 @@ public function setStrength($strength)
260
260
/**
261
261
* Not supported. Sort array using specified collator and sort keys
262
262
*
263
- * @param array &$arr Array of strings to sort
263
+ * @param array &$arr Array of strings to sort
264
264
*
265
- * @return bool True on success or false on failure
265
+ * @return bool True on success or false on failure
266
266
*
267
267
* @see http://www.php.net/manual/en/collator.sortwithsortkeys.php
268
268
*
@@ -276,13 +276,13 @@ public function sortWithSortKeys(&$arr)
276
276
/**
277
277
* Not supported. Sort array using specified collator
278
278
*
279
- * @param array &$arr Array of string to sort
280
- * @param int $sortFlag Optional sorting type, one of the following:
281
- * Collator::SORT_REGULAR
282
- * Collator::SORT_NUMERIC
283
- * Collator::SORT_STRING
279
+ * @param array &$arr Array of string to sort
280
+ * @param int $sortFlag Optional sorting type, one of the following:
281
+ * Collator::SORT_REGULAR
282
+ * Collator::SORT_NUMERIC
283
+ * Collator::SORT_STRING
284
284
*
285
- * @return bool True on success or false on failure
285
+ * @return bool True on success or false on failure
286
286
*
287
287
* @see http://www.php.net/manual/en/collator.sort.php
288
288
*
0 commit comments