Completed
Push — master ( cd0f1c...b7e79d )
by Michael
03:34
created

__TwigTemplate_d3eee76ecac02cc1b279fc0444acf3a1baca0ae0247e024dc63f0ba2599e8af1   A

Complexity

Total Complexity 22

Size/Duplication

Total Lines 219
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 22
c 1
b 0
f 1
lcom 0
cbo 0
dl 0
loc 219
rs 10
1
<?php
2
3
/* layout/layout.twig */
4
class __TwigTemplate_d3eee76ecac02cc1b279fc0444acf3a1baca0ae0247e024dc63f0ba2599e8af1 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/base.twig", "layout/layout.twig", 1);
12
        $this->blocks = array(
13
            'content' => array($this, 'block_content'),
14
            'below_menu' => array($this, 'block_below_menu'),
15
            'page_content' => array($this, 'block_page_content'),
16
            'menu' => array($this, 'block_menu'),
17
            'leftnav' => array($this, 'block_leftnav'),
18
            'control_panel' => array($this, 'block_control_panel'),
19
            'footer' => array($this, 'block_footer'),
20
        );
21
    }
22
23
    protected function doGetParent(array $context)
24
    {
25
        return "layout/base.twig";
26
    }
27
28
    protected function doDisplay(array $context, array $blocks = array())
29
    {
30
        $this->parent->display($context, array_merge($this->blocks, $blocks));
31
    }
32
33
    // line 3
34
    public function block_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...
35
    {
36
        // line 4
37
        echo "    <div id=\"content\">
38
        <div id=\"left-column\">
39
            ";
40
        // line 6
41
        $this->displayBlock("control_panel", $context, $blocks);
42
        echo "
43
            ";
44
        // line 7
45
        $this->displayBlock("leftnav", $context, $blocks);
46
        echo "
47
        </div>
48
        <div id=\"right-column\">
49
            ";
50
        // line 10
51
        $this->displayBlock("menu", $context, $blocks);
52
        echo "
53
            ";
54
        // line 11
55
        $this->displayBlock('below_menu', $context, $blocks);
56
        // line 12
57
        echo "            <div id=\"page-content\">
58
                ";
59
        // line 13
60
        $this->displayBlock('page_content', $context, $blocks);
61
        // line 14
62
        echo "            </div>
63
            ";
64
        // line 15
65
        $this->displayBlock("footer", $context, $blocks);
66
        echo "
67
        </div>
68
    </div>
69
";
70
    }
71
72
    // line 11
73
    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...
74
    {
75
        echo "";
76
    }
77
78
    // line 13
79
    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...
80
    {
81
        echo "";
82
    }
83
84
    // line 20
85
    public function block_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...
86
    {
87
        // line 21
88
        echo "    <nav id=\"site-nav\" class=\"navbar navbar-default\" role=\"navigation\">
89
        <div class=\"container-fluid\">
90
            <div class=\"navbar-header\">
91
                <button type=\"button\" class=\"navbar-toggle\" data-toggle=\"collapse\" data-target=\"#navbar-elements\">
92
                    <span class=\"sr-only\">Toggle navigation</span>
93
                    <span class=\"icon-bar\"></span>
94
                    <span class=\"icon-bar\"></span>
95
                    <span class=\"icon-bar\"></span>
96
                </button>
97
                <a class=\"navbar-brand\" href=\"";
98
        // line 30
99
        echo twig_escape_filter($this->env, $this->env->getExtension('sami')->pathForStaticFile($context, "index.html"), "html", null, true);
100
        echo "\">";
101
        echo twig_escape_filter($this->env, $this->getAttribute((isset($context["project"]) ? $context["project"] : $this->getContext($context, "project")), "config", array(0 => "title"), "method"), "html", null, true);
102
        echo "</a>
103
            </div>
104
            <div class=\"collapse navbar-collapse\" id=\"navbar-elements\">
105
                <ul class=\"nav navbar-nav\">
106
                    <li><a href=\"";
107
        // line 34
108
        echo twig_escape_filter($this->env, $this->env->getExtension('sami')->pathForStaticFile($context, "classes.html"), "html", null, true);
109
        echo "\">Classes</a></li>
110
                    ";
111
        // line 35
112
        if ((isset($context["has_namespaces"]) ? $context["has_namespaces"] : $this->getContext($context, "has_namespaces"))) {
113
            // line 36
114
            echo "                        <li><a href=\"";
115
            echo twig_escape_filter($this->env, $this->env->getExtension('sami')->pathForStaticFile($context, "namespaces.html"), "html", null, true);
116
            echo "\">Namespaces</a></li>
117
                    ";
118
        }
119
        // line 38
120
        echo "                    <li><a href=\"";
121
        echo twig_escape_filter($this->env, $this->env->getExtension('sami')->pathForStaticFile($context, "interfaces.html"), "html", null, true);
122
        echo "\">Interfaces</a></li>
123
                    <li><a href=\"";
124
        // line 39
125
        echo twig_escape_filter($this->env, $this->env->getExtension('sami')->pathForStaticFile($context, "traits.html"), "html", null, true);
126
        echo "\">Traits</a></li>
127
                    <li><a href=\"";
128
        // line 40
129
        echo twig_escape_filter($this->env, $this->env->getExtension('sami')->pathForStaticFile($context, "doc-index.html"), "html", null, true);
130
        echo "\">Index</a></li>
131
                    <li><a href=\"";
132
        // line 41
133
        echo twig_escape_filter($this->env, $this->env->getExtension('sami')->pathForStaticFile($context, "search.html"), "html", null, true);
134
        echo "\">Search</a></li>
135
                </ul>
136
            </div>
137
        </div>
138
    </nav>
139
";
140
    }
