https://t.me/RX1948
Server : LiteSpeed
System : Linux srv104790275 5.15.0-161-generic #171-Ubuntu SMP Sat Oct 11 08:17:01 UTC 2025 x86_64
User : dewac4139 ( 1077)
PHP Version : 8.0.30
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Directory :  /home/sarkas88.com/public_html/wp-content/plugins/amp/src/Optimizer/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //home/sarkas88.com/public_html/wp-content/plugins/amp/src/Optimizer/OptimizerService.php
<?php
/**
 * Class OptimizerService.
 *
 * @package AmpProject\AmpWP
 */

namespace AmpProject\AmpWP\Optimizer;

use AmpProject\AmpWP\Infrastructure\Service;
use AmpProject\Dom\Document;
use AmpProject\Optimizer\ErrorCollection;
use AmpProject\Optimizer\TransformationEngine;

/**
 * Optimizer service that wraps the AMP Optimizer's TransformationEngine.
 *
 * @package AmpProject\AmpWP
 * @since 2.1.0
 * @internal
 */
final class OptimizerService implements Service {

	/**
	 * @var TransformationEngine
	 */
	private $transformation_engine;

	/**
	 * OptimizerService constructor.
	 *
	 * @param TransformationEngine $transformation_engine Transformation engine instance to use.
	 */
	public function __construct( TransformationEngine $transformation_engine ) {
		$this->transformation_engine = $transformation_engine;
	}

	/**
	 * Apply transformations to the provided DOM document.
	 *
	 * @param Document        $document DOM document to apply the transformations to.
	 * @param ErrorCollection $errors   Collection of errors that are collected during transformation.
	 * @return void
	 */
	public function optimizeDom( Document $document, ErrorCollection $errors ) {
		$this->transformation_engine->optimizeDom( $document, $errors );
	}

	/**
	 * Apply transformations to the provided string of HTML markup.
	 *
	 * @param string          $html   HTML markup to apply the transformations to.
	 * @param ErrorCollection $errors Collection of errors that are collected during transformation.
	 * @return string Optimized HTML string.
	 */
	public function optimizeHtml( $html, ErrorCollection $errors ) {
		return $this->transformation_engine->optimizeHtml( $html, $errors );
	}
}

https://t.me/RX1948 - 2025