Skip to content

Commit 454dd86

Browse files
committed
CS + Lint
1 parent 7a2c736 commit 454dd86

File tree

5 files changed

+15
-9
lines changed

5 files changed

+15
-9
lines changed

src/EventListener/ConsoleListener.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ class ConsoleListener
3737
/**
3838
* Constructor.
3939
*
40-
* @param HubInterface $hub The current hub
41-
* @param bool $captureErrors Whether to capture console errors
40+
* @param HubInterface $hub The current hub
41+
* @param bool $captureErrors Whether to capture console errors
4242
*/
4343
public function __construct(HubInterface $hub, bool $captureErrors = true)
4444
{
@@ -62,7 +62,7 @@ public function handleConsoleCommandEvent(ConsoleCommandEvent $event): void
6262
}
6363

6464
if ($input instanceof ArgvInput) {
65-
$scope->setExtra('Full command', (string)$input);
65+
$scope->setExtra('Full command', (string) $input);
6666
}
6767
}
6868

@@ -86,7 +86,7 @@ public function handleConsoleTerminateEvent(ConsoleTerminateEvent $event): void
8686
public function handleConsoleErrorEvent(ConsoleErrorEvent $event): void
8787
{
8888
$this->hub->configureScope(function (Scope $scope) use ($event): void {
89-
$scope->setTag('console.command.exit_code', (string)$event->getExitCode());
89+
$scope->setTag('console.command.exit_code', (string) $event->getExitCode());
9090

9191
if ($this->captureErrors) {
9292
$hint = EventHint::fromArray([

src/EventListener/MetricsRequestListener.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
declare(strict_types=1);
4+
35
namespace Sentry\SentryBundle\EventListener;
46

57
use Sentry\Metrics\TraceMetrics;
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
11
<?php
22

3+
declare(strict_types=1);
4+
35
namespace Sentry\SentryBundle\Tests\End2End\App\Command;
46

57
use Symfony\Component\Console\Command\Command;
68
use Symfony\Component\Console\Input\InputInterface;
79
use Symfony\Component\Console\Output\OutputInterface;
10+
811
use function Sentry\trace_metrics;
912

1013
class MetricsCommand extends Command
1114
{
12-
1315
protected function execute(InputInterface $input, OutputInterface $output): int
1416
{
1517
trace_metrics()->count('test-counter', 10);
@@ -18,5 +20,4 @@ protected function execute(InputInterface $input, OutputInterface $output): int
1820

1921
return 0;
2022
}
21-
2223
}
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
<?php
22

3+
declare(strict_types=1);
4+
35
namespace Sentry\SentryBundle\Tests\End2End\App\Controller;
46

57
use Symfony\Component\HttpFoundation\Response;
8+
69
use function Sentry\trace_metrics;
710

811
class MetricsController
912
{
10-
1113
public function metrics(): Response
1214
{
1315
trace_metrics()->count('test-counter', 10);
@@ -16,5 +18,4 @@ public function metrics(): Response
1618

1719
return new Response();
1820
}
19-
2021
}

tests/End2End/MetricsEnd2EndTest.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
declare(strict_types=1);
4+
35
namespace Sentry\SentryBundle\Tests\End2End;
46

57
use Sentry\SentryBundle\Tests\End2End\App\KernelWithMetrics;
@@ -20,7 +22,7 @@ protected static function getKernelClass(): string
2022
return KernelWithMetrics::class;
2123
}
2224

23-
public function testMetricsAreFlushedAfterRequest()
25+
public function testMetricsAreFlushedAfterRequest(): void
2426
{
2527
$client = static::createClient(['debug' => true]);
2628

0 commit comments

Comments
 (0)