ascvh@#%(^-^)V ?host,ip,port,protocol,title,domain,country,city,link,org ???à JFIF x x ?? C ?? C ?à " ?? ?? μ } !1AQa "q2?‘?#B±áR?e$3br? %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz??…???‰?’“”?–—???¢£¤¥|§¨?a23′μ?·?1o??????èéêòó???×?ùúáa?????èéê?òó???÷?ùú?? ?? μ w !1AQ aq"2?B‘?±á #3Rebr?{
File "ErrorController.php"
Full Path: /home/zcziejy/ryadselyen/shortpixel-image-optimiser/class/Controller/ErrorController.php
File size: 963 bytes
MIME-type: text/x-php
Charset: utf-8
<?php
namespace ShortPixel\Controller;
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly.
}
use ShortPixel\ShortPixelLogger\ShortPixelLogger as Log;
class ErrorController
{
public function __construct()
{
}
public static function start()
{
if (true === \wpSPIO()->env()->is_debug)
{
register_shutdown_function(array(self::class, 'checkErrors'));
}
}
public static function checkErrors()
{
$error = error_get_last();
// Nothing, happy us.
if (is_null($error))
{
return;
}
elseif (1 !== $error['type']) // Nothing fatal.
{
return;
}
else {
ob_clean(); // try to scrub other stuff
echo '<PRE>' . $error['message'] . ' in ' . $error['file'] . ' on line ' . $error['line'] . '<br> Last Item ID: ' . OptimizeController::getLastId() . '</PRE>';
exit(' <small><br> -ShortPixel Error Handler- </small>');
}
}
}