Mercurial > hg > cmmr2012-drupal-site
diff vendor/symfony/http-kernel/DataCollector/Util/ValueExporter.php @ 4:a9cd425dd02b
Update, including to Drupal core 8.6.10
author | Chris Cannam |
---|---|
date | Thu, 28 Feb 2019 13:11:55 +0000 |
parents | c75dbcec494b |
children |
line wrap: on
line diff
--- a/vendor/symfony/http-kernel/DataCollector/Util/ValueExporter.php Thu Feb 28 11:14:44 2019 +0000 +++ b/vendor/symfony/http-kernel/DataCollector/Util/ValueExporter.php Thu Feb 28 13:11:55 2019 +0000 @@ -35,24 +35,24 @@ return sprintf('__PHP_Incomplete_Class(%s)', $this->getClassNameFromIncomplete($value)); } - if (is_object($value)) { + if (\is_object($value)) { if ($value instanceof \DateTimeInterface) { - return sprintf('Object(%s) - %s', get_class($value), $value->format(\DateTime::ATOM)); + return sprintf('Object(%s) - %s', \get_class($value), $value->format(\DateTime::ATOM)); } - return sprintf('Object(%s)', get_class($value)); + return sprintf('Object(%s)', \get_class($value)); } - if (is_array($value)) { + if (\is_array($value)) { if (empty($value)) { return '[]'; } $indent = str_repeat(' ', $depth); - $a = array(); + $a = []; foreach ($value as $k => $v) { - if (is_array($v)) { + if (\is_array($v)) { $deep = true; } $a[] = sprintf('%s => %s', $k, $this->exportValue($v, $depth + 1, $deep)); @@ -64,14 +64,14 @@ $s = sprintf('[%s]', implode(', ', $a)); - if (80 > strlen($s)) { + if (80 > \strlen($s)) { return $s; } return sprintf("[\n%s%s\n]", $indent, implode(sprintf(",\n%s", $indent), $a)); } - if (is_resource($value)) { + if (\is_resource($value)) { return sprintf('Resource(%s#%d)', get_resource_type($value), $value); }