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

getSourceContext()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
/* errors/404.html.twig */
4
class __TwigTemplate_b756a6182a6b7c10c49cbe58c9faadb226e31c81ea638511ea0c08c3b4cac407 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
        );
14
    }
15
16
    protected function doDisplay(array $context, array $blocks = array())
17
    {
18
        // line 1
19
        echo twig_escape_filter($this->env, ($context["title"] ?? null), "html", null, true);
20
    }
21
22
    public function getTemplateName()
23
    {
24
        return "errors/404.html.twig";
25
    }
26
27
    public function isTraitable()
28
    {
29
        return false;
30
    }
31
32
    public function getDebugInfo()
33
    {
34
        return array (  19 => 1,);
35
    }
36
37
    /** @deprecated since 1.27 (to be removed in 2.0). Use getSourceContext() instead */
38
    public function getSource()
39
    {
40
        @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...
41
42
        return $this->getSourceContext()->getCode();
43
    }
44
45
    public function getSourceContext()
46
    {
47
        return new Twig_Source("{{ title }}", "errors/404.html.twig", "F:\\OpenServer\\OSPanel\\domains\\github\\Rudra-Framework\\app\\resources\\twig\\view\\errors\\404.html.twig");
48
    }
49
}
50