Add blueprints and fake content

This commit is contained in:
Paul Nicoué 2021-11-18 17:44:47 +01:00
parent 1ff19bf38f
commit 8235816462
592 changed files with 22385 additions and 31535 deletions

View file

@ -374,6 +374,20 @@ class A
return $array;
}
/**
* A simple wrapper around array_map
* with a sane argument order
* @since 3.6.0
*
* @param array $array
* @param callable $map
* @return array
*/
public static function map(array $array, callable $map): array
{
return array_map($map, $array);
}
/**
* Move an array item to a new index
*
@ -418,7 +432,7 @@ class A
*
* $required = ['cat', 'elephant'];
*
* $missng = A::missing($array, $required);
* $missing = A::missing($array, $required);
* // missing: [
* // 'elephant'
* // ];
@ -599,7 +613,7 @@ class A
}
/**
* Checks wether an array is associative or not
* Checks whether an array is associative or not
*
* <code>
* $array = ['a', 'b', 'c'];