Compare commits
3
Commits
48315e74b2
...
v1.0.0
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
951c93fc63 | ||
|
|
e75e7c42be | ||
|
|
fe37cfe246 |
No files matched your search
+1
-1
@@ -46,7 +46,7 @@ namespace Negundo\Client {
|
|||||||
namespace {
|
namespace {
|
||||||
if (! function_exists('ntask') ) {
|
if (! function_exists('ntask') ) {
|
||||||
function ntask(string $message, ? string $title = null, ? array $data) {
|
function ntask(string $message, ? string $title = null, ? array $data) {
|
||||||
foreach (\Negundo\Task::$instances as $instance) {
|
foreach (\Negundo\Client\Task::$instances as $instance) {
|
||||||
$instance->newReport($message, $title, $data);
|
$instance->newReport($message, $title, $data);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ class DumpHandler {
|
|||||||
'file' => $trace['file'],
|
'file' => $trace['file'],
|
||||||
'line' => $trace['line'],
|
'line' => $trace['line'],
|
||||||
'title' => substr(strip_tags(trim(str_replace([' '], [''], $message))), 0, 255),
|
'title' => substr(strip_tags(trim(str_replace([' '], [''], $message))), 0, 255),
|
||||||
'url' => ( ( 'on' === $_SERVER['HTTPS'] ?? false ) ? 'https' : 'http' ) . '://' . ( $_SERVER['HTTP_HOST'] ?? "") . ( $_SERVER["REQUEST_URI"] ?? "" ),
|
'url' => ( ( 'on' === ($_SERVER['HTTPS'] ?? false) ) ? 'https' : 'http' ) . '://' . ( $_SERVER['HTTP_HOST'] ?? "") . ( $_SERVER["REQUEST_URI"] ?? "" ),
|
||||||
'backtrace' => json_encode($backtrace),
|
'backtrace' => json_encode($backtrace),
|
||||||
'source' => ( new SourceCodeFormatter() )->generateFromFile($trace['file'] === "unknown" ? "" : $trace['file'], $trace['line']),
|
'source' => ( new SourceCodeFormatter() )->generateFromFile($trace['file'] === "unknown" ? "" : $trace['file'], $trace['line']),
|
||||||
'data' => [
|
'data' => [
|
||||||
|
|||||||
Reference in new issue
Block a user