Test Failed
Push — main ( 109ef1...0eb966 )
by Michael
02:49
created

__TwigTemplate_343f7ea1403b2a368941cf8fc59b465299865052ef3491725be71bf3ae99c482   A

Complexity

Total Complexity 14

Size/Duplication

Total Lines 100
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 51
c 0
b 0
f 0
dl 0
loc 100
rs 10
wmc 14

6 Methods

Rating   Name   Duplication   Size   Complexity  
A getSourceContext() 0 7 1
B doDisplay() 0 46 8
A __construct() 0 20 2
A getDebugInfo() 0 3 1
A isTraitable() 0 3 1
A getTemplateName() 0 3 1
1
<?php
2
3
use Twig\Environment;
4
use Twig\Error\LoaderError;
5
use Twig\Error\RuntimeError;
6
use Twig\Extension\SandboxExtension;
7
use Twig\Markup;
8
use Twig\Sandbox\SecurityError;
9
use Twig\Sandbox\SecurityNotAllowedTagError;
10
use Twig\Sandbox\SecurityNotAllowedFilterError;
11
use Twig\Sandbox\SecurityNotAllowedFunctionError;
12
use Twig\Source;
13
use Twig\Template;
14
15
/* @Menu/breadcrumb_menu.html.twig */
16
class __TwigTemplate_343f7ea1403b2a368941cf8fc59b465299865052ef3491725be71bf3ae99c482 extends Template
17
{
18
    private $source;
19
    private $macros = [];
20
21
    public function __construct(Environment $env)
22
    {
23
        parent::__construct($env);
24
25
        $this->source = $this->getSourceContext();
26
27
        $this->parent = false;
28
29
        // line 1
30
        $_trait_0 = $this->loadTemplate("@Menu/breadcrumb_menu_blocks.html.twig", "@Menu/breadcrumb_menu.html.twig", 1);
31
        if (!$_trait_0->isTraitable()) {
32
            throw new RuntimeError('Template "'."@Menu/breadcrumb_menu_blocks.html.twig".'" cannot be used as a trait.', 1, $this->source);
33
        }
34
        $_trait_0_blocks = $_trait_0->getBlocks();
35
36
        $this->traits = $_trait_0_blocks;
37
38
        $this->blocks = array_merge(
39
            $this->traits,
40
            [
41
            ]
42
        );
43
    }
44
45
    protected function doDisplay(array $context, array $blocks = [])
46
    {
47
        $macros = $this->macros;
0 ignored issues
show
Unused Code introduced by
The assignment to $macros is dead and can be removed.
Loading history...
48
        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
49
        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@Menu/breadcrumb_menu.html.twig"));
50
51
        // line 2
52
        echo "
53
<nav>
54
    ";
55
        // line 4
56
        $context['_parent'] = $context;
57
        $context['_seq'] = twig_ensure_traversable((isset($context["menus"]) || array_key_exists("menus", $context) ? $context["menus"] : (function () { throw new RuntimeError('Variable "menus" does not exist.', 4, $this->source); })()));
58
        $context['loop'] = [
59
          'parent' => $context['_parent'],
60
          'index0' => 0,
61
          'index'  => 1,
62
          'first'  => true,
63
        ];
64
        if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
65
            $length = count($context['_seq']);
66
            $context['loop']['revindex0'] = $length - 1;
67
            $context['loop']['revindex'] = $length;
68
            $context['loop']['length'] = $length;
69
            $context['loop']['last'] = 1 === $length;
70
        }
71
        foreach ($context['_seq'] as $context["_key"] => $context["entry"]) {
72
            echo " ";
73
            $this->displayBlock("menu", $context, $blocks);
74
            echo " ";
75
            ++$context['loop']['index0'];
76
            ++$context['loop']['index'];
77
            $context['loop']['first'] = false;
78
            if (isset($context['loop']['length'])) {
79
                --$context['loop']['revindex0'];
80
                --$context['loop']['revindex'];
81
                $context['loop']['last'] = 0 === $context['loop']['revindex0'];
82
            }
83
        }
84
        $_parent = $context['_parent'];
85
        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['entry'], $context['_parent'], $context['loop']);
86
        $context = array_intersect_key($context, $_parent) + $_parent;
0 ignored issues
show
Unused Code introduced by
The assignment to $context is dead and can be removed.
Loading history...
87
        // line 5
88
        echo "</nav>";
89
        
90
        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
91
92
    }
93
94
    public function getTemplateName()
95
    {
96
        return "@Menu/breadcrumb_menu.html.twig";
97
    }
98
99
    public function isTraitable()
100
    {
101
        return false;
102
    }
103
104
    public function getDebugInfo()
105
    {
106
        return array (  88 => 5,  56 => 4,  52 => 2,  30 => 1,);
107
    }
108
109
    public function getSourceContext()
110
    {
111
        return new Source("{% use '@Menu/breadcrumb_menu_blocks.html.twig' %}
112
113
<nav>
114
    {% for entry in menus %} {{ block('menu') }} {% endfor %}
115
</nav>", "@Menu/breadcrumb_menu.html.twig", "/Users/michaelbrauner/Bundles/Symfony/MenuBundle/src/Resources/views/breadcrumb_menu.html.twig");
116
    }
117
}
118