*/
private array $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
];
}
protected function doDisplay(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@Doctrine/Collector/explain.html.twig"));
// line 1
if ((Twig\Extension\CoreExtension::length($this->env->getCharset(), CoreExtension::getAttribute($this->env, $this->source, (isset($context["data"]) || array_key_exists("data", $context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.', 1, $this->source); })()), 0, [], "array", false, false, false, 1)) > 1)) {
// line 2
yield " ";
// line 3
yield "
";
// line 6
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable(Twig\Extension\CoreExtension::keys(CoreExtension::getAttribute($this->env, $this->source, (isset($context["data"]) || array_key_exists("data", $context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.', 6, $this->source); })()), 0, [], "array", false, false, false, 6)));
foreach ($context['_seq'] as $context["_key"] => $context["label"]) {
// line 7
yield " ";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["label"], "html", null, true);
yield " |
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['label'], $context['_parent']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 9
yield "
";
// line 12
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable((isset($context["data"]) || array_key_exists("data", $context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.', 12, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["row"]) {
// line 13
yield "
";
// line 14
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable($context["row"]);
foreach ($context['_seq'] as $context["key"] => $context["item"]) {
// line 15
yield " ";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::replace($context["item"], ["," => ", "]), "html", null, true);
yield " |
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['key'], $context['item'], $context['_parent']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 17
yield "
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['row'], $context['_parent']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 19
yield "
";
} else {
// line 22
yield " ";
// line 23
yield " ";
// line 24
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable((isset($context["data"]) || array_key_exists("data", $context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.', 24, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["row"]) {
// line 25
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::first($this->env->getCharset(), $context["row"]), "html", null, true);
yield "
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['row'], $context['_parent']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 27
yield "
";
}
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
yield from [];
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName(): string
{
return "@Doctrine/Collector/explain.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable(): bool
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
return array ( 120 => 27, 112 => 25, 108 => 24, 106 => 23, 104 => 22, 99 => 19, 92 => 17, 83 => 15, 79 => 14, 76 => 13, 72 => 12, 67 => 9, 58 => 7, 54 => 6, 49 => 3, 47 => 2, 45 => 1,);
}
public function getSourceContext(): Source
{
return new Source("{% if data[0]|length > 1 %}
{# The platform returns a table for the explanation (e.g. MySQL), display all columns #}
{% for label in data[0]|keys %}
{{ label }} |
{% endfor %}
{% for row in data %}
{% for key, item in row %}
{{ item|replace({',': ', '}) }} |
{% endfor %}
{% endfor %}
{% else %}
{# The Platform returns a single column for a textual explanation (e.g. PostgreSQL), display all lines #}
{%- for row in data -%}
{{ row|first }}{{ \"\\n\" }}
{%- endfor -%}
{% endif %}
", "@Doctrine/Collector/explain.html.twig", "/home/skylar/Projects/mycomments-api/vendor/doctrine/doctrine-bundle/templates/Collector/explain.html.twig");
}
}