Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/worker/src/MWP/Debug
File: EvalErrorHandler.php
<?php
[0] Fix | Delete
/*
[1] Fix | Delete
* This file is part of the ManageWP Worker plugin.
[2] Fix | Delete
*
[3] Fix | Delete
* (c) ManageWP LLC <contact@managewp.com>
[4] Fix | Delete
*
[5] Fix | Delete
* For the full copyright and license information, please view the LICENSE
[6] Fix | Delete
* file that was distributed with this source code.
[7] Fix | Delete
*/
[8] Fix | Delete
[9] Fix | Delete
class MWP_Debug_EvalErrorHandler
[10] Fix | Delete
{
[11] Fix | Delete
[12] Fix | Delete
private $errorMessages = array();
[13] Fix | Delete
[14] Fix | Delete
public function getErrorMessages()
[15] Fix | Delete
{
[16] Fix | Delete
return $this->errorMessages;
[17] Fix | Delete
}
[18] Fix | Delete
[19] Fix | Delete
public function handleError($code, $message, $file = '', $line = 0, $context = array())
[20] Fix | Delete
{
[21] Fix | Delete
$this->errorMessages[] = array(
[22] Fix | Delete
// Use 'type' instead of 'code' to be consistent with error_get_last()
[23] Fix | Delete
'type' => $code,
[24] Fix | Delete
'message' => $message,
[25] Fix | Delete
'file' => $file,
[26] Fix | Delete
'line' => $line,
[27] Fix | Delete
'datetime' => date('Y-m-d H:i:s'),
[28] Fix | Delete
);
[29] Fix | Delete
}
[30] Fix | Delete
}
[31] Fix | Delete
[32] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function