[ SYSTEM ]: Linux wordpress 6.1.0-44-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.164-1 (2026-03-09) x86_64
[ SERVER ]: Apache/2.4.66 (Debian) | PHP: 8.2.30
[ USER ]: www-data | IP: 172.19.30.54
GEFORCE FILE MANAGER
/
var
/
www
/
html
/
wordpress
/
wp-content
/
plugins
/
presto-player
/
vendor
/
typisttech
/
imposter-plugin
/
src
/
UPLOAD:
NAME
SIZE
QUICK PERMS
ACTIONS
📄 AutoloadMerger.php
1,089 B
SET
[ EDIT ]
|
[ DEL ]
📄 ImposterPlugin.php
1,733 B
SET
[ EDIT ]
|
[ DEL ]
📄 Transformer.php
1,821 B
SET
[ EDIT ]
|
[ DEL ]
DELETE SELECTED
[ CLOSE ]
EDIT: Transformer.php
<?php declare(strict_types=1); namespace TypistTech\Imposter\Plugin; use Composer\IO\IOInterface; use TypistTech\Imposter\ImposterFactory; class Transformer { public static function run(IOInterface $io): void { // Print an empty line to separate imposter outputs. $io->write('', true); $io->write('', true); $io->write('<info>Running Imposter...</info>', true); $io->write('<info>======================</info>', true); $io->write('Loading package information from <comment>' . getcwd() . '/composer.json</comment>', true); $imposter = ImposterFactory::forProject(getcwd(), ['typisttech/imposter-plugin']); $autoloads = $imposter->getAutoloads(); $count = count($autoloads); $index = 1; foreach ($autoloads as $autoload) { $io->write(" - <comment>$index/$count</comment>: Transforming $autoload", true); $imposter->transform($autoload); $index++; } $io->write('<info>Success: Imposter transformed vendor files.</info>', true); $invalidAutoloads = $imposter->getInvalidAutoloads(); if (! empty($invalidAutoloads)) { $invalidAutoloadsCount = count($invalidAutoloads); $io->writeError('', true); $io->writeError( // phpcs:ignore Generic.Files.LineLength.TooLong "<warning>Warning: Imposter failed to transformed $invalidAutoloadsCount of the autoload path(s).</warning>", true ); foreach ($invalidAutoloads as $invalidAutoload) { $io->writeError(" - $invalidAutoload", true); } } // Print empty lines to separate imposter outputs. $io->write('', true); $io->write('', true); } }