|
1
|
|
|
<?php |
|
2
|
|
|
|
|
3
|
|
|
/* interfaces.twig */ |
|
4
|
|
View Code Duplication |
class __TwigTemplate_ff63d24b2ca9dd7b24ad60065f2d762242f39a660f0f6c0727e9947789645bf6 extends Twig_Template |
|
|
|
|
|
|
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", "interfaces.twig", 1); |
|
12
|
|
|
$this->blocks = array( |
|
13
|
|
|
'title' => array($this, 'block_title'), |
|
14
|
|
|
'body_class' => array($this, 'block_body_class'), |
|
15
|
|
|
'page_content' => array($this, 'block_page_content'), |
|
16
|
|
|
); |
|
17
|
|
|
} |
|
18
|
|
|
|
|
19
|
|
|
protected function doGetParent(array $context) |
|
20
|
|
|
{ |
|
21
|
|
|
return "layout/layout.twig"; |
|
|
|
|
|
|
22
|
|
|
} |
|
23
|
|
|
|
|
24
|
|
|
protected function doDisplay(array $context, array $blocks = array()) |
|
25
|
|
|
{ |
|
26
|
|
|
// line 2 |
|
27
|
|
|
$context["__internal_c679bdceb703a8de3d9d39c30ea182f0ba58fa5de93939d6546f2ecd7e4cfc5b"] = $this->loadTemplate("macros.twig", "interfaces.twig", 2); |
|
28
|
|
|
// line 1 |
|
29
|
|
|
$this->parent->display($context, array_merge($this->blocks, $blocks)); |
|
|
|
|
|
|
30
|
|
|
} |
|
31
|
|
|
|
|
32
|
|
|
// line 3 |
|
33
|
|
|
public function block_title($context, array $blocks = array()) |
|
34
|
|
|
{ |
|
35
|
|
|
echo "Interfaces | "; |
|
36
|
|
|
$this->displayParentBlock("title", $context, $blocks); |
|
37
|
|
|
} |
|
38
|
|
|
|
|
39
|
|
|
// line 4 |
|
40
|
|
|
public function block_body_class($context, array $blocks = array()) |
|
|
|
|
|
|
41
|
|
|
{ |
|
42
|
|
|
echo "interfaces"; |
|
43
|
|
|
} |
|
44
|
|
|
|
|
45
|
|
|
// line 6 |
|
46
|
|
|
public function block_page_content($context, array $blocks = array()) |
|
|
|
|
|
|
47
|
|
|
{ |
|
48
|
|
|
// line 7 |
|
49
|
|
|
echo " <div class=\"page-header\"> |
|
50
|
|
|
<h1>Interfaces</h1> |
|
51
|
|
|
</div> |
|
52
|
|
|
|
|
53
|
|
|
"; |
|
54
|
|
|
// line 11 |
|
55
|
|
|
echo $context["__internal_c679bdceb703a8de3d9d39c30ea182f0ba58fa5de93939d6546f2ecd7e4cfc5b"]->macro_render_classes((isset($context["interfaces"]) || array_key_exists("interfaces", $context) ? $context["interfaces"] : (function () { throw new Twig_Error_Runtime('Variable "interfaces" does not exist.', 11, $this->getSourceContext()); })())); |
|
56
|
|
|
echo " |
|
57
|
|
|
"; |
|
58
|
|
|
} |
|
59
|
|
|
|
|
60
|
|
|
public function getTemplateName() |
|
61
|
|
|
{ |
|
62
|
|
|
return "interfaces.twig"; |
|
63
|
|
|
} |
|
64
|
|
|
|
|
65
|
|
|
public function isTraitable() |
|
66
|
|
|
{ |
|
67
|
|
|
return false; |
|
68
|
|
|
} |
|
69
|
|
|
|
|
70
|
|
|
public function getDebugInfo() |
|
71
|
|
|
{ |
|
72
|
|
|
return array ( 55 => 11, 49 => 7, 46 => 6, 40 => 4, 33 => 3, 29 => 1, 27 => 2, 11 => 1,); |
|
73
|
|
|
} |
|
74
|
|
|
|
|
75
|
|
|
public function getSourceContext() |
|
76
|
|
|
{ |
|
77
|
|
|
return new Twig_Source("{% extends \"layout/layout.twig\" %} |
|
78
|
|
|
{% from \"macros.twig\" import render_classes %} |
|
79
|
|
|
{% block title %}Interfaces | {{ parent() }}{% endblock %} |
|
80
|
|
|
{% block body_class 'interfaces' %} |
|
81
|
|
|
|
|
82
|
|
|
{% block page_content %} |
|
83
|
|
|
<div class=\"page-header\"> |
|
84
|
|
|
<h1>Interfaces</h1> |
|
85
|
|
|
</div> |
|
86
|
|
|
|
|
87
|
|
|
{{ render_classes(interfaces) }} |
|
88
|
|
|
{% endblock %} |
|
89
|
|
|
", "interfaces.twig", "phar:///Users/bobby/Dropbox/Sites/OpenSource/Slackify/sami.phar/Sami/Resources/themes/default/interfaces.twig"); |
|
90
|
|
|
} |
|
91
|
|
|
} |
|
92
|
|
|
|
Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.
You can also find more detailed suggestions in the “Code” section of your repository.