PageRenderTime 71ms CodeModel.GetById 10ms RepoModel.GetById 0ms app.codeStats 0ms

/var/cache/dev/twig/e6/e6b42366447243d1c09c6ec812cc29e02e167a8a413b8049e1ee3257aa8c1109.php

https://bitbucket.org/sicomore/next-op-exercise
PHP | 186 lines | 146 code | 19 blank | 21 comment | 27 complexity | 92dacde28ede21ddf4f6117fae8dab33 MD5 | raw file
Possible License(s): LGPL-2.0, Unlicense, Apache-2.0, BSD-3-Clause
  1. <?php
  2. /* @Twig/Exception/trace.html.twig */
  3. class __TwigTemplate_a509166bc08f171b885eb4cfe5f72a99b21cf2d9e5ae4b97f31bee28c2cf1f06 extends Twig_Template
  4. {
  5. private $source;
  6. public function __construct(Twig_Environment $env)
  7. {
  8. parent::__construct($env);
  9. $this->source = $this->getSourceContext();
  10. $this->parent = false;
  11. $this->blocks = array(
  12. );
  13. }
  14. protected function doDisplay(array $context, array $blocks = array())
  15. {
  16. $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  17. $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new Twig_Profiler_Profile($this->getTemplateName(), "template", "@Twig/Exception/trace.html.twig"));
  18. $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  19. $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new Twig_Profiler_Profile($this->getTemplateName(), "template", "@Twig/Exception/trace.html.twig"));
  20. // line 1
  21. echo "<div class=\"trace-line-header break-long-words ";
  22. echo ((((twig_get_attribute($this->env, $this->source, ($context["trace"] ?? null), "file", array(), "any", true, true)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, ($context["trace"] ?? null), "file", array()), false)) : (false))) ? ("sf-toggle") : (""));
  23. echo "\" data-toggle-selector=\"#trace-html-";
  24. echo twig_escape_filter($this->env, (isset($context["prefix"]) || array_key_exists("prefix", $context) ? $context["prefix"] : (function () { throw new Twig_Error_Runtime('Variable "prefix" does not exist.', 1, $this->source); })()), "html", null, true);
  25. echo "-";
  26. echo twig_escape_filter($this->env, (isset($context["i"]) || array_key_exists("i", $context) ? $context["i"] : (function () { throw new Twig_Error_Runtime('Variable "i" does not exist.', 1, $this->source); })()), "html", null, true);
  27. echo "\" data-toggle-initial=\"";
  28. echo (((isset($context["_display_code_snippet"]) || array_key_exists("_display_code_snippet", $context) ? $context["_display_code_snippet"] : (function () { throw new Twig_Error_Runtime('Variable "_display_code_snippet" does not exist.', 1, $this->source); })())) ? ("display") : (""));
  29. echo "\">
  30. ";
  31. // line 2
  32. if (((twig_get_attribute($this->env, $this->source, ($context["trace"] ?? null), "file", array(), "any", true, true)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, ($context["trace"] ?? null), "file", array()), false)) : (false))) {
  33. // line 3
  34. echo " <span class=\"icon icon-close\">";
  35. echo twig_include($this->env, $context, "@Twig/images/icon-minus-square.svg");
  36. echo "</span>
  37. <span class=\"icon icon-open\">";
  38. // line 4
  39. echo twig_include($this->env, $context, "@Twig/images/icon-plus-square.svg");
  40. echo "</span>
  41. ";
  42. }
  43. // line 6
  44. echo "
  45. ";
  46. // line 7
  47. if (twig_get_attribute($this->env, $this->source, (isset($context["trace"]) || array_key_exists("trace", $context) ? $context["trace"] : (function () { throw new Twig_Error_Runtime('Variable "trace" does not exist.', 7, $this->source); })()), "function", array())) {
  48. // line 8
  49. echo " <span class=\"trace-class\">";
  50. echo $this->extensions['Symfony\Bridge\Twig\Extension\CodeExtension']->abbrClass(twig_get_attribute($this->env, $this->source, (isset($context["trace"]) || array_key_exists("trace", $context) ? $context["trace"] : (function () { throw new Twig_Error_Runtime('Variable "trace" does not exist.', 8, $this->source); })()), "class", array()));
  51. echo "</span>";
  52. if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, (isset($context["trace"]) || array_key_exists("trace", $context) ? $context["trace"] : (function () { throw new Twig_Error_Runtime('Variable "trace" does not exist.', 8, $this->source); })()), "type", array()))) {
  53. echo "<span class=\"trace-type\">";
  54. echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["trace"]) || array_key_exists("trace", $context) ? $context["trace"] : (function () { throw new Twig_Error_Runtime('Variable "trace" does not exist.', 8, $this->source); })()), "type", array()), "html", null, true);
  55. echo "</span>";
  56. }
  57. echo "<span class=\"trace-method\">";
  58. echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["trace"]) || array_key_exists("trace", $context) ? $context["trace"] : (function () { throw new Twig_Error_Runtime('Variable "trace" does not exist.', 8, $this->source); })()), "function", array()), "html", null, true);
  59. echo "</span><span class=\"trace-arguments\">(";
  60. echo $this->extensions['Symfony\Bridge\Twig\Extension\CodeExtension']->formatArgs(twig_get_attribute($this->env, $this->source, (isset($context["trace"]) || array_key_exists("trace", $context) ? $context["trace"] : (function () { throw new Twig_Error_Runtime('Variable "trace" does not exist.', 8, $this->source); })()), "args", array()));
  61. echo ")</span>
  62. ";
  63. }
  64. // line 10
  65. echo "
  66. ";
  67. // line 11
  68. if (((twig_get_attribute($this->env, $this->source, ($context["trace"] ?? null), "file", array(), "any", true, true)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, ($context["trace"] ?? null), "file", array()), false)) : (false))) {
  69. // line 12
  70. echo " ";
  71. $context["line_number"] = ((twig_get_attribute($this->env, $this->source, ($context["trace"] ?? null), "line", array(), "any", true, true)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, ($context["trace"] ?? null), "line", array()), 1)) : (1));
  72. // line 13
  73. echo " ";
  74. $context["file_link"] = $this->extensions['Symfony\Bridge\Twig\Extension\CodeExtension']->getFileLink(twig_get_attribute($this->env, $this->source, (isset($context["trace"]) || array_key_exists("trace", $context) ? $context["trace"] : (function () { throw new Twig_Error_Runtime('Variable "trace" does not exist.', 13, $this->source); })()), "file", array()), (isset($context["line_number"]) || array_key_exists("line_number", $context) ? $context["line_number"] : (function () { throw new Twig_Error_Runtime('Variable "line_number" does not exist.', 13, $this->source); })()));
  75. // line 14
  76. echo " ";
  77. $context["file_path"] = twig_replace_filter(strip_tags($this->extensions['Symfony\Bridge\Twig\Extension\CodeExtension']->formatFile(twig_get_attribute($this->env, $this->source, (isset($context["trace"]) || array_key_exists("trace", $context) ? $context["trace"] : (function () { throw new Twig_Error_Runtime('Variable "trace" does not exist.', 14, $this->source); })()), "file", array()), (isset($context["line_number"]) || array_key_exists("line_number", $context) ? $context["line_number"] : (function () { throw new Twig_Error_Runtime('Variable "line_number" does not exist.', 14, $this->source); })()))), array((" at line " . (isset($context["line_number"]) || array_key_exists("line_number", $context) ? $context["line_number"] : (function () { throw new Twig_Error_Runtime('Variable "line_number" does not exist.', 14, $this->source); })())) => ""));
  78. // line 15
  79. echo " ";
  80. $context["file_path_parts"] = twig_split_filter($this->env, (isset($context["file_path"]) || array_key_exists("file_path", $context) ? $context["file_path"] : (function () { throw new Twig_Error_Runtime('Variable "file_path" does not exist.', 15, $this->source); })()), twig_constant("DIRECTORY_SEPARATOR"));
  81. // line 16
  82. echo "
  83. <span class=\"block trace-file-path\">
  84. in
  85. <a href=\"";
  86. // line 19
  87. echo twig_escape_filter($this->env, (isset($context["file_link"]) || array_key_exists("file_link", $context) ? $context["file_link"] : (function () { throw new Twig_Error_Runtime('Variable "file_link" does not exist.', 19, $this->source); })()), "html", null, true);
  88. echo "\">";
  89. echo twig_escape_filter($this->env, twig_join_filter(twig_slice($this->env, (isset($context["file_path_parts"]) || array_key_exists("file_path_parts", $context) ? $context["file_path_parts"] : (function () { throw new Twig_Error_Runtime('Variable "file_path_parts" does not exist.', 19, $this->source); })()), 0, -1), twig_constant("DIRECTORY_SEPARATOR")), "html", null, true);
  90. echo twig_escape_filter($this->env, twig_constant("DIRECTORY_SEPARATOR"), "html", null, true);
  91. echo "<strong>";
  92. echo twig_escape_filter($this->env, twig_last($this->env, (isset($context["file_path_parts"]) || array_key_exists("file_path_parts", $context) ? $context["file_path_parts"] : (function () { throw new Twig_Error_Runtime('Variable "file_path_parts" does not exist.', 19, $this->source); })())), "html", null, true);
  93. echo "</strong></a>
  94. (line ";
  95. // line 20
  96. echo twig_escape_filter($this->env, (isset($context["line_number"]) || array_key_exists("line_number", $context) ? $context["line_number"] : (function () { throw new Twig_Error_Runtime('Variable "line_number" does not exist.', 20, $this->source); })()), "html", null, true);
  97. echo ")
  98. </span>
  99. ";
  100. }
  101. // line 23
  102. echo "</div>
  103. ";
  104. // line 24
  105. if (((twig_get_attribute($this->env, $this->source, ($context["trace"] ?? null), "file", array(), "any", true, true)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, ($context["trace"] ?? null), "file", array()), false)) : (false))) {
  106. // line 25
  107. echo " <div id=\"trace-html-";
  108. echo twig_escape_filter($this->env, (((isset($context["prefix"]) || array_key_exists("prefix", $context) ? $context["prefix"] : (function () { throw new Twig_Error_Runtime('Variable "prefix" does not exist.', 25, $this->source); })()) . "-") . (isset($context["i"]) || array_key_exists("i", $context) ? $context["i"] : (function () { throw new Twig_Error_Runtime('Variable "i" does not exist.', 25, $this->source); })())), "html", null, true);
  109. echo "\" class=\"trace-code sf-toggle-content\">
  110. ";
  111. // line 26
  112. echo twig_replace_filter($this->extensions['Symfony\Bridge\Twig\Extension\CodeExtension']->fileExcerpt(twig_get_attribute($this->env, $this->source, (isset($context["trace"]) || array_key_exists("trace", $context) ? $context["trace"] : (function () { throw new Twig_Error_Runtime('Variable "trace" does not exist.', 26, $this->source); })()), "file", array()), twig_get_attribute($this->env, $this->source, (isset($context["trace"]) || array_key_exists("trace", $context) ? $context["trace"] : (function () { throw new Twig_Error_Runtime('Variable "trace" does not exist.', 26, $this->source); })()), "line", array()), 5), array("#DD0000" => "#183691", "#007700" => "#a71d5d", "#0000BB" => "#222222", "#FF8000" => "#969896"));
  113. // line 31
  114. echo "
  115. </div>
  116. ";
  117. }
  118. $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  119. $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  120. }
  121. public function getTemplateName()
  122. {
  123. return "@Twig/Exception/trace.html.twig";
  124. }
  125. public function isTraitable()
  126. {
  127. return false;
  128. }
  129. public function getDebugInfo()
  130. {
  131. return array ( 122 => 31, 120 => 26, 115 => 25, 113 => 24, 110 => 23, 104 => 20, 95 => 19, 90 => 16, 87 => 15, 84 => 14, 81 => 13, 78 => 12, 76 => 11, 73 => 10, 57 => 8, 55 => 7, 52 => 6, 47 => 4, 42 => 3, 40 => 2, 29 => 1,);
  132. }
  133. public function getSourceContext()
  134. {
  135. return new Twig_Source("<div class=\"trace-line-header break-long-words {{ trace.file|default(false) ? 'sf-toggle' }}\" data-toggle-selector=\"#trace-html-{{ prefix }}-{{ i }}\" data-toggle-initial=\"{{ _display_code_snippet ? 'display' }}\">
  136. {% if trace.file|default(false) %}
  137. <span class=\"icon icon-close\">{{ include('@Twig/images/icon-minus-square.svg') }}</span>
  138. <span class=\"icon icon-open\">{{ include('@Twig/images/icon-plus-square.svg') }}</span>
  139. {% endif %}
  140. {% if trace.function %}
  141. <span class=\"trace-class\">{{ trace.class|abbr_class }}</span>{% if trace.type is not empty %}<span class=\"trace-type\">{{ trace.type }}</span>{% endif %}<span class=\"trace-method\">{{ trace.function }}</span><span class=\"trace-arguments\">({{ trace.args|format_args }})</span>
  142. {% endif %}
  143. {% if trace.file|default(false) %}
  144. {% set line_number = trace.line|default(1) %}
  145. {% set file_link = trace.file|file_link(line_number) %}
  146. {% set file_path = trace.file|format_file(line_number)|striptags|replace({ (' at line ' ~ line_number): '' }) %}
  147. {% set file_path_parts = file_path|split(constant('DIRECTORY_SEPARATOR')) %}
  148. <span class=\"block trace-file-path\">
  149. in
  150. <a href=\"{{ file_link }}\">{{ file_path_parts[:-1]|join(constant('DIRECTORY_SEPARATOR')) }}{{ constant('DIRECTORY_SEPARATOR') }}<strong>{{ file_path_parts|last }}</strong></a>
  151. (line {{ line_number }})
  152. </span>
  153. {% endif %}
  154. </div>
  155. {% if trace.file|default(false) %}
  156. <div id=\"trace-html-{{ prefix ~ '-' ~ i }}\" class=\"trace-code sf-toggle-content\">
  157. {{ trace.file|file_excerpt(trace.line, 5)|replace({
  158. '#DD0000': '#183691',
  159. '#007700': '#a71d5d',
  160. '#0000BB': '#222222',
  161. '#FF8000': '#969896'
  162. })|raw }}
  163. </div>
  164. {% endif %}
  165. ", "@Twig/Exception/trace.html.twig", "/Users/sicomore/Documents/PRO/Etudes-Pro/Etudes-Diplomes/Google_Drive_MEB/IFOCOP/IFOCOP/Cours/Symfony/next_op_exercise/next-op-exercise/vendor/symfony/symfony/src/Symfony/Bundle/TwigBundle/Resources/views/Exception/trace.html.twig");
  166. }
  167. }