Duplicate code is one of the most pungent code smells. A rule that is often used is to re-structure code once it is duplicated in three or more places.
Common duplication problems, and corresponding solutions are:
Complex classes like __TwigTemplate_de488507538fec809c29e6ee3b5350f920ba8dbe034069bea41bbe3743e02266 often do a lot of different things. To break such a class down, we need to identify a cohesive component within that class. A common approach to find such a component is to look for fields/methods that share the same prefixes, or suffixes. You can also have a look at the cohesion graph to spot any un-connected, or weakly-connected components.
Once you have determined the fields that belong together, you can apply the Extract Class refactoring. If the component makes sense as a sub-class, Extract Subclass is also a candidate, and is often faster.
While breaking up the class, it is a good idea to analyze how other classes use __TwigTemplate_de488507538fec809c29e6ee3b5350f920ba8dbe034069bea41bbe3743e02266, and based on these observations, apply Extract Interface, too.
| 1 | <?php |
||
| 4 | class __TwigTemplate_de488507538fec809c29e6ee3b5350f920ba8dbe034069bea41bbe3743e02266 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", "class.twig", 1); |
||
| 12 | $this->blocks = array( |
||
| 13 | 'title' => array($this, 'block_title'), |
||
| 14 | 'body_class' => array($this, 'block_body_class'), |
||
| 15 | 'page_id' => array($this, 'block_page_id'), |
||
| 16 | 'below_menu' => array($this, 'block_below_menu'), |
||
| 17 | 'page_content' => array($this, 'block_page_content'), |
||
| 18 | 'class_signature' => array($this, 'block_class_signature'), |
||
| 19 | 'method_signature' => array($this, 'block_method_signature'), |
||
| 20 | 'method_parameters_signature' => array($this, 'block_method_parameters_signature'), |
||
| 21 | 'parameters' => array($this, 'block_parameters'), |
||
| 22 | 'return' => array($this, 'block_return'), |
||
| 23 | 'exceptions' => array($this, 'block_exceptions'), |
||
| 24 | 'see' => array($this, 'block_see'), |
||
| 25 | 'constants' => array($this, 'block_constants'), |
||
| 26 | 'properties' => array($this, 'block_properties'), |
||
| 27 | 'methods' => array($this, 'block_methods'), |
||
| 28 | 'methods_details' => array($this, 'block_methods_details'), |
||
| 29 | 'method' => array($this, 'block_method'), |
||
| 30 | ); |
||
| 31 | } |
||
| 32 | |||
| 33 | protected function doGetParent(array $context) |
||
| 34 | { |
||
| 35 | return "layout/layout.twig"; |
||
| 36 | } |
||
| 37 | |||
| 38 | protected function doDisplay(array $context, array $blocks = array()) |
||
| 39 | { |
||
| 40 | // line 2 |
||
| 41 | $context["__internal_21474d8e13cfe6a3a0369d0a6e8352e7a7cfb873a2bbc6a59c929e7c5e02cfdc"] = $this->loadTemplate("macros.twig", "class.twig", 2); |
||
| 42 | // line 1 |
||
| 43 | $this->parent->display($context, array_merge($this->blocks, $blocks)); |
||
| 44 | } |
||
| 45 | |||
| 46 | // line 3 |
||
| 47 | public function block_title($context, array $blocks = array()) |
||
| 48 | { |
||
| 49 | echo (isset($context["class"]) ? $context["class"] : $this->getContext($context, "class")); |
||
| 50 | echo " | "; |
||
| 51 | $this->displayParentBlock("title", $context, $blocks); |
||
| 52 | } |
||
| 53 | |||
| 54 | // line 4 |
||
| 55 | public function block_body_class($context, array $blocks = array()) |
||
| 56 | { |
||
| 57 | echo "class"; |
||
| 58 | } |
||
| 59 | |||
| 60 | // line 5 |
||
| 61 | public function block_page_id($context, array $blocks = array()) |
||
| 62 | { |
||
| 63 | echo twig_escape_filter($this->env, ("class:" . twig_replace_filter($this->getAttribute((isset($context["class"]) ? $context["class"] : $this->getContext($context, "class")), "name", array()), array("\\" => "_"))), "html", null, true); |
||
| 64 | } |
||
| 65 | |||
| 66 | // line 7 |
||
| 67 | public function block_below_menu($context, array $blocks = array()) |
||
| 68 | { |
||
| 69 | // line 8 |
||
| 70 | echo " "; |
||
| 71 | if ($this->getAttribute((isset($context["class"]) ? $context["class"] : $this->getContext($context, "class")), "namespace", array())) { |
||
| 72 | // line 9 |
||
| 73 | echo " <div class=\"namespace-breadcrumbs\"> |
||
| 74 | <ol class=\"breadcrumb\"> |
||
| 75 | <li><span class=\"label label-default\">"; |
||
| 76 | // line 11 |
||
| 77 | echo $this->getAttribute((isset($context["class"]) ? $context["class"] : $this->getContext($context, "class")), "categoryName", array()); |
||
| 78 | echo "</span></li> |
||
| 79 | "; |
||
| 80 | // line 12 |
||
| 81 | echo $context["__internal_21474d8e13cfe6a3a0369d0a6e8352e7a7cfb873a2bbc6a59c929e7c5e02cfdc"]->getbreadcrumbs($this->getAttribute((isset($context["class"]) ? $context["class"] : $this->getContext($context, "class")), "namespace", array())); |
||
| 82 | echo " |
||
| 83 | <li>"; |
||
| 84 | // line 13 |
||
| 85 | echo $this->getAttribute((isset($context["class"]) ? $context["class"] : $this->getContext($context, "class")), "shortname", array()); |
||
| 86 | echo "</li> |
||
| 87 | </ol> |
||
| 88 | </div> |
||
| 89 | "; |
||
| 90 | } |
||
| 91 | } |
||
| 92 | |||
| 93 | // line 19 |
||
| 94 | public function block_page_content($context, array $blocks = array()) |
||
| 95 | { |
||
| 96 | // line 20 |
||
| 97 | echo " |
||
| 98 | <div class=\"page-header\"> |
||
| 99 | <h1> |
||
| 100 | "; |
||
| 101 | // line 23 |
||
| 102 | echo twig_last($this->env, twig_split_filter($this->env, $this->getAttribute((isset($context["class"]) ? $context["class"] : $this->getContext($context, "class")), "name", array()), "\\")); |
||
| 103 | echo " |
||
| 104 | "; |
||
| 105 | // line 24 |
||
| 106 | echo $context["__internal_21474d8e13cfe6a3a0369d0a6e8352e7a7cfb873a2bbc6a59c929e7c5e02cfdc"]->getdeprecated((isset($context["class"]) ? $context["class"] : $this->getContext($context, "class"))); |
||
| 107 | echo " |
||
| 108 | </h1> |
||
| 109 | </div> |
||
| 110 | |||
| 111 | <p>"; |
||
| 112 | // line 28 |
||
| 113 | $this->displayBlock("class_signature", $context, $blocks); |
||
| 114 | echo "</p> |
||
| 115 | |||
| 116 | "; |
||
| 117 | // line 30 |
||
| 118 | echo $context["__internal_21474d8e13cfe6a3a0369d0a6e8352e7a7cfb873a2bbc6a59c929e7c5e02cfdc"]->getdeprecations((isset($context["class"]) ? $context["class"] : $this->getContext($context, "class"))); |
||
| 119 | echo " |
||
| 120 | |||
| 121 | "; |
||
| 122 | // line 32 |
||
| 123 | if (($this->getAttribute((isset($context["class"]) ? $context["class"] : $this->getContext($context, "class")), "shortdesc", array()) || $this->getAttribute((isset($context["class"]) ? $context["class"] : $this->getContext($context, "class")), "longdesc", array()))) { |
||
| 124 | // line 33 |
||
| 125 | echo " <div class=\"description\"> |
||
| 126 | "; |
||
| 127 | // line 34 |
||
| 128 | if ($this->getAttribute((isset($context["class"]) ? $context["class"] : $this->getContext($context, "class")), "shortdesc", array())) { |
||
| 129 | // line 35 |
||
| 130 | echo "<p>"; |
||
| 131 | echo $this->env->getExtension('sami')->parseDesc($context, $this->getAttribute((isset($context["class"]) ? $context["class"] : $this->getContext($context, "class")), "shortdesc", array()), (isset($context["class"]) ? $context["class"] : $this->getContext($context, "class"))); |
||
| 132 | echo "</p>"; |
||
| 133 | } |
||
| 134 | // line 37 |
||
| 135 | echo " "; |
||
| 136 | if ($this->getAttribute((isset($context["class"]) ? $context["class"] : $this->getContext($context, "class")), "longdesc", array())) { |
||
| 137 | // line 38 |
||
| 138 | echo "<p>"; |
||
| 139 | echo $this->env->getExtension('sami')->parseDesc($context, $this->getAttribute((isset($context["class"]) ? $context["class"] : $this->getContext($context, "class")), "longdesc", array()), (isset($context["class"]) ? $context["class"] : $this->getContext($context, "class"))); |
||
| 140 | echo "</p>"; |
||
| 141 | } |
||
| 142 | // line 40 |
||
| 143 | echo " </div> |
||
| 144 | "; |
||
| 145 | } |
||
| 146 | // line 42 |
||
| 147 | echo " |
||
| 148 | "; |
||
| 149 | // line 43 |
||
| 150 | if ((isset($context["traits"]) ? $context["traits"] : $this->getContext($context, "traits"))) { |
||
| 151 | // line 44 |
||
| 152 | echo " <h2>Traits</h2> |
||
| 153 | |||
| 154 | "; |
||
| 155 | // line 46 |
||
| 156 | echo $context["__internal_21474d8e13cfe6a3a0369d0a6e8352e7a7cfb873a2bbc6a59c929e7c5e02cfdc"]->getrender_classes((isset($context["traits"]) ? $context["traits"] : $this->getContext($context, "traits"))); |
||
| 157 | echo " |
||
| 158 | "; |
||
| 159 | } |
||
| 160 | // line 48 |
||
| 161 | echo " |
||
| 162 | "; |
||
| 163 | // line 49 |
||
| 164 | if ((isset($context["constants"]) ? $context["constants"] : $this->getContext($context, "constants"))) { |
||
| 165 | // line 50 |
||
| 166 | echo " <h2>Constants</h2> |
||
| 167 | |||
| 168 | "; |
||
| 169 | // line 52 |
||
| 170 | $this->displayBlock("constants", $context, $blocks); |
||
| 171 | echo " |
||
| 172 | "; |
||
| 173 | } |
||
| 174 | // line 54 |
||
| 175 | echo " |
||
| 176 | "; |
||
| 177 | // line 55 |
||
| 178 | if ((isset($context["properties"]) ? $context["properties"] : $this->getContext($context, "properties"))) { |
||
| 179 | // line 56 |
||
| 180 | echo " <h2>Properties</h2> |
||
| 181 | |||
| 182 | "; |
||
| 183 | // line 58 |
||
| 184 | $this->displayBlock("properties", $context, $blocks); |
||
| 185 | echo " |
||
| 186 | "; |
||
| 187 | } |
||
| 188 | // line 60 |
||
| 189 | echo " |
||
| 190 | "; |
||
| 191 | // line 61 |
||
| 192 | if ((isset($context["methods"]) ? $context["methods"] : $this->getContext($context, "methods"))) { |
||
| 193 | // line 62 |
||
| 194 | echo " <h2>Methods</h2> |
||
| 195 | |||
| 196 | "; |
||
| 197 | // line 64 |
||
| 198 | $this->displayBlock("methods", $context, $blocks); |
||
| 199 | echo " |
||
| 200 | |||
| 201 | <h2>Details</h2> |
||
| 202 | |||
| 203 | "; |
||
| 204 | // line 68 |
||
| 205 | $this->displayBlock("methods_details", $context, $blocks); |
||
| 206 | echo " |
||
| 207 | "; |
||
| 208 | } |
||
| 209 | // line 70 |
||
| 210 | echo " |
||
| 211 | "; |
||
| 212 | } |
||
| 213 | |||
| 214 | // line 73 |
||
| 215 | public function block_class_signature($context, array $blocks = array()) |
||
| 216 | { |
||
| 217 | // line 74 |
||
| 218 | if (( !$this->getAttribute((isset($context["class"]) ? $context["class"] : $this->getContext($context, "class")), "interface", array()) && $this->getAttribute((isset($context["class"]) ? $context["class"] : $this->getContext($context, "class")), "abstract", array()))) { |
||
| 219 | echo "abstract "; |
||
| 220 | } |
||
| 221 | // line 75 |
||
| 222 | echo " "; |
||
| 223 | echo $this->getAttribute((isset($context["class"]) ? $context["class"] : $this->getContext($context, "class")), "categoryName", array()); |
||
| 224 | echo " |
||
| 225 | <strong>"; |
||
| 226 | // line 76 |
||
| 227 | echo $this->getAttribute((isset($context["class"]) ? $context["class"] : $this->getContext($context, "class")), "shortname", array()); |
||
| 228 | echo "</strong>"; |
||
| 229 | // line 77 |
||
| 230 | if ($this->getAttribute((isset($context["class"]) ? $context["class"] : $this->getContext($context, "class")), "parent", array())) { |
||
| 231 | // line 78 |
||
| 232 | echo " extends "; |
||
| 233 | echo $context["__internal_21474d8e13cfe6a3a0369d0a6e8352e7a7cfb873a2bbc6a59c929e7c5e02cfdc"]->getclass_link($this->getAttribute((isset($context["class"]) ? $context["class"] : $this->getContext($context, "class")), "parent", array())); |
||
| 234 | } |
||
| 235 | // line 80 |
||
| 236 | if ((twig_length_filter($this->env, $this->getAttribute((isset($context["class"]) ? $context["class"] : $this->getContext($context, "class")), "interfaces", array())) > 0)) { |
||
| 237 | // line 81 |
||
| 238 | echo " implements |
||
| 239 | "; |
||
| 240 | // line 82 |
||
| 241 | $context['_parent'] = $context; |
||
| 242 | $context['_seq'] = twig_ensure_traversable($this->getAttribute((isset($context["class"]) ? $context["class"] : $this->getContext($context, "class")), "interfaces", array())); |
||
| 243 | $context['loop'] = array( |
||
| 244 | 'parent' => $context['_parent'], |
||
| 245 | 'index0' => 0, |
||
| 246 | 'index' => 1, |
||
| 247 | 'first' => true, |
||
| 248 | ); |
||
| 249 | if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof Countable)) { |
||
| 250 | $length = count($context['_seq']); |
||
| 251 | $context['loop']['revindex0'] = $length - 1; |
||
| 252 | $context['loop']['revindex'] = $length; |
||
| 253 | $context['loop']['length'] = $length; |
||
| 254 | $context['loop']['last'] = 1 === $length; |
||
| 255 | } |
||
| 256 | foreach ($context['_seq'] as $context["_key"] => $context["interface"]) { |
||
| 257 | // line 83 |
||
| 258 | echo $context["__internal_21474d8e13cfe6a3a0369d0a6e8352e7a7cfb873a2bbc6a59c929e7c5e02cfdc"]->getclass_link($context["interface"]); |
||
| 259 | // line 84 |
||
| 260 | if ( !$this->getAttribute($context["loop"], "last", array())) { |
||
| 261 | echo ", "; |
||
| 262 | } |
||
| 263 | ++$context['loop']['index0']; |
||
| 264 | ++$context['loop']['index']; |
||
| 265 | $context['loop']['first'] = false; |
||
| 266 | if (isset($context['loop']['length'])) { |
||
| 267 | --$context['loop']['revindex0']; |
||
| 268 | --$context['loop']['revindex']; |
||
| 269 | $context['loop']['last'] = 0 === $context['loop']['revindex0']; |
||
| 270 | } |
||
| 271 | } |
||
| 272 | $_parent = $context['_parent']; |
||
| 273 | unset($context['_seq'], $context['_iterated'], $context['_key'], $context['interface'], $context['_parent'], $context['loop']); |
||
| 274 | $context = array_intersect_key($context, $_parent) + $_parent; |
||
| 275 | } |
||
| 276 | // line 87 |
||
| 277 | echo $context["__internal_21474d8e13cfe6a3a0369d0a6e8352e7a7cfb873a2bbc6a59c929e7c5e02cfdc"]->getsource_link((isset($context["project"]) ? $context["project"] : $this->getContext($context, "project")), (isset($context["class"]) ? $context["class"] : $this->getContext($context, "class"))); |
||
| 278 | echo " |
||
| 279 | "; |
||
| 280 | } |
||
| 281 | |||
| 282 | // line 90 |
||
| 283 | public function block_method_signature($context, array $blocks = array()) |
||
| 284 | { |
||
| 285 | // line 91 |
||
| 286 | if ($this->getAttribute((isset($context["method"]) ? $context["method"] : $this->getContext($context, "method")), "final", array())) { |
||
| 287 | echo "final"; |
||
| 288 | } |
||
| 289 | // line 92 |
||
| 290 | echo " "; |
||
| 291 | if ($this->getAttribute((isset($context["method"]) ? $context["method"] : $this->getContext($context, "method")), "abstract", array())) { |
||
| 292 | echo "abstract"; |
||
| 293 | } |
||
| 294 | // line 93 |
||
| 295 | echo " "; |
||
| 296 | if ($this->getAttribute((isset($context["method"]) ? $context["method"] : $this->getContext($context, "method")), "static", array())) { |
||
| 297 | echo "static"; |
||
| 298 | } |
||
| 299 | // line 94 |
||
| 300 | echo " "; |
||
| 301 | if ($this->getAttribute((isset($context["method"]) ? $context["method"] : $this->getContext($context, "method")), "protected", array())) { |
||
| 302 | echo "protected"; |
||
| 303 | } |
||
| 304 | // line 95 |
||
| 305 | echo " "; |
||
| 306 | if ($this->getAttribute((isset($context["method"]) ? $context["method"] : $this->getContext($context, "method")), "private", array())) { |
||
| 307 | echo "private"; |
||
| 308 | } |
||
| 309 | // line 96 |
||
| 310 | echo " "; |
||
| 311 | echo $context["__internal_21474d8e13cfe6a3a0369d0a6e8352e7a7cfb873a2bbc6a59c929e7c5e02cfdc"]->gethint_link($this->getAttribute((isset($context["method"]) ? $context["method"] : $this->getContext($context, "method")), "hint", array())); |
||
| 312 | echo " |
||
| 313 | <strong>"; |
||
| 314 | // line 97 |
||
| 315 | echo $this->getAttribute((isset($context["method"]) ? $context["method"] : $this->getContext($context, "method")), "name", array()); |
||
| 316 | echo "</strong>"; |
||
| 317 | $this->displayBlock("method_parameters_signature", $context, $blocks); |
||
| 318 | } |
||
| 319 | |||
| 320 | // line 100 |
||
| 321 | public function block_method_parameters_signature($context, array $blocks = array()) |
||
| 322 | { |
||
| 323 | // line 101 |
||
| 324 | $context["__internal_e53da55c84a7bf0c66230d4a441c4e6705dcc9cf42220bdf71e3d540138e9e2d"] = $this->loadTemplate("macros.twig", "class.twig", 101); |
||
| 325 | // line 102 |
||
| 326 | echo $context["__internal_e53da55c84a7bf0c66230d4a441c4e6705dcc9cf42220bdf71e3d540138e9e2d"]->getmethod_parameters_signature((isset($context["method"]) ? $context["method"] : $this->getContext($context, "method"))); |
||
| 327 | echo " |
||
| 328 | "; |
||
| 329 | // line 103 |
||
| 330 | echo $context["__internal_21474d8e13cfe6a3a0369d0a6e8352e7a7cfb873a2bbc6a59c929e7c5e02cfdc"]->getdeprecated((isset($context["method"]) ? $context["method"] : $this->getContext($context, "method"))); |
||
| 331 | } |
||
| 332 | |||
| 333 | // line 106 |
||
| 334 | public function block_parameters($context, array $blocks = array()) |
||
| 335 | { |
||
| 336 | // line 107 |
||
| 337 | echo " <table class=\"table table-condensed\"> |
||
| 338 | "; |
||
| 339 | // line 108 |
||
| 340 | $context['_parent'] = $context; |
||
| 341 | $context['_seq'] = twig_ensure_traversable($this->getAttribute((isset($context["method"]) ? $context["method"] : $this->getContext($context, "method")), "parameters", array())); |
||
| 342 | foreach ($context['_seq'] as $context["_key"] => $context["parameter"]) { |
||
| 343 | // line 109 |
||
| 344 | echo " <tr> |
||
| 345 | <td>"; |
||
| 346 | // line 110 |
||
| 347 | if ($this->getAttribute($context["parameter"], "hint", array())) { |
||
| 348 | echo $context["__internal_21474d8e13cfe6a3a0369d0a6e8352e7a7cfb873a2bbc6a59c929e7c5e02cfdc"]->gethint_link($this->getAttribute($context["parameter"], "hint", array())); |
||
| 349 | } |
||
| 350 | echo "</td> |
||
| 351 | <td>\$"; |
||
| 352 | // line 111 |
||
| 353 | echo $this->getAttribute($context["parameter"], "name", array()); |
||
| 354 | echo "</td> |
||
| 355 | <td>"; |
||
| 356 | // line 112 |
||
| 357 | echo $this->env->getExtension('sami')->parseDesc($context, $this->getAttribute($context["parameter"], "shortdesc", array()), (isset($context["class"]) ? $context["class"] : $this->getContext($context, "class"))); |
||
| 358 | echo "</td> |
||
| 359 | </tr> |
||
| 360 | "; |
||
| 361 | } |
||
| 362 | $_parent = $context['_parent']; |
||
| 363 | unset($context['_seq'], $context['_iterated'], $context['_key'], $context['parameter'], $context['_parent'], $context['loop']); |
||
| 364 | $context = array_intersect_key($context, $_parent) + $_parent; |
||
| 365 | // line 115 |
||
| 366 | echo " </table> |
||
| 367 | "; |
||
| 368 | } |
||
| 369 | |||
| 370 | // line 118 |
||
| 371 | public function block_return($context, array $blocks = array()) |
||
| 372 | { |
||
| 373 | // line 119 |
||
| 374 | echo " <table class=\"table table-condensed\"> |
||
| 375 | <tr> |
||
| 376 | <td>"; |
||
| 377 | // line 121 |
||
| 378 | echo $context["__internal_21474d8e13cfe6a3a0369d0a6e8352e7a7cfb873a2bbc6a59c929e7c5e02cfdc"]->gethint_link($this->getAttribute((isset($context["method"]) ? $context["method"] : $this->getContext($context, "method")), "hint", array())); |
||
| 379 | echo "</td> |
||
| 380 | <td>"; |
||
| 381 | // line 122 |
||
| 382 | echo $this->env->getExtension('sami')->parseDesc($context, $this->getAttribute((isset($context["method"]) ? $context["method"] : $this->getContext($context, "method")), "hintDesc", array()), (isset($context["class"]) ? $context["class"] : $this->getContext($context, "class"))); |
||
| 383 | echo "</td> |
||
| 384 | </tr> |
||
| 385 | </table> |
||
| 386 | "; |
||
| 387 | } |
||
| 388 | |||
| 389 | // line 127 |
||
| 390 | public function block_exceptions($context, array $blocks = array()) |
||
| 391 | { |
||
| 392 | // line 128 |
||
| 393 | echo " <table class=\"table table-condensed\"> |
||
| 394 | "; |
||
| 395 | // line 129 |
||
| 396 | $context['_parent'] = $context; |
||
| 397 | $context['_seq'] = twig_ensure_traversable($this->getAttribute((isset($context["method"]) ? $context["method"] : $this->getContext($context, "method")), "exceptions", array())); |
||
| 398 | foreach ($context['_seq'] as $context["_key"] => $context["exception"]) { |
||
| 399 | // line 130 |
||
| 400 | echo " <tr> |
||
| 401 | <td>"; |
||
| 402 | // line 131 |
||
| 403 | echo $context["__internal_21474d8e13cfe6a3a0369d0a6e8352e7a7cfb873a2bbc6a59c929e7c5e02cfdc"]->getclass_link($this->getAttribute($context["exception"], 0, array(), "array")); |
||
| 404 | echo "</td> |
||
| 405 | <td>"; |
||
| 406 | // line 132 |
||
| 407 | echo $this->env->getExtension('sami')->parseDesc($context, $this->getAttribute($context["exception"], 1, array(), "array"), (isset($context["class"]) ? $context["class"] : $this->getContext($context, "class"))); |
||
| 408 | echo "</td> |
||
| 409 | </tr> |
||
| 410 | "; |
||
| 411 | } |
||
| 412 | $_parent = $context['_parent']; |
||
| 413 | unset($context['_seq'], $context['_iterated'], $context['_key'], $context['exception'], $context['_parent'], $context['loop']); |
||
| 414 | $context = array_intersect_key($context, $_parent) + $_parent; |
||
| 415 | // line 135 |
||
| 416 | echo " </table> |
||
| 417 | "; |
||
| 418 | } |
||
| 419 | |||
| 420 | // line 138 |
||
| 421 | public function block_see($context, array $blocks = array()) |
||
| 422 | { |
||
| 423 | // line 139 |
||
| 424 | echo " <table class=\"table table-condensed\"> |
||
| 425 | "; |
||
| 426 | // line 140 |
||
| 427 | $context['_parent'] = $context; |
||
| 428 | $context['_seq'] = twig_ensure_traversable($this->getAttribute((isset($context["method"]) ? $context["method"] : $this->getContext($context, "method")), "tags", array(0 => "see"), "method")); |
||
| 429 | foreach ($context['_seq'] as $context["_key"] => $context["tag"]) { |
||
| 430 | // line 141 |
||
| 431 | echo " <tr> |
||
| 432 | <td>"; |
||
| 433 | // line 142 |
||
| 434 | echo $this->getAttribute($context["tag"], 0, array(), "array"); |
||
| 435 | echo "</td> |
||
| 436 | <td>"; |
||
| 437 | // line 143 |
||
| 438 | echo twig_join_filter(twig_slice($this->env, $context["tag"], 1, null), " "); |
||
| 439 | echo "</td> |
||
| 440 | </tr> |
||
| 441 | "; |
||
| 442 | } |
||
| 443 | $_parent = $context['_parent']; |
||
| 444 | unset($context['_seq'], $context['_iterated'], $context['_key'], $context['tag'], $context['_parent'], $context['loop']); |
||
| 445 | $context = array_intersect_key($context, $_parent) + $_parent; |
||
| 446 | // line 146 |
||
| 447 | echo " </table> |
||
| 448 | "; |
||
| 449 | } |
||
| 450 | |||
| 451 | // line 149 |
||
| 452 | public function block_constants($context, array $blocks = array()) |
||
| 453 | { |
||
| 454 | // line 150 |
||
| 455 | echo " <table class=\"table table-condensed\"> |
||
| 456 | "; |
||
| 457 | // line 151 |
||
| 458 | $context['_parent'] = $context; |
||
| 459 | $context['_seq'] = twig_ensure_traversable((isset($context["constants"]) ? $context["constants"] : $this->getContext($context, "constants"))); |
||
| 460 | foreach ($context['_seq'] as $context["_key"] => $context["constant"]) { |
||
| 461 | // line 152 |
||
| 462 | echo " <tr> |
||
| 463 | <td>"; |
||
| 464 | // line 153 |
||
| 465 | echo $this->getAttribute($context["constant"], "name", array()); |
||
| 466 | echo "</td> |
||
| 467 | <td class=\"last\"> |
||
| 468 | <p><em>"; |
||
| 469 | // line 155 |
||
| 470 | echo $this->env->getExtension('sami')->parseDesc($context, $this->getAttribute($context["constant"], "shortdesc", array()), (isset($context["class"]) ? $context["class"] : $this->getContext($context, "class"))); |
||
| 471 | echo "</em></p> |
||
| 472 | <p>"; |
||
| 473 | // line 156 |
||
| 474 | echo $this->env->getExtension('sami')->parseDesc($context, $this->getAttribute($context["constant"], "longdesc", array()), (isset($context["class"]) ? $context["class"] : $this->getContext($context, "class"))); |
||
| 475 | echo "</p> |
||
| 476 | </td> |
||
| 477 | </tr> |
||
| 478 | "; |
||
| 479 | } |
||
| 480 | $_parent = $context['_parent']; |
||
| 481 | unset($context['_seq'], $context['_iterated'], $context['_key'], $context['constant'], $context['_parent'], $context['loop']); |
||
| 482 | $context = array_intersect_key($context, $_parent) + $_parent; |
||
| 483 | // line 160 |
||
| 484 | echo " </table> |
||
| 485 | "; |
||
| 486 | } |
||
| 487 | |||
| 488 | // line 163 |
||
| 489 | public function block_properties($context, array $blocks = array()) |
||
| 490 | { |
||
| 491 | // line 164 |
||
| 492 | echo " <table class=\"table table-condensed\"> |
||
| 493 | "; |
||
| 494 | // line 165 |
||
| 495 | $context['_parent'] = $context; |
||
| 496 | $context['_seq'] = twig_ensure_traversable((isset($context["properties"]) ? $context["properties"] : $this->getContext($context, "properties"))); |
||
| 497 | foreach ($context['_seq'] as $context["_key"] => $context["property"]) { |
||
| 498 | // line 166 |
||
| 499 | echo " <tr> |
||
| 500 | <td class=\"type\" id=\"property_"; |
||
| 501 | // line 167 |
||
| 502 | echo $this->getAttribute($context["property"], "name", array()); |
||
| 503 | echo "\"> |
||
| 504 | "; |
||
| 505 | // line 168 |
||
| 506 | if ($this->getAttribute($context["property"], "static", array())) { |
||
| 507 | echo "static"; |
||
| 508 | } |
||
| 509 | // line 169 |
||
| 510 | echo " "; |
||
| 511 | if ($this->getAttribute($context["property"], "protected", array())) { |
||
| 512 | echo "protected"; |
||
| 513 | } |
||
| 514 | // line 170 |
||
| 515 | echo " "; |
||
| 516 | if ($this->getAttribute($context["property"], "private", array())) { |
||
| 517 | echo "private"; |
||
| 518 | } |
||
| 519 | // line 171 |
||
| 520 | echo " "; |
||
| 521 | echo $context["__internal_21474d8e13cfe6a3a0369d0a6e8352e7a7cfb873a2bbc6a59c929e7c5e02cfdc"]->gethint_link($this->getAttribute($context["property"], "hint", array())); |
||
| 522 | echo " |
||
| 523 | </td> |
||
| 524 | <td>\$"; |
||
| 525 | // line 173 |
||
| 526 | echo $this->getAttribute($context["property"], "name", array()); |
||
| 527 | echo "</td> |
||
| 528 | <td class=\"last\">"; |
||
| 529 | // line 174 |
||
| 530 | echo $this->env->getExtension('sami')->parseDesc($context, $this->getAttribute($context["property"], "shortdesc", array()), (isset($context["class"]) ? $context["class"] : $this->getContext($context, "class"))); |
||
| 531 | echo "</td> |
||
| 532 | <td>"; |
||
| 533 | // line 176 |
||
| 534 | if ( !($this->getAttribute($context["property"], "class", array()) === (isset($context["class"]) ? $context["class"] : $this->getContext($context, "class")))) { |
||
| 535 | // line 177 |
||
| 536 | echo "<small>from "; |
||
| 537 | echo $context["__internal_21474d8e13cfe6a3a0369d0a6e8352e7a7cfb873a2bbc6a59c929e7c5e02cfdc"]->getproperty_link($context["property"], false, true); |
||
| 538 | echo "</small>"; |
||
| 539 | } |
||
| 540 | // line 179 |
||
| 541 | echo "</td> |
||
| 542 | </tr> |
||
| 543 | "; |
||
| 544 | } |
||
| 545 | $_parent = $context['_parent']; |
||
| 546 | unset($context['_seq'], $context['_iterated'], $context['_key'], $context['property'], $context['_parent'], $context['loop']); |
||
| 547 | $context = array_intersect_key($context, $_parent) + $_parent; |
||
| 548 | // line 182 |
||
| 549 | echo " </table> |
||
| 550 | "; |
||
| 551 | } |
||
| 552 | |||
| 553 | // line 185 |
||
| 554 | public function block_methods($context, array $blocks = array()) |
||
| 555 | { |
||
| 556 | // line 186 |
||
| 557 | echo " <div class=\"container-fluid underlined\"> |
||
| 558 | "; |
||
| 559 | // line 187 |
||
| 560 | $context['_parent'] = $context; |
||
| 561 | $context['_seq'] = twig_ensure_traversable((isset($context["methods"]) ? $context["methods"] : $this->getContext($context, "methods"))); |
||
| 562 | $context['loop'] = array( |
||
| 563 | 'parent' => $context['_parent'], |
||
| 564 | 'index0' => 0, |
||
| 565 | 'index' => 1, |
||
| 566 | 'first' => true, |
||
| 567 | ); |
||
| 568 | if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof Countable)) { |
||
| 569 | $length = count($context['_seq']); |
||
| 570 | $context['loop']['revindex0'] = $length - 1; |
||
| 571 | $context['loop']['revindex'] = $length; |
||
| 572 | $context['loop']['length'] = $length; |
||
| 573 | $context['loop']['last'] = 1 === $length; |
||
| 574 | } |
||
| 575 | foreach ($context['_seq'] as $context["_key"] => $context["method"]) { |
||
| 576 | // line 188 |
||
| 577 | echo " <div class=\"row\"> |
||
| 578 | <div class=\"col-md-2 type\"> |
||
| 579 | "; |
||
| 580 | // line 190 |
||
| 581 | if ($this->getAttribute($context["method"], "static", array())) { |
||
| 582 | echo "static "; |
||
| 583 | } |
||
| 584 | echo $context["__internal_21474d8e13cfe6a3a0369d0a6e8352e7a7cfb873a2bbc6a59c929e7c5e02cfdc"]->gethint_link($this->getAttribute($context["method"], "hint", array())); |
||
| 585 | echo " |
||
| 586 | </div> |
||
| 587 | <div class=\"col-md-8 type\"> |
||
| 588 | <a href=\"#method_"; |
||
| 589 | // line 193 |
||
| 590 | echo $this->getAttribute($context["method"], "name", array()); |
||
| 591 | echo "\">"; |
||
| 592 | echo $this->getAttribute($context["method"], "name", array()); |
||
| 593 | echo "</a>"; |
||
| 594 | $this->displayBlock("method_parameters_signature", $context, $blocks); |
||
| 595 | echo " |
||
| 596 | "; |
||
| 597 | // line 194 |
||
| 598 | if ( !$this->getAttribute($context["method"], "shortdesc", array())) { |
||
| 599 | // line 195 |
||
| 600 | echo " <p class=\"no-description\">No description</p> |
||
| 601 | "; |
||
| 602 | } else { |
||
| 603 | // line 197 |
||
| 604 | echo " <p>"; |
||
| 605 | echo $this->env->getExtension('sami')->parseDesc($context, $this->getAttribute($context["method"], "shortdesc", array()), (isset($context["class"]) ? $context["class"] : $this->getContext($context, "class"))); |
||
| 606 | echo "</p>"; |
||
| 607 | } |
||
| 608 | // line 199 |
||
| 609 | echo " </div> |
||
| 610 | <div class=\"col-md-2\">"; |
||
| 611 | // line 201 |
||
| 612 | if ( !($this->getAttribute($context["method"], "class", array()) === (isset($context["class"]) ? $context["class"] : $this->getContext($context, "class")))) { |
||
| 613 | // line 202 |
||
| 614 | echo "<small>from "; |
||
| 615 | echo $context["__internal_21474d8e13cfe6a3a0369d0a6e8352e7a7cfb873a2bbc6a59c929e7c5e02cfdc"]->getmethod_link($context["method"], false, true); |
||
| 616 | echo "</small>"; |
||
| 617 | } |
||
| 618 | // line 204 |
||
| 619 | echo "</div> |
||
| 620 | </div> |
||
| 621 | "; |
||
| 622 | ++$context['loop']['index0']; |
||
| 623 | ++$context['loop']['index']; |
||
| 624 | $context['loop']['first'] = false; |
||
| 625 | if (isset($context['loop']['length'])) { |
||
| 626 | --$context['loop']['revindex0']; |
||
| 627 | --$context['loop']['revindex']; |
||
| 628 | $context['loop']['last'] = 0 === $context['loop']['revindex0']; |
||
| 629 | } |
||
| 630 | } |
||
| 631 | $_parent = $context['_parent']; |
||
| 632 | unset($context['_seq'], $context['_iterated'], $context['_key'], $context['method'], $context['_parent'], $context['loop']); |
||
| 633 | $context = array_intersect_key($context, $_parent) + $_parent; |
||
| 634 | // line 207 |
||
| 635 | echo " </div> |
||
| 636 | "; |
||
| 637 | } |
||
| 638 | |||
| 639 | // line 210 |
||
| 640 | public function block_methods_details($context, array $blocks = array()) |
||
| 641 | { |
||
| 642 | // line 211 |
||
| 643 | echo " <div id=\"method-details\"> |
||
| 644 | "; |
||
| 645 | // line 212 |
||
| 646 | $context['_parent'] = $context; |
||
| 647 | $context['_seq'] = twig_ensure_traversable((isset($context["methods"]) ? $context["methods"] : $this->getContext($context, "methods"))); |
||
| 648 | $context['loop'] = array( |
||
| 649 | 'parent' => $context['_parent'], |
||
| 650 | 'index0' => 0, |
||
| 651 | 'index' => 1, |
||
| 652 | 'first' => true, |
||
| 653 | ); |
||
| 654 | if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof Countable)) { |
||
| 655 | $length = count($context['_seq']); |
||
| 656 | $context['loop']['revindex0'] = $length - 1; |
||
| 657 | $context['loop']['revindex'] = $length; |
||
| 658 | $context['loop']['length'] = $length; |
||
| 659 | $context['loop']['last'] = 1 === $length; |
||
| 660 | } |
||
| 661 | foreach ($context['_seq'] as $context["_key"] => $context["method"]) { |
||
| 662 | // line 213 |
||
| 663 | echo " <div class=\"method-item\"> |
||
| 664 | "; |
||
| 665 | // line 214 |
||
| 666 | $this->displayBlock("method", $context, $blocks); |
||
| 667 | echo " |
||
| 668 | </div> |
||
| 669 | "; |
||
| 670 | ++$context['loop']['index0']; |
||
| 671 | ++$context['loop']['index']; |
||
| 672 | $context['loop']['first'] = false; |
||
| 673 | if (isset($context['loop']['length'])) { |
||
| 674 | --$context['loop']['revindex0']; |
||
| 675 | --$context['loop']['revindex']; |
||
| 676 | $context['loop']['last'] = 0 === $context['loop']['revindex0']; |
||
| 677 | } |
||
| 678 | } |
||
| 679 | $_parent = $context['_parent']; |
||
| 680 | unset($context['_seq'], $context['_iterated'], $context['_key'], $context['method'], $context['_parent'], $context['loop']); |
||
| 681 | $context = array_intersect_key($context, $_parent) + $_parent; |
||
| 682 | // line 217 |
||
| 683 | echo " </div> |
||
| 684 | "; |
||
| 685 | } |
||
| 686 | |||
| 687 | // line 220 |
||
| 688 | public function block_method($context, array $blocks = array()) |
||
| 689 | { |
||
| 690 | // line 221 |
||
| 691 | echo " <h3 id=\"method_"; |
||
| 692 | echo $this->getAttribute((isset($context["method"]) ? $context["method"] : $this->getContext($context, "method")), "name", array()); |
||
| 693 | echo "\"> |
||
| 694 | <div class=\"location\">"; |
||
| 695 | // line 222 |
||
| 696 | if ( !($this->getAttribute((isset($context["method"]) ? $context["method"] : $this->getContext($context, "method")), "class", array()) === (isset($context["class"]) ? $context["class"] : $this->getContext($context, "class")))) { |
||
| 697 | echo "in "; |
||
| 698 | echo $context["__internal_21474d8e13cfe6a3a0369d0a6e8352e7a7cfb873a2bbc6a59c929e7c5e02cfdc"]->getmethod_link((isset($context["method"]) ? $context["method"] : $this->getContext($context, "method")), false, true); |
||
| 699 | echo " "; |
||
| 700 | } |
||
| 701 | echo "at line "; |
||
| 702 | echo $context["__internal_21474d8e13cfe6a3a0369d0a6e8352e7a7cfb873a2bbc6a59c929e7c5e02cfdc"]->getmethod_source_link((isset($context["method"]) ? $context["method"] : $this->getContext($context, "method"))); |
||
| 703 | echo "</div> |
||
| 704 | <code>"; |
||
| 705 | // line 223 |
||
| 706 | $this->displayBlock("method_signature", $context, $blocks); |
||
| 707 | echo "</code> |
||
| 708 | </h3> |
||
| 709 | <div class=\"details\"> |
||
| 710 | "; |
||
| 711 | // line 226 |
||
| 712 | echo $context["__internal_21474d8e13cfe6a3a0369d0a6e8352e7a7cfb873a2bbc6a59c929e7c5e02cfdc"]->getdeprecations((isset($context["method"]) ? $context["method"] : $this->getContext($context, "method"))); |
||
| 713 | echo " |
||
| 714 | |||
| 715 | "; |
||
| 716 | // line 228 |
||
| 717 | if (($this->getAttribute((isset($context["method"]) ? $context["method"] : $this->getContext($context, "method")), "shortdesc", array()) || $this->getAttribute((isset($context["method"]) ? $context["method"] : $this->getContext($context, "method")), "longdesc", array()))) { |
||
| 718 | // line 229 |
||
| 719 | echo " <div class=\"method-description\"> |
||
| 720 | "; |
||
| 721 | // line 230 |
||
| 722 | if (( !$this->getAttribute((isset($context["method"]) ? $context["method"] : $this->getContext($context, "method")), "shortdesc", array()) && !$this->getAttribute((isset($context["method"]) ? $context["method"] : $this->getContext($context, "method")), "longdesc", array()))) { |
||
| 723 | // line 231 |
||
| 724 | echo " <p class=\"no-description\">No description</p> |
||
| 725 | "; |
||
| 726 | } else { |
||
| 727 | // line 233 |
||
| 728 | echo " "; |
||
| 729 | if ($this->getAttribute((isset($context["method"]) ? $context["method"] : $this->getContext($context, "method")), "shortdesc", array())) { |
||
| 730 | // line 234 |
||
| 731 | echo "<p>"; |
||
| 732 | echo $this->env->getExtension('sami')->parseDesc($context, $this->getAttribute((isset($context["method"]) ? $context["method"] : $this->getContext($context, "method")), "shortdesc", array()), (isset($context["class"]) ? $context["class"] : $this->getContext($context, "class"))); |
||
| 733 | echo "</p>"; |
||
| 734 | } |
||
| 735 | // line 236 |
||
| 736 | echo " "; |
||
| 737 | if ($this->getAttribute((isset($context["method"]) ? $context["method"] : $this->getContext($context, "method")), "longdesc", array())) { |
||
| 738 | // line 237 |
||
| 739 | echo "<p>"; |
||
| 740 | echo $this->env->getExtension('sami')->parseDesc($context, $this->getAttribute((isset($context["method"]) ? $context["method"] : $this->getContext($context, "method")), "longdesc", array()), (isset($context["class"]) ? $context["class"] : $this->getContext($context, "class"))); |
||
| 741 | echo "</p>"; |
||
| 742 | } |
||
| 743 | } |
||
| 744 | // line 240 |
||
| 745 | echo " </div> |
||
| 746 | "; |
||
| 747 | } |
||
| 748 | // line 242 |
||
| 749 | echo " <div class=\"tags\"> |
||
| 750 | "; |
||
| 751 | // line 243 |
||
| 752 | if ($this->getAttribute((isset($context["method"]) ? $context["method"] : $this->getContext($context, "method")), "parameters", array())) { |
||
| 753 | // line 244 |
||
| 754 | echo " <h4>Parameters</h4> |
||
| 755 | |||
| 756 | "; |
||
| 757 | // line 246 |
||
| 758 | $this->displayBlock("parameters", $context, $blocks); |
||
| 759 | echo " |
||
| 760 | "; |
||
| 761 | } |
||
| 762 | // line 248 |
||
| 763 | echo " |
||
| 764 | "; |
||
| 765 | // line 249 |
||
| 766 | if (($this->getAttribute((isset($context["method"]) ? $context["method"] : $this->getContext($context, "method")), "hintDesc", array()) || $this->getAttribute((isset($context["method"]) ? $context["method"] : $this->getContext($context, "method")), "hint", array()))) { |
||
| 767 | // line 250 |
||
| 768 | echo " <h4>Return Value</h4> |
||
| 769 | |||
| 770 | "; |
||
| 771 | // line 252 |
||
| 772 | $this->displayBlock("return", $context, $blocks); |
||
| 773 | echo " |
||
| 774 | "; |
||
| 775 | } |
||
| 776 | // line 254 |
||
| 777 | echo " |
||
| 778 | "; |
||
| 779 | // line 255 |
||
| 780 | if ($this->getAttribute((isset($context["method"]) ? $context["method"] : $this->getContext($context, "method")), "exceptions", array())) { |
||
| 781 | // line 256 |
||
| 782 | echo " <h4>Exceptions</h4> |
||
| 783 | |||
| 784 | "; |
||
| 785 | // line 258 |
||
| 786 | $this->displayBlock("exceptions", $context, $blocks); |
||
| 787 | echo " |
||
| 788 | "; |
||
| 789 | } |
||
| 790 | // line 260 |
||
| 791 | echo " |
||
| 792 | "; |
||
| 793 | // line 261 |
||
| 794 | if ($this->getAttribute((isset($context["method"]) ? $context["method"] : $this->getContext($context, "method")), "tags", array(0 => "see"), "method")) { |
||
| 795 | // line 262 |
||
| 796 | echo " <h4>See also</h4> |
||
| 797 | |||
| 798 | "; |
||
| 799 | // line 264 |
||
| 800 | $this->displayBlock("see", $context, $blocks); |
||
| 801 | echo " |
||
| 802 | "; |
||
| 803 | } |
||
| 804 | // line 266 |
||
| 805 | echo " </div> |
||
| 806 | </div> |
||
| 807 | "; |
||
| 808 | } |
||
| 809 | |||
| 810 | public function getTemplateName() |
||
| 811 | { |
||
| 812 | return "class.twig"; |
||
| 813 | } |
||
| 814 | |||
| 815 | public function isTraitable() |
||
| 816 | { |
||
| 817 | return false; |
||
| 818 | } |
||
| 819 | |||
| 820 | public function getDebugInfo() |
||
| 821 | { |
||
| 822 | return array ( 805 => 266, 800 => 264, 796 => 262, 794 => 261, 791 => 260, 786 => 258, 782 => 256, 780 => 255, 777 => 254, 772 => 252, 768 => 250, 766 => 249, 763 => 248, 758 => 246, 754 => 244, 752 => 243, 749 => 242, 745 => 240, 739 => 237, 736 => 236, 731 => 234, 728 => 233, 724 => 231, 722 => 230, 719 => 229, 717 => 228, 712 => 226, 706 => 223, 696 => 222, 691 => 221, 688 => 220, 683 => 217, 666 => 214, 663 => 213, 646 => 212, 643 => 211, 640 => 210, 635 => 207, 619 => 204, 614 => 202, 612 => 201, 609 => 199, 604 => 197, 600 => 195, 598 => 194, 590 => 193, 581 => 190, 577 => 188, 560 => 187, 557 => 186, 554 => 185, 549 => 182, 541 => 179, 536 => 177, 534 => 176, 530 => 174, 526 => 173, 520 => 171, 515 => 170, 510 => 169, 506 => 168, 502 => 167, 499 => 166, 495 => 165, 492 => 164, 489 => 163, 484 => 160, 474 => 156, 470 => 155, 465 => 153, 462 => 152, 458 => 151, 455 => 150, 452 => 149, 447 => 146, 438 => 143, 434 => 142, 431 => 141, 427 => 140, 424 => 139, 421 => 138, 416 => 135, 407 => 132, 403 => 131, 400 => 130, 396 => 129, 393 => 128, 390 => 127, 382 => 122, 378 => 121, 374 => 119, 371 => 118, 366 => 115, 357 => 112, 353 => 111, 347 => 110, 344 => 109, 340 => 108, 337 => 107, 334 => 106, 330 => 103, 326 => 102, 324 => 101, 321 => 100, 315 => 97, 310 => 96, 305 => 95, 300 => 94, 295 => 93, 290 => 92, 286 => 91, 283 => 90, 277 => 87, 260 => 84, 258 => 83, 241 => 82, 238 => 81, 236 => 80, 232 => 78, 230 => 77, 227 => 76, 222 => 75, 218 => 74, 215 => 73, 210 => 70, 205 => 68, 198 => 64, 194 => 62, 192 => 61, 189 => 60, 184 => 58, 180 => 56, 178 => 55, 175 => 54, 170 => 52, 166 => 50, 164 => 49, 161 => 48, 156 => 46, 152 => 44, 150 => 43, 147 => 42, 143 => 40, 138 => 38, 135 => 37, 130 => 35, 128 => 34, 125 => 33, 123 => 32, 118 => 30, 113 => 28, 106 => 24, 102 => 23, 97 => 20, 94 => 19, 85 => 13, 81 => 12, 77 => 11, 73 => 9, 70 => 8, 67 => 7, 61 => 5, 55 => 4, 47 => 3, 43 => 1, 41 => 2, 11 => 1,); |
||
| 823 | } |
||
| 824 | } |
||
| 825 | /* {% extends "layout/layout.twig" %}*/ |
||
| 1094 |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.