3 Commits
2 changed files with 2 additions and 2 deletions

No files matched your search

+1 -1
View File
@@ -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);
} }
} }
+1 -1
View File
@@ -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' => [