mirror of
https://github.com/maximebf/php-debugbar.git
synced 2025-01-17 05:18:32 +01:00
CS fix
This commit is contained in:
parent
de21276fff
commit
00e8608215
@ -28,7 +28,7 @@ class ExceptionsCollector extends DataCollector implements Renderable
|
||||
public function addException(Exception $e)
|
||||
{
|
||||
$this->exceptions[] = $e;
|
||||
if($this->chainExceptions && $previous = $e->getPrevious()){
|
||||
if ($this->chainExceptions && $previous = $e->getPrevious()) {
|
||||
$this->addException($previous);
|
||||
}
|
||||
}
|
||||
@ -75,7 +75,7 @@ class ExceptionsCollector extends DataCollector implements Renderable
|
||||
$lines = file($e->getFile());
|
||||
$start = $e->getLine() - 4;
|
||||
$lines = array_slice($lines, $start < 0 ? 0 : $start, 7);
|
||||
foreach($lines as &$line){
|
||||
foreach ($lines as &$line) {
|
||||
$line = htmlentities($line, ENT_QUOTES, 'UTF-8', false);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user