Completed
Push — master ( 353d0b...cd0f1c )
by Michael
03:14
created

__TwigTemplate_d5796206d38ac26cf7cb9d9a4616e14e59b837710108788c7b0d1e07830f610c   A

Complexity

Total Complexity 28

Size/Duplication

Total Lines 157
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 28
c 1
b 0
f 1
lcom 0
cbo 0
dl 0
loc 157
rs 10

11 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 14 1
A doGetParent() 0 4 1
A doDisplay() 0 7 1
A block_title() 0 6 2
A block_body_class() 0 4 1
A block_page_id() 0 4 2
A block_below_menu() 0 14 2
C block_page_content() 0 74 15
A getTemplateName() 0 4 1
A isTraitable() 0 4 1
A getDebugInfo() 0 4 1
1
<?php
2
3
/* namespace.twig */
4
class __TwigTemplate_d5796206d38ac26cf7cb9d9a4616e14e59b837710108788c7b0d1e07830f610c extends Twig_Template
0 ignored issues
show
Coding Style Compatibility introduced by
PSR1 recommends that each class must be in a namespace of at least one level to avoid collisions.

You can fix this by adding a namespace to your class:

namespace YourVendor;

class YourClass { }

When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.

Loading history...
Coding Style introduced by
This class is not in CamelCase format.

Classes in PHP are usually named in CamelCase.

In camelCase names are written without any punctuation, the start of each new word being marked by a capital letter. The whole name starts with a capital letter as well.

Thus the name database provider becomes DatabaseProvider.