141
142
    // line 48
143
    public function block_leftnav($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...
144
    {
145
        // line 49
146
        echo "    <div id=\"api-tree\"></div>
147
";
148
    }
149
150
    // line 52
151
    public function block_control_panel($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...
152
    {
153
        // line 53
154
        echo "    <div id=\"control-panel\">
155
        ";
156
        // line 54
157
        if ((twig_length_filter($this->env, $this->getAttribute((isset($context["project"]) ? $context["project"] : $this->getContext($context, "project")), "versions", array())) > 1)) {
158
            // line 55
159
            echo "            <form action=\"#\" method=\"GET\">
160
                <select id=\"version-switcher\" name=\"version\">
161
                    ";
162
            // line 57
163
            $context['_parent'] = $context;
164
            $context['_seq'] = twig_ensure_traversable($this->getAttribute((isset($context["project"]) ? $context["project"] : $this->getContext($context, "project")), "versions", array()));
165
            foreach ($context['_seq'] as $context["_key"] => $context["version"]) {
166
                // line 58
167
                echo "                        <option value=\"";
168
                echo twig_escape_filter($this->env, $this->env->getExtension('sami')->pathForStaticFile($context, (("../" . $context["version"]) . "/index.html")), "html", null, true);
169
                echo "\"";
170
                echo ((($context["version"] == $this->getAttribute((isset($context["project"]) ? $context["project"] : $this->getContext($context, "project")), "version", array()))) ? (" selected") : (""));
171
                echo ">";
172
                echo twig_escape_filter($this->env, $this->getAttribute($context["version"], "longname", array()), "html", null, true);
173
                echo "</option>
174
                    ";
175
            }
176
            $_parent = $context['_parent'];
177
            unset($context['_seq'], $context['_iterated'], $context['_key'], $context['version'], $context['_parent'], $context['loop']);
178
            $context = array_intersect_key($context, $_parent) + $_parent;
179
            // line 60
180
            echo "                </select>
181
            </form>
182
        ";
183
        }
184
        // line 63
185
        echo "        <form id=\"search-form\" action=\"";
186
        echo twig_escape_filter($this->env, $this->env->getExtension('sami')->pathForStaticFile($context, "search.html"), "html", null, true);
187
        echo "\" method=\"GET\">
188
            <span class=\"glyphicon glyphicon-search\"></span>
189
            <input name=\"search\"
190
                   class=\"typeahead form-control\"
191
                   type=\"search\"
192
                   placeholder=\"Search\">
193
        </form>
194
    </div>
195
";
196
    }
197
198
    // line 73
199
    public function block_footer($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...
200
    {
201
        // line 74
202
        echo "    <div id=\"footer\">
203
        Generated by <a href=\"http://sami.sensiolabs.org/\">Sami, the API Documentation Generator</a>.
204
    </div>
205
";
206
    }
207
208
    public function getTemplateName()
209
    {
210
        return "layout/layout.twig";
211
    }
212
213
    public function isTraitable()
214
    {
215
        return false;
216
    }
217
218
    public function getDebugInfo()
219
    {
220
        return array (  202 => 74,  199 => 73,  185 => 63,  180 => 60,  167 => 58,  163 => 57,  159 => 55,  157 => 54,  154 => 53,  151 => 52,  146 => 49,  143 => 48,  133 => 41,  129 => 40,  125 => 39,  120 => 38,  114 => 36,  112 => 35,  108 => 34,  99 => 30,  88 => 21,  85 => 20,  79 => 13,  73 => 11,  65 => 15,  62 => 14,  60 => 13,  57 => 12,  55 => 11,  51 => 10,  45 => 7,  41 => 6,  37 => 4,  34 => 3,  11 => 1,);
221
    }
222
}
223
/* {% extends "layout/base.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...
224
/* */
225
/* {% block content %}*/
226
/*     <div id="content">*/
227
/*         <div id="left-column">*/
228
/*             {{ block('control_panel') }}*/
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...
229
/*             {{ block('leftnav') }}*/
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...
230
/*         </div>*/
231
/*         <div id="right-column">*/
232
/*             {{ block('menu') }}*/
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...
233
/*             {% block below_menu '' %}*/
234
/*             <div id="page-content">*/
235
/*                 {% block page_content '' %}*/
236
/*             </div>*/
237
/*             {{ block('footer') }}*/
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...
238
/*         </div>*/
239
/*     </div>*/
240
/* {% endblock %}*/
241
/* */
242
/* {% block menu %}*/
243
/*     <nav id="site-nav" class="navbar navbar-default" role="navigation">*/
244
/*         <div class="container-fluid">*/
245
/*             <div class="navbar-header">*/
246
/*                 <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar-elements">*/
247
/*                     <span class="sr-only">Toggle navigation</span>*/
248
/*                     <span class="icon-bar"></span>*/
249
/*                     <span class="icon-bar"></span>*/
250
/*                     <span class="icon-bar"></span>*/
251
/*                 </button>*/
252
/*                 <a class="navbar-brand" href="{{ path('index.html') }}">{{ project.config('title') }}</a>*/
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...
253
/*             </div>*/
254
/*             <div class="collapse navbar-collapse" id="navbar-elements">*/
255
/*                 <ul class="nav navbar-nav">*/
256
/*                     <li><a href="{{ path('classes.html') }}">Classes</a></li>*/
257
/*                     {% if has_namespaces %}*/
258
/*                         <li><a href="{{ path('namespaces.html') }}">Namespaces</a></li>*/
259
/*                     {% 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...
260
/*                     <li><a href="{{ path('interfaces.html') }}">Interfaces</a></li>*/
261
/*                     <li><a href="{{ path('traits.html') }}">Traits</a></li>*/
262
/*                     <li><a href="{{ path('doc-index.html') }}">Index</a></li>*/
263
/*                     <li><a href="{{ path('search.html') }}">Search</a></li>*/
264
/*                 </ul>*/
265
/*             </div>*/
266
/*         </div>*/
267
/*     </nav>*/
268
/* {% endblock %}*/
269
/* */
270
/* {% block leftnav %}*/
271
/*     <div id="api-tree"></div>*/
272
/* {% endblock %}*/
273
/* */
274
/* {% block control_panel %}*/
275
/*     <div id="control-panel">*/
276
/*         {% if project.versions|length > 1 %}*/
277
/*             <form action="#" method="GET">*/
278
/*                 <select id="version-switcher" name="version">*/
279
/*                     {% for version in project.versions %}*/
280
/*                         <option value="{{ path('../' ~ version ~ '/index.html') }}"{{ version == project.version ? ' selected' : '' }}>{{ version.longname }}</option>*/
281
/*                     {% endfor %}*/
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...
282
/*                 </select>*/
283
/*             </form>*/
284
/*         {% 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...
285
/*         <form id="search-form" action="{{ path('search.html') }}" method="GET">*/
286
/*             <span class="glyphicon glyphicon-search"></span>*/
287
/*             <input name="search"*/
288
/*                    class="typeahead form-control"*/
289
/*                    type="search"*/
290
/*                    placeholder="Search">*/
291
/*         </form>*/
292
/*     </div>*/
293
/* {% endblock %}*/
294
/* */
295
/* {% block footer %}*/
296
/*     <div id="footer">*/
297
/*         Generated by <a href="http://sami.sensiolabs.org/">Sami, the API Documentation Generator</a>.*/
298
/*     </div>*/
299
/* {% endblock %}*/
300
/* */
301