PATH:
home
/
lab2454c
/
caimegroup.com
/
wp-content
/
plugins
/
mailpoet
/
vendor-prefixed
/
twig
/
twig
/
src
<?php namespace MailPoetVendor\Twig; if (!defined('ABSPATH')) exit; class FileExtensionEscapingStrategy { public static function guess(string $name) { if (\in_array(\substr($name, -1), ['/', '\\'])) { return 'html'; // return html for directories } if ('.twig' === \substr($name, -5)) { $name = \substr($name, 0, -5); } $extension = \pathinfo($name, \PATHINFO_EXTENSION); switch ($extension) { case 'js': return 'js'; case 'css': return 'css'; case 'txt': return \false; default: return 'html'; } } }
[+]
Cache
[+]
NodeVisitor
[-] index.php
[edit]
[-] FileExtensionEscapingStrategy.php
[edit]
[+]
..
[-] TokenStream.php
[edit]
[+]
Extension
[-] ExtensionSet.php
[edit]
[-] Parser.php
[edit]
[+]
TokenParser
[-] Token.php
[edit]
[-] TwigFunction.php
[edit]
[-] ExpressionParser.php
[edit]
[-] TemplateWrapper.php
[edit]
[-] TwigTest.php
[edit]
[-] Compiler.php
[edit]
[-] Environment.php
[edit]
[+]
Profiler
[-] Template.php
[edit]
[+]
Util
[+]
RuntimeLoader
[-] Source.php
[edit]
[+]
Error
[+]
Loader
[-] Lexer.php
[edit]
[+]
Node
[-] NodeTraverser.php
[edit]
[+]
Sandbox
[-] Markup.php
[edit]
[-] TwigFilter.php
[edit]