Loading history...
5
{
6
    public function __construct(Twig_Environment $env)
7
    {
8
        parent::__construct($env);
9
10
        // line 1
11
        $this->parent = $this->loadTemplate("layout/layout.twig", "namespace.twig", 1);
12
        $this->blocks = array(
13
            'title' => array($this, 'block_title'),
14
            'body_class' => array($this, 'block_body_class'),
15
            'page_id' => array($this, 'block_page_id'),
16
            'below_menu' => array($this, 'block_below_menu'),
17
            'page_content' => array($this, 'block_page_content'),
18
        );
19
    }
20
21
    protected function doGetParent(array $context)
22
    {
23
        return "layout/layout.twig";
24
    }
25
26
    protected function doDisplay(array $context, array $blocks = array())
27
    {
28
        // line 2
29
        $context["__internal_360c4d2c1ef9dd65dd45aaadc2d4a9e62e6355bc0be40451e5bf0f8f47a4d0fe"] = $this->loadTemplate("macros.twig", "namespace.twig", 2);
30
        // line 1
31
        $this->parent->display($context, array_merge($this->blocks, $blocks));
32
    }
33
34
    // line 3
35
    public function block_title($context, array $blocks = array())
0 ignored issues
show
Coding Style introduced by
This method is not in camel caps format.

This check looks for method names that are not written in camelCase.

In camelCase names are written without any punctuation, the start of each new word being marked by a capital letter. Thus the name database connection seeker becomes databaseConnectionSeeker.

Loading history...
36
    {
37
        echo (isset($context["namespace"]) ? $context["namespace"] : $this->getContext($context, "namespace"));
38
        echo " | ";
39
        $this->displayParentBlock("title", $context, $blocks);
40
    }
41
42
    // line 4
43
    public function block_body_class($context, array $blocks = array())
0 ignored issues
show
Coding Style introduced by
This method is not in camel caps format.

This check looks for method names that are not written in camelCase.

In camelCase names are written without any punctuation, the start of each new word being marked by a capital letter. Thus the name database connection seeker becomes databaseConnectionSeeker.

Loading history...
44
    {
45
        echo "namespace";
46
    }
47
48
    // line 5
49
    public function block_page_id($context, array $blocks = array())
0 ignored issues
show
Coding Style introduced by
This method is not in camel caps format.

This check looks for method names that are not written in camelCase.

In camelCase names are written without any punctuation, the start of each new word being marked by a capital letter. Thus the name database connection seeker becomes databaseConnectionSeeker.

Loading history...
50
    {
51
        echo twig_escape_filter($this->env, ("namespace:" . twig_replace_filter((isset($context["namespace"]) ? $context["namespace"] : $this->getContext($context, "namespace")), array("\\" => "_"))), "html", null, true);
52
    }
53
54
    // line 7
55
    public function block_below_menu($context, array $blocks = array())
0 ignored issues
show
Coding Style introduced by
This method is not in camel caps format.

This check looks for method names that are not written in camelCase.

In camelCase names are written without any punctuation, the start of each new word being marked by a capital letter. Thus the name database connection seeker becomes databaseConnectionSeeker.

Loading history...
56
    {
57
        // line 8
58
        echo "    <div class=\"namespace-breadcrumbs\">
59
        <ol class=\"breadcrumb\">
60
            <li><span class=\"label label-default\">Namespace</span></li>
61
            ";
62
        // line 11
63
        echo $context["__internal_360c4d2c1ef9dd65dd45aaadc2d4a9e62e6355bc0be40451e5bf0f8f47a4d0fe"]->getbreadcrumbs((isset($context["namespace"]) ? $context["namespace"] : $this->getContext($context, "namespace")));
64
        echo "
65
        </ol>
66
    </div>
67
";
68
    }
69
70
    // line 16
71
    public function block_page_content($context, array $blocks = array())
0 ignored issues
show
Coding Style introduced by
This method is not in camel caps format.

This check looks for method names that are not written in camelCase.

In camelCase names are written without any punctuation, the start of each new word being marked by a capital letter. Thus the name database connection seeker becomes databaseConnectionSeeker.

Loading history...
72
    {
73
        // line 17
74
        echo "
75
    <div class=\"page-header\">
76
        <h1>";
77
        // line 19
78
        echo (isset($context["namespace"]) ? $context["namespace"] : $this->getContext($context, "namespace"));
79
        echo "</h1>
80
    </div>
81
82
    ";
83
        // line 22
84
        if ((isset($context["subnamespaces"]) ? $context["subnamespaces"] : $this->getContext($context, "subnamespaces"))) {
85
            // line 23
86
            echo "        <h2>Namespaces</h2>
87
        <div class=\"namespace-list\">
88
            ";
89
            // line 25
90
            $context['_parent'] = $context;
91
            $context['_seq'] = twig_ensure_traversable((isset($context["subnamespaces"]) ? $context["subnamespaces"] : $this->getContext($context, "subnamespaces")));
92
            foreach ($context['_seq'] as $context["_key"] => $context["ns"]) {
93
                echo $context["__internal_360c4d2c1ef9dd65dd45aaadc2d4a9e62e6355bc0be40451e5bf0f8f47a4d0fe"]->getnamespace_link($context["ns"]);
94
            }
95
            $_parent = $context['_parent'];
96
            unset($context['_seq'], $context['_iterated'], $context['_key'], $context['ns'], $context['_parent'], $context['loop']);
97
            $context = array_intersect_key($context, $_parent) + $_parent;
98
            // line 26
99
            echo "        </div>
100
    ";
101
        }
102
        // line 28
103
        echo "
104
    ";
105
        // line 29
106
        if ((isset($context["classes"]) ? $context["classes"] : $this->getContext($context, "classes"))) {
107
            // line 30
108
            echo "        <h2>Classes</h2>
109
        ";
110
            // line 31
111
            echo $context["__internal_360c4d2c1ef9dd65dd45aaadc2d4a9e62e6355bc0be40451e5bf0f8f47a4d0fe"]->getrender_classes((isset($context["classes"]) ? $context["classes"] : $this->getContext($context, "classes")));
112
            echo "
113
    ";
114
        }
115
        // line 33
116
        echo "
117
    ";
118
        // line 34
119
        if ((isset($context["interfaces"]) ? $context["interfaces"] : $this->getContext($context, "interfaces"))) {
120
            // line 35
121
            echo "        <h2>Interfaces</h2>
122
        ";
123
            // line 36
124
            echo $context["__internal_360c4d2c1ef9dd65dd45aaadc2d4a9e62e6355bc0be40451e5bf0f8f47a4d0fe"]->getrender_classes((isset($context["interfaces"]) ? $context["interfaces"] : $this->getContext($context, "interfaces")));
125
            echo "
126
    ";
127
        }
128
        // line 38
129
        echo "
130
    ";
131
        // line 39
132
        if ((isset($context["exceptions"]) ? $context["exceptions"] : $this->getContext($context, "exceptions"))) {
133
            // line 40
134
            echo "        <h2>Exceptions</h2>
135
        ";
136
            // line 41
137
            echo $context["__internal_360c4d2c1ef9dd65dd45aaadc2d4a9e62e6355bc0be40451e5bf0f8f47a4d0fe"]->getrender_classes((isset($context["exceptions"]) ? $context["exceptions"] : $this->getContext($context, "exceptions")));
138
            echo "
139
    ";
140
        }
141
        // line 43
142
        echo "
143
";
144
    }
145
146
    public function getTemplateName()
147
    {
148
        return "namespace.twig";
149
    }
150
151
    public function isTraitable()
152
    {
153
        return false;
154
    }
155
156
    public function getDebugInfo()
157
    {
158
        return array (  142 => 43,  137 => 41,  134 => 40,  132 => 39,  129 => 38,  124 => 36,  121 => 35,  119 => 34,  116 => 33,  111 => 31,  108 => 30,  106 => 29,  103 => 28,  99 => 26,  90 => 25,  86 => 23,  84 => 22,  78 => 19,  74 => 17,  71 => 16,  63 => 11,  58 => 8,  55 => 7,  49 => 5,  43 => 4,  35 => 3,  31 => 1,  29 => 2,  11 => 1,);
159
    }
160
}
161
/* {% extends "layout/layout.twig" %}*/
0 ignored issues
show
Unused Code Comprehensibility introduced by
40% of this comment could be valid code. Did you maybe forget this after debugging?

