|
Server : Apache System : Linux server.mata-lashes.com 3.10.0-1160.90.1.el7.x86_64 #1 SMP Thu May 4 15:21:22 UTC 2023 x86_64 User : matalashes ( 1004) PHP Version : 8.1.29 Disable Function : NONE Directory : /home/matalashes/www/kite.mata-lashes.com/vendor/rector/rector/src/functions/ |
Upload File : |
<?php
declare (strict_types=1);
namespace RectorPrefix20211231;
use PhpParser\Node;
use PhpParser\PrettyPrinter\Standard;
use RectorPrefix20211231\Tracy\Dumper;
if (!\function_exists('dn')) {
function dn(\PhpParser\Node $node, int $depth = 2) : void
{
\RectorPrefix20211231\dump_node($node, $depth);
}
}
if (!\function_exists('dump_node')) {
/**
* @param mixed[]|\PhpParser\Node $node
*/
function dump_node($node, int $depth = 2) : void
{
$nodes = \is_array($node) ? $node : [$node];
foreach ($nodes as $node) {
\RectorPrefix20211231\Tracy\Dumper::dump($node, [\RectorPrefix20211231\Tracy\Dumper::DEPTH => $depth]);
}
}
}
if (!\function_exists('print_node')) {
/**
* @param mixed[]|\PhpParser\Node $node
*/
function print_node($node) : void
{
$standard = new \PhpParser\PrettyPrinter\Standard();
$nodes = \is_array($node) ? $node : [$node];
foreach ($nodes as $node) {
$printedContent = $standard->prettyPrint([$node]);
\RectorPrefix20211231\Tracy\Dumper::dump($printedContent);
}
}
}