Mercurial > hg > isophonics-drupal-site
diff vendor/psy/psysh/src/TabCompletion/Matcher/AbstractDefaultParametersMatcher.php @ 17:129ea1e6d783
Update, including to Drupal core 8.6.10
author | Chris Cannam |
---|---|
date | Thu, 28 Feb 2019 13:21:36 +0000 |
parents | 5fb285c0d0e3 |
children |
line wrap: on
line diff
--- a/vendor/psy/psysh/src/TabCompletion/Matcher/AbstractDefaultParametersMatcher.php Tue Jul 10 15:07:59 2018 +0100 +++ b/vendor/psy/psysh/src/TabCompletion/Matcher/AbstractDefaultParametersMatcher.php Thu Feb 28 13:21:36 2019 +0000 @@ -36,7 +36,7 @@ return []; } - return [implode(', ', $parametersProcessed) . ')']; + return [\implode(', ', $parametersProcessed) . ')']; } /** @@ -50,8 +50,8 @@ */ private function valueToShortString($value) { - if (!is_array($value)) { - return json_encode($value); + if (!\is_array($value)) { + return \json_encode($value); } $chunks = []; @@ -60,7 +60,7 @@ $allSequential = true; foreach ($value as $key => $item) { - $allSequential = $allSequential && is_numeric($key) && $key === count($chunksSequential); + $allSequential = $allSequential && \is_numeric($key) && $key === \count($chunksSequential); $keyString = $this->valueToShortString($key); $itemString = $this->valueToShortString($item); @@ -71,6 +71,6 @@ $chunksToImplode = $allSequential ? $chunksSequential : $chunks; - return '[' . implode(', ', $chunksToImplode) . ']'; + return '[' . \implode(', ', $chunksToImplode) . ']'; } }