Skip to content

Commit 5096d3b

Browse files
Naoraygithub-actions[bot]
authored andcommitted
Fix styling
1 parent 6b5a07c commit 5096d3b

File tree

9 files changed

+3
-20
lines changed

9 files changed

+3
-20
lines changed

src/Deduplication/VendorFrameDetector.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,6 @@ public function isVendorFrame(array $frame): bool
4848

4949
/**
5050
* Check if a formatted stack trace line is a vendor frame
51-
*
52-
* @param string $line
5351
*/
5452
public function isVendorFrameLine(string $line): bool
5553
{

src/Issues/TemplateRenderer.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,5 +117,4 @@ private function resolveExceptionClass(?Throwable $exception, mixed $exceptionDa
117117

118118
return 'Exception';
119119
}
120-
121120
}

src/Tracing/Concerns/RedactsData.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ trait RedactsData
1212
/**
1313
* Redact sensitive headers from a HeaderBag.
1414
*
15-
* @param HeaderBag $headers
1615
* @param array<string> $sensitiveKeys
1716
* @return array<string, array<string>>
1817
*/
@@ -77,7 +76,6 @@ protected function isSensitiveHeader(string $key, array $sensitiveKeys): bool
7776
/**
7877
* Redact a header value based on its type.
7978
*
80-
* @param string $key
8179
* @param array<string> $values
8280
* @return array<string>
8381
*/

src/Tracing/Contracts/DataCollectorInterface.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ interface DataCollectorInterface
66
{
77
/**
88
* Check if this collector is enabled.
9-
*
10-
* @return bool
119
*/
1210
public function isEnabled(): bool;
1311

@@ -16,8 +14,6 @@ public function isEnabled(): bool;
1614
*
1715
* This method is called on-demand (e.g., when an exception occurs)
1816
* for collectors that need to gather data at log time.
19-
*
20-
* @return void
2117
*/
2218
public function collect(): void;
2319
}

src/Tracing/Contracts/EventDrivenCollectorInterface.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@ interface EventDrivenCollectorInterface
1818
{
1919
/**
2020
* Check if this collector is enabled.
21-
*
22-
* @return bool
2321
*/
2422
public function isEnabled(): bool;
2523
}

src/Tracing/EventHandler.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,14 @@
44

55
use Illuminate\Auth\Events\Authenticated;
66
use Illuminate\Console\Events\CommandStarting;
7-
use Illuminate\Database\Events\QueryExecuted;
87
use Illuminate\Contracts\Events\Dispatcher;
8+
use Illuminate\Database\Events\QueryExecuted;
99
use Illuminate\Foundation\Http\Events\RequestHandled;
1010
use Illuminate\Http\Client\Events\RequestSending;
1111
use Illuminate\Http\Client\Events\ResponseReceived;
1212
use Illuminate\Queue\Events\JobProcessing;
1313
use Illuminate\Routing\Events\RouteMatched;
1414
use Naoray\LaravelGithubMonolog\Tracing\Contracts\EventDrivenCollectorInterface;
15-
use Naoray\LaravelGithubMonolog\Tracing\OutgoingRequestResponseCollector;
16-
use Naoray\LaravelGithubMonolog\Tracing\OutgoingRequestSendingCollector;
1715

1816
class EventHandler
1917
{

tests/Tracing/IntegrationTest.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,11 @@
44
use Illuminate\Foundation\Http\Events\RequestHandled;
55
use Illuminate\Http\Request;
66
use Illuminate\Support\Facades\Context;
7-
use Illuminate\Support\Facades\Event;
87
use Monolog\Level;
98
use Naoray\LaravelGithubMonolog\Tracing\ContextProcessor;
109
use Naoray\LaravelGithubMonolog\Tracing\EnvironmentCollector;
1110
use Naoray\LaravelGithubMonolog\Tracing\QueryCollector;
1211
use Naoray\LaravelGithubMonolog\Tracing\RequestDataCollector;
13-
use Naoray\LaravelGithubMonolog\Tracing\UserDataCollector;
14-
use Symfony\Component\HttpFoundation\HeaderBag;
1512

1613
beforeEach(function () {
1714
Context::flush();

tests/Tracing/RequestDataCollectorIntegrationTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
expect($testHandler->getRecords())->not->toBeEmpty();
4848

4949
// Get the error level record
50-
$errorRecords = array_filter($testHandler->getRecords(), fn($record) => $record['level'] >= Level::Error->value);
50+
$errorRecords = array_filter($testHandler->getRecords(), fn ($record) => $record['level'] >= Level::Error->value);
5151
expect($errorRecords)->not->toBeEmpty();
5252

5353
$logRecord = $errorRecords[array_key_first($errorRecords)];
@@ -108,7 +108,7 @@
108108
// Assert - Verify that a log record was created with route data
109109
expect($testHandler->getRecords())->not->toBeEmpty();
110110

111-
$errorRecords = array_filter($testHandler->getRecords(), fn($record) => $record['level'] >= Level::Error->value);
111+
$errorRecords = array_filter($testHandler->getRecords(), fn ($record) => $record['level'] >= Level::Error->value);
112112
expect($errorRecords)->not->toBeEmpty();
113113

114114
$logRecord = $errorRecords[array_key_first($errorRecords)];

tests/Tracing/RequestDataCollectorTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
use Illuminate\Http\Request;
55
use Illuminate\Support\Facades\Context;
66
use Naoray\LaravelGithubMonolog\Tracing\RequestDataCollector;
7-
use Symfony\Component\HttpFoundation\HeaderBag;
87

98
beforeEach(function () {
109
$this->collector = new RequestDataCollector;

0 commit comments

Comments
 (0)