Skip to content

Commit 94f2127

Browse files
committed
Convert names to lowercase
1 parent 6094fff commit 94f2127

File tree

5 files changed

+20
-20
lines changed

5 files changed

+20
-20
lines changed

src/Collectors/AnnexCollector.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ class AnnexCollector extends Collector
1515
public function collect()
1616
{
1717
return [
18-
'Time' => date('Y-m-d H:i:s'),
19-
'Memory' => round(memory_get_peak_usage(true) / 1024 / 1024, 1).'M',
18+
'time' => date('Y-m-d H:i:s'),
19+
'memory' => round(memory_get_peak_usage(true) / 1024 / 1024, 1).'M',
2020
];
2121
}
2222
}

src/Collectors/ExceptionBasicCollector.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@ class ExceptionBasicCollector extends Collector implements ExceptionAwareContrac
2121
public function collect()
2222
{
2323
return [
24-
'Class' => get_class($this->exception),
25-
'Message' => $this->exception->getMessage(),
26-
'Code' => $this->exception->getCode(),
27-
'File' => $this->exception->getFile(),
28-
'Line' => $this->exception->getLine(),
29-
'Preview' => ExceptionContext::getFormattedContext($this->exception),
24+
'class' => get_class($this->exception),
25+
'message' => $this->exception->getmessage(),
26+
'code' => $this->exception->getCode(),
27+
'file' => $this->exception->getfile(),
28+
'line' => $this->exception->getLine(),
29+
'preview' => exceptioncontext::getformattedcontext($this->exception),
3030
];
3131
}
3232
}

src/Collectors/LaravelCollector.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,17 +28,17 @@ public function __construct(Container $app, callable $pipe = null)
2828
public function collect()
2929
{
3030
return [
31-
'Name' => $this->app['config']['app.name'],
32-
'Version' => $this->app->version(),
33-
'Environment' => $this->app->environment(),
34-
'Locale' => value(function () {
31+
'name' => $this->app['config']['app.name'],
32+
'version' => $this->app->version(),
33+
'environment' => $this->app->environment(),
34+
'locale' => value(function () {
3535
if (! method_exists($this->app, 'getLocale')) {
3636
return null;
3737
}
3838

3939
return $this->app->getLocale();
4040
}),
41-
'In Console' => $this->app->runningInConsole(),
41+
'in console' => $this->app->runningInConsole(),
4242
];
4343
}
4444
}

src/Collectors/PhpInfoCollector.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ class PhpInfoCollector extends Collector
1515
public function collect()
1616
{
1717
return [
18-
'Version' => implode('.', [PHP_MAJOR_VERSION, PHP_MINOR_VERSION, PHP_RELEASE_VERSION]),
19-
'Interface' => PHP_SAPI,
18+
'version' => implode('.', [PHP_MAJOR_VERSION, PHP_MINOR_VERSION, PHP_RELEASE_VERSION]),
19+
'interface' => PHP_SAPI,
2020
];
2121
}
2222
}

src/Collectors/RequestBasicCollector.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,11 @@ public function __construct(Request $request, callable $pipe = null)
2828
public function collect()
2929
{
3030
return [
31-
'Url' => $this->request->url(),
32-
'Ip' => $this->request->ip(),
33-
'Method' => $this->request->method(),
34-
'Action' => optional($this->request->route())->getActionName(),
35-
'Duration' => value(function () {
31+
'url' => $this->request->url(),
32+
'ip' => $this->request->ip(),
33+
'method' => $this->request->method(),
34+
'action' => optional($this->request->route())->getActionName(),
35+
'duration' => value(function () {
3636
$startTime = defined('LARAVEL_START') ? LARAVEL_START : $this->request->server('REQUEST_TIME_FLOAT', $_SERVER['REQUEST_TIME_FLOAT']);
3737

3838
return floor((microtime(true) - $startTime) * 1000).'ms';

0 commit comments

Comments
 (0)