/** * 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; }
/** * prepareSummary * * @param GenericErrorInterface $error * * @return string */ protected function prepareSummary(GenericErrorInterface $error) { return $error->getType() . ' - ' . $error->getMessage() . ' - ' . $this->buildRelativePath($error->getFile()); }
/** * 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; }