Completed
Push — master ( 3bb683...8cf661 )
by Korotkov
01:35
created

getSourceContext()   B

Complexity

Conditions 1
Paths 1

Size

Total Lines 26
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 26
rs 8.8571
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 0
1
<?php
2
3
/* layout.html.twig */
4
class __TwigTemplate_aac06daff98e197f72d1921ead7832df8209ebb445464010070cff5c9abc245f 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...
5
{
6
    public function __construct(Twig_Environment $env)
7
    {
8
        parent::__construct($env);
9
10
        $this->parent = false;
11
12
        $this->blocks = array(
13
            'content' => array($this, 'block_content'),
14
        );
15
    }
16
17
    protected function doDisplay(array $context, array $blocks = array())
18
    {
19
        // line 1
20
        echo "<!doctype html>
21
<html lang=\"en\">
22
<head>
23
    <meta charset=\"UTF-8\">
24
    <meta name=\"viewport\"
25
          content=\"width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0\">
26
    <meta http-equiv=\"X-UA-Compatible\" content=\"ie=edge\">
27
    <title>";
28
        // line 8
29
        echo twig_escape_filter($this->env, ($context["title"] ?? null), "html", null, true);
30
        echo "</title>
31
    <link rel=\"shortcut icon\" href=\"/favicon.ico\" />
32
\t";
33
        // line 10
34
        if (twig_constant("DEV")) {
35
            // line 11
36
            echo "\t\t";
37
            echo $this->getAttribute(($context["debugbar"] ?? null), "renderHead", array(), "method");
38
            echo "
39
\t";
40
        }
41
        // line 13
42
        echo "</head>
43
<body>
44
45
    ";
46
        // line 16
47
        $this->displayBlock('content', $context, $blocks);
48
        // line 17
49
        echo "
50
\t";
51
        // line 18
52
        if (twig_constant("DEV")) {
53
            // line 19
54
            echo "        ";
55
            echo $this->getAttribute(($context["debugbar"] ?? null), "render", array(), "method");
56
            echo "
57
    ";
58
        }
59
        // line 21
60
        echo "</body>
61
</html>
62
";
63
    }
64
65
    // line 16
66
    public function block_content($context, array $blocks = array())
0 ignored issues
show
Unused Code introduced by
The parameter $context is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $blocks is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
67
    {
68
    }
69
70
    public function getTemplateName()
71
    {
72
        return "layout.html.twig";
73
    }
74
75
    public function isTraitable()
76
    {
77
        return false;
78
    }
79
80
    public function getDebugInfo()
81
    {
82
        return array (  66 => 16,  60 => 21,  54 => 19,  52 => 18,  49 => 17,  47 => 16,  42 => 13,  36 => 11,  34 => 10,  29 => 8,  20 => 1,);
83
    }
84
85
    /** @deprecated since 1.27 (to be removed in 2.0). Use getSourceContext() instead */
86
    public function getSource()
87
    {
88
        @trigger_error('The '.__METHOD__.' method is deprecated since version 1.27 and will be removed in 2.0. Use getSourceContext() instead.', E_USER_DEPRECATED);
0 ignored issues
show
Security Best Practice introduced by
It seems like you do not handle an error condition here. This can introduce security issues, and is generally not recommended.

If you suppress an error, we recommend checking for the error condition explicitly:

// For example instead of
@mkdir($dir);

// Better use
if (@mkdir($dir) === false) {
    throw new \RuntimeException('The directory '.$dir.' could not be created.');
}
Loading history...
89
90
        return $this->getSourceContext()->getCode();
91
    }
92
93
    public function getSourceContext()
94
    {
95
        return new Twig_Source("<!doctype html>
96
<html lang=\"en\">
97
<head>
98
    <meta charset=\"UTF-8\">
99
    <meta name=\"viewport\"
100
          content=\"width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0\">
101
    <meta http-equiv=\"X-UA-Compatible\" content=\"ie=edge\">
102
    <title>{{ title }}</title>
103
    <link rel=\"shortcut icon\" href=\"/favicon.ico\" />
104
\t{% if constant('DEV') %}
105
\t\t{{ debugbar.renderHead() | raw }}
106
\t{% endif %}
107
</head>
108
<body>
109
110
    {% block content %}{% endblock %}
111
112
\t{% if constant('DEV') %}
113
        {{ debugbar.render() | raw }}
114
    {% endif %}
115
</body>
116
</html>
117
", "layout.html.twig", "F:\\OpenServer\\OSPanel\\domains\\github\\Rudra-Framework\\app\\resources\\twig\\view\\layout.html.twig");
118
    }
119
}
120