Sometimes obsolete code just ends up commented out instead of removed. In this case it is better to remove the code once you have checked you do not need it.

The code might also have been commented out for debugging purposes. In this case it is vital that someone uncomments it again or your project may behave in very unexpected ways in production.

This check looks for comments that seem to be mostly valid code and reports them.

Loading history...
162
/* {% from "macros.twig" import breadcrumbs, render_classes, class_link, namespace_link %}*/
163
/* {% block title %}{{ namespace|raw }} | {{ parent() }}{% endblock %}*/
0 ignored issues
show
Unused Code Comprehensibility introduced by
48% of this comment could be valid code. Did you maybe forget this after debugging?

Sometimes obsolete code just ends up commented out instead of removed. In this case it is better to remove the code once you have checked you do not need it.

The code might also have been commented out for debugging purposes. In this case it is vital that someone uncomments it again or your project may behave in very unexpected ways in production.

This check looks for comments that seem to be mostly valid code and reports them.

Loading history...
164
/* {% block body_class 'namespace' %}*/
165
/* {% block page_id 'namespace:' ~ (namespace|replace({'\\': '_'})) %}*/
0 ignored issues
show
Unused Code Comprehensibility introduced by
50% of this comment could be valid code. Did you maybe forget this after debugging?

Sometimes obsolete code just ends up commented out instead of removed. In this case it is better to remove the code once you have checked you do not need it.

The code might also have been commented out for debugging purposes. In this case it is vital that someone uncomments it again or your project may behave in very unexpected ways in production.

This check looks for comments that seem to be mostly valid code and reports them.

Loading history...
166
/* */
167
/* {% block below_menu %}*/
168
/*     <div class="namespace-breadcrumbs">*/
169
/*         <ol class="breadcrumb">*/
170
/*             <li><span class="label label-default">Namespace</span></li>*/
171
/*             {{ breadcrumbs(namespace) }}*/
0 ignored issues
show
Unused Code Comprehensibility introduced by
64% of this comment could be valid code. Did you maybe forget this after debugging?

Sometimes obsolete code just ends up commented out instead of removed. In this case it is better to remove the code once you have checked you do not need it.

The code might also have been commented out for debugging purposes. In this case it is vital that someone uncomments it again or your project may behave in very unexpected ways in production.

This check looks for comments that seem to be mostly valid code and reports them.

Loading history...
172
/*         </ol>*/
173
/*     </div>*/
174
/* {% endblock %}*/
175
/* */
176
/* {% block page_content %}*/
177
/* */
178
/*     <div class="page-header">*/
179
/*         <h1>{{ namespace|raw }}</h1>*/
0 ignored issues
show
Unused Code Comprehensibility introduced by
36% of this comment could be valid code. Did you maybe forget this after debugging?

Sometimes obsolete code just ends up commented out instead of removed. In this case it is better to remove the code once you have checked you do not need it.

The code might also have been commented out for debugging purposes. In this case it is vital that someone uncomments it again or your project may behave in very unexpected ways in production.

This check looks for comments that seem to be mostly valid code and reports them.

Loading history...
180
/*     </div>*/
181
/* */
182
/*     {% if subnamespaces %}*/
183
/*         <h2>Namespaces</h2>*/
184
/*         <div class="namespace-list">*/
185
/*             {% for ns in subnamespaces %}{{ namespace_link(ns) }}{% endfor %}*/
0 ignored issues
show
Unused Code Comprehensibility introduced by
39% of this comment could be valid code. Did you maybe forget this after debugging?

