@@ -23,7 +23,7 @@ |
||
| 23 | 23 | |
| 24 | 24 | public function __construct(\Exception $e) |
| 25 | 25 | { |
| 26 | - $this->ref = (string) hash('crc32b', get_class($e) . $e->getMessage() . $e->getFile() . $e->getLine()); |
|
| 26 | + $this->ref = (string) hash('crc32b', get_class($e).$e->getMessage().$e->getFile().$e->getLine()); |
|
| 27 | 27 | $this->exceptionString = new ExceptionAsString; |
| 28 | 28 | } |
| 29 | 29 | |
@@ -20,7 +20,7 @@ discard block |
||
| 20 | 20 | { |
| 21 | 21 | $date = date(DATE_RFC2822); |
| 22 | 22 | $exceptions = $this->getExceptionString($e); |
| 23 | - $context = isset($GLOBALS['context']) ? "({$GLOBALS['context']})" . PHP_EOL : ''; |
|
| 23 | + $context = isset($GLOBALS['context']) ? "({$GLOBALS['context']})".PHP_EOL : ''; |
|
| 24 | 24 | $phpVal = $this->getPhpVariables(); |
| 25 | 25 | $trace = $this->getTrace($e); |
| 26 | 26 | |
@@ -82,7 +82,7 @@ discard block |
||
| 82 | 82 | { |
| 83 | 83 | $trace = $e->getTrace(); |
| 84 | 84 | $i = 0; |
| 85 | - array_walk($trace, function (&$trace, $index) use ($i) { |
|
| 85 | + array_walk($trace, function(&$trace, $index) use ($i) { |
|
| 86 | 86 | $trace = isset($trace['class']) ? $this->getClassTrace($trace, $index) : $this->getFunctionTrace($trace, $index); |
| 87 | 87 | }); |
| 88 | 88 | |
@@ -93,7 +93,7 @@ discard block |
||
| 93 | 93 | { |
| 94 | 94 | $string = sprintf('#%d %s%s%s(%s)', $index, $trace['class'], $trace['type'], $trace['function'], $this->argsAsString($trace['args'])); |
| 95 | 95 | |
| 96 | - return isset($trace['file']) ? $string . sprintf(' in %s(%s)', $trace['file'], $trace['line']) : $string; |
|
| 96 | + return isset($trace['file']) ? $string.sprintf(' in %s(%s)', $trace['file'], $trace['line']) : $string; |
|
| 97 | 97 | } |
| 98 | 98 | |
| 99 | 99 | private function getFunctionTrace(array $trace, $index) |
@@ -21,7 +21,7 @@ |
||
| 21 | 21 | |
| 22 | 22 | public function toString() |
| 23 | 23 | { |
| 24 | - $this->view = json_encode($this->body, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES) . PHP_EOL; |
|
| 24 | + $this->view = json_encode($this->body, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES).PHP_EOL; |
|
| 25 | 25 | } |
| 26 | 26 | |
| 27 | 27 | /** |
@@ -21,7 +21,7 @@ |
||
| 21 | 21 | |
| 22 | 22 | public function toString() |
| 23 | 23 | { |
| 24 | - $this->view = json_encode($this->body, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES) . PHP_EOL; |
|
| 24 | + $this->view = json_encode($this->body, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES).PHP_EOL; |
|
| 25 | 25 | } |
| 26 | 26 | |
| 27 | 27 | /** |