REDROOM
PHP 8.2.31
Path:
Logout
Edit File
Size: 1.08 KB
Close
/home/nshryvcy/himaltourism.com/wp-content/plugins/mailpoet/vendor-prefixed/twig/twig/src/Util/DeprecationCollector.php
Text
Base64
<?php namespace MailPoetVendor\Twig\Util; if (!defined('ABSPATH')) exit; use MailPoetVendor\Twig\Environment; use MailPoetVendor\Twig\Error\SyntaxError; use MailPoetVendor\Twig\Source; final class DeprecationCollector { private $twig; public function __construct(Environment $twig) { $this->twig = $twig; } public function collectDir(string $dir, string $ext = '.twig') : array { $iterator = new \RegexIterator(new \RecursiveIteratorIterator(new \RecursiveDirectoryIterator($dir), \RecursiveIteratorIterator::LEAVES_ONLY), '{' . \preg_quote($ext) . '$}'); return $this->collect(new TemplateDirIterator($iterator)); } public function collect(\Traversable $iterator) : array { $deprecations = []; \set_error_handler(function ($type, $msg) use(&$deprecations) { if (\E_USER_DEPRECATED === $type) { $deprecations[] = $msg; } }); foreach ($iterator as $name => $contents) { try { $this->twig->parse($this->twig->tokenize(new Source($contents, $name))); } catch (SyntaxError $e) { // ignore templates containing syntax errors } } \restore_error_handler(); return $deprecations; } }
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 3
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
DeprecationCollector.php
1.08 KB
lrw-r--r--
2023-04-04 05:35:39
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
index.php
0 B
lrw-r--r--
2023-04-04 05:35:39
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
TemplateDirIterator.php
322 B
lrw-r--r--
2023-04-04 05:35:39
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).