Sometimes obsolete code just ends up commented out instead of removed. In this case it is better to remove the code once you have checked you do not need it.

The code might also have been commented out for debugging purposes. In this case it is vital that someone uncomments it again or your project may behave in very unexpected ways in production.

This check looks for comments that seem to be mostly valid code and reports them.

Loading history...
186
/*         </div>*/
187
/*     {% endif %}*/
0 ignored issues
show
Unused Code Comprehensibility introduced by
38% of this comment could be valid code. Did you maybe forget this after debugging?

Sometimes obsolete code just ends up commented out instead of removed. In this case it is better to remove the code once you have checked you do not need it.

The code might also have been commented out for debugging purposes. In this case it is vital that someone uncomments it again or your project may behave in very unexpected ways in production.

This check looks for comments that seem to be mostly valid code and reports them.

Loading history...
188
/* */
189
/*     {% if classes %}*/
190
/*         <h2>Classes</h2>*/
191
/*         {{ render_classes(classes) }}*/
0 ignored issues
show
Unused Code Comprehensibility introduced by
55% of this comment could be valid code. Did you maybe forget this after debugging?

Sometimes obsolete code just ends up commented out instead of removed. In this case it is better to remove the code once you have checked you do not need it.

The code might also have been commented out for debugging purposes. In this case it is vital that someone uncomments it again or your project may behave in very unexpected ways in production.

This check looks for comments that seem to be mostly valid code and reports them.

Loading history...
192
/*     {% endif %}*/
0 ignored issues
show
Unused Code Comprehensibility introduced by
38% of this comment could be valid code. Did you maybe forget this after debugging?

Sometimes obsolete code just ends up commented out instead of removed. In this case it is better to remove the code once you have checked you do not need it.

The code might also have been commented out for debugging purposes. In this case it is vital that someone uncomments it again or your project may behave in very unexpected ways in production.

This check looks for comments that seem to be mostly valid code and reports them.

Loading history...
193
/* */
194
/*     {% if interfaces %}*/
195
/*         <h2>Interfaces</h2>*/
196
/*         {{ render_classes(interfaces) }}*/
0 ignored issues
show
Unused Code Comprehensibility introduced by
55% of this comment could be valid code. Did you maybe forget this after debugging?

Sometimes obsolete code just ends up commented out instead of removed. In this case it is better to remove the code once you have checked you do not need it.

The code might also have been commented out for debugging purposes. In this case it is vital that someone uncomments it again or your project may behave in very unexpected ways in production.

This check looks for comments that seem to be mostly valid code and reports them.

Loading history...
197
/*     {% endif %}*/
0 ignored issues
show
Unused Code Comprehensibility introduced by
38% of this comment could be valid code. Did you maybe forget this after debugging?

Sometimes obsolete code just ends up commented out instead of removed. In this case it is better to remove the code once you have checked you do not need it.

The code might also have been commented out for debugging purposes. In this case it is vital that someone uncomments it again or your project may behave in very unexpected ways in production.

This check looks for comments that seem to be mostly valid code and reports them.

Loading history...
198
/* */
199
/*     {% if exceptions %}*/
200
/*         <h2>Exceptions</h2>*/
201
/*         {{ render_classes(exceptions) }}*/
0 ignored issues
show
Unused Code Comprehensibility introduced by
55% of this comment could be valid code. Did you maybe forget this after debugging?

Sometimes obsolete code just ends up commented out instead of removed. In this case it is better to remove the code once you have checked you do not need it.

The code might also have been commented out for debugging purposes. In this case it is vital that someone uncomments it again or your project may behave in very unexpected ways in production.

This check looks for comments that seem to be mostly valid code and reports them.

Loading history...
202
/*     {% endif %}*/
0 ignored issues
show
Unused Code Comprehensibility introduced by
38% of this comment could be valid code. Did you maybe forget this after debugging?

Sometimes obsolete code just ends up commented out instead of removed. In this case it is better to remove the code once you have checked you do not need it.

The code might also have been commented out for debugging purposes. In this case it is vital that someone uncomments it again or your project may behave in very unexpected ways in production.

This check looks for comments that seem to be mostly valid code and reports them.

Loading history...
203
/* */
204
/* {% endblock %}*/
205
/* */
206