Mercurial > hg > isophonics-drupal-site
diff vendor/zendframework/zend-stdlib/src/ArrayUtils.php @ 12:7a779792577d
Update Drupal core to v8.4.5 (via Composer)
author | Chris Cannam |
---|---|
date | Fri, 23 Feb 2018 15:52:07 +0000 |
parents | 4c8ae668cc8c |
children | c2387f117808 |
line wrap: on
line diff
--- a/vendor/zendframework/zend-stdlib/src/ArrayUtils.php Fri Feb 23 15:51:18 2018 +0000 +++ b/vendor/zendframework/zend-stdlib/src/ArrayUtils.php Fri Feb 23 15:52:07 2018 +0000 @@ -39,11 +39,11 @@ */ public static function hasStringKeys($value, $allowEmpty = false) { - if (!is_array($value)) { + if (! is_array($value)) { return false; } - if (!$value) { + if (! $value) { return $allowEmpty; } @@ -59,11 +59,11 @@ */ public static function hasIntegerKeys($value, $allowEmpty = false) { - if (!is_array($value)) { + if (! is_array($value)) { return false; } - if (!$value) { + if (! $value) { return $allowEmpty; } @@ -86,11 +86,11 @@ */ public static function hasNumericKeys($value, $allowEmpty = false) { - if (!is_array($value)) { + if (! is_array($value)) { return false; } - if (!$value) { + if (! $value) { return $allowEmpty; } @@ -119,11 +119,11 @@ */ public static function isList($value, $allowEmpty = false) { - if (!is_array($value)) { + if (! is_array($value)) { return false; } - if (!$value) { + if (! $value) { return $allowEmpty; } @@ -161,11 +161,11 @@ */ public static function isHashTable($value, $allowEmpty = false) { - if (!is_array($value)) { + if (! is_array($value)) { return false; } - if (!$value) { + if (! $value) { return $allowEmpty; } @@ -187,7 +187,7 @@ */ public static function inArray($needle, array $haystack, $strict = false) { - if (!$strict) { + if (! $strict) { if (is_int($needle) || is_float($needle)) { $needle = (string) $needle; } @@ -215,11 +215,11 @@ */ public static function iteratorToArray($iterator, $recursive = true) { - if (!is_array($iterator) && !$iterator instanceof Traversable) { + if (! is_array($iterator) && ! $iterator instanceof Traversable) { throw new Exception\InvalidArgumentException(__METHOD__ . ' expects an array or Traversable object'); } - if (!$recursive) { + if (! $recursive) { if (is_array($iterator)) { return $iterator; } @@ -274,7 +274,7 @@ } elseif (isset($a[$key]) || array_key_exists($key, $a)) { if ($value instanceof MergeRemoveKey) { unset($a[$key]); - } elseif (!$preserveNumericKeys && is_int($key)) { + } elseif (! $preserveNumericKeys && is_int($key)) { $a[] = $value; } elseif (is_array($value) && is_array($a[$key])) { $a[$key] = static::merge($a[$key], $value, $preserveNumericKeys); @@ -282,7 +282,7 @@ $a[$key] = $value; } } else { - if (!$value instanceof MergeRemoveKey) { + if (! $value instanceof MergeRemoveKey) { $a[$key] = $value; } }