summaryrefslogtreecommitdiffstats
path: root/inc/arrayutil.inc.php
diff options
context:
space:
mode:
Diffstat (limited to 'inc/arrayutil.inc.php')
-rw-r--r--inc/arrayutil.inc.php11
1 files changed, 1 insertions, 10 deletions
diff --git a/inc/arrayutil.inc.php b/inc/arrayutil.inc.php
index 9ce5730f..7aded4db 100644
--- a/inc/arrayutil.inc.php
+++ b/inc/arrayutil.inc.php
@@ -6,9 +6,6 @@ class ArrayUtil
/**
* Take an array of arrays, take given key from each sub-array and return
* new array with just those corresponding values.
- * @param array $list
- * @param string $key
- * @return array
*/
public static function flattenByKey(array $list, string $key): array
{
@@ -18,8 +15,6 @@ class ArrayUtil
/**
* Pass an array of arrays you want to merge. The keys of the outer array will become
* the inner keys of the resulting array, and vice versa.
- * @param array $arrays
- * @return array
*/
public static function mergeByKey(array $arrays): array
{
@@ -38,11 +33,8 @@ class ArrayUtil
/**
* Sort array by given column.
- * @param array $array
- * @param string $column
- * @return void
*/
- public static function sortByColumn(array &$array, string $column, int $sortOrder = SORT_ASC, int $sortFlags = SORT_REGULAR)
+ public static function sortByColumn(array &$array, string $column, int $sortOrder = SORT_ASC, int $sortFlags = SORT_REGULAR): void
{
$sorter = array_column($array, $column);
array_multisort($sorter, $sortOrder, $sortFlags, $array);
@@ -53,7 +45,6 @@ class ArrayUtil
*
* @param array $array An array
* @param array $keyList A list of strings which must all be valid keys in $array
- * @return boolean
*/
public static function hasAllKeys(array $array, array $keyList): bool
{