/** * getString * * @param GenericErrorInterface $error * * @return mixed */ public function getString(GenericErrorInterface $error) { $output = ' <table class="xdebug-error" dir="ltr" border="1" cellspacing="0" cellpadding="1"> <tbody> <tr> <th align="left" bgcolor="#f57900" colspan="5"> <div> <span style="background-color: #cc0000; color: #fce94f; font-size: x-large;">( ! )</span> <span>' . $error->getType() . ': ' . $error->getMessage() . ' </span> </div> <div>File: ' . $error->getFile() . '</div> <div>Line: <i>' . $error->getLine() . '</i></div> </th> </tr> <tr> <td> ' . $this->getTraceString($error) . ' </td> </tr> </tbody> </table> '; return $output; }
/** * getExtras * * @param GenericErrorInterface $error * * @return array */ protected function getExtras(GenericErrorInterface $error) { $formatter = new FormatBase(); $extras = ['file' => $error->getFile(), 'line' => $error->getLine(), 'message' => $error->getMessage(), 'exception' => null]; if ($this->options->get('includeStacktrace', false) == true) { $extras['trace'] = $formatter->getTraceString($error); } if ($error instanceof GenericExceptionInterface) { $extras['exception'] = $error->getException(); } return $extras; }
/** * getString * * @param GenericErrorInterface $error * * @return mixed */ public function getString(GenericErrorInterface $error) { $output = $error->getType() . ': ' . $error->getMessage() . ' ' . 'File: ' . $error->getFile() . ' ' . 'Line: ' . $error->getLine() . "\n"; return $output; }