Skip to content

Commit e2d3743

Browse files
committed
CS
1 parent 9ba53d3 commit e2d3743

File tree

4 files changed

+6
-10
lines changed

4 files changed

+6
-10
lines changed

src/Controller/EventsController.php

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
use Cake\Controller\Controller;
88
use Cake\Http\Response;
99
use Sentry\SentrySdk;
10-
1110
use function Sentry\metrics;
1211

1312
class EventsController extends Controller
@@ -42,28 +41,28 @@ public function index(): Response
4241
]);
4342
metrics()->distribution(
4443
'gibpotato.potatoes.event_processing_time',
45-
(float) microtime(true) - $startTimestamp,
44+
(float)microtime(true) - $startTimestamp,
4645
[
4746
'gibpotato.event_type' => $event->type,
4847
],
4948
);
5049
metrics()->gauge(
5150
'gibpotato.potatoes.event_processing_time',
52-
(float) microtime(true) - $startTimestamp,
51+
(float)microtime(true) - $startTimestamp,
5352
[
5453
'gibpotato.event_type' => $event->type,
5554
],
5655
);
5756
metrics()->distribution(
5857
'gibpotato.potatoes.event_size',
59-
(float) mb_strlen(serialize($this->request->getData()), '8bit'),
58+
(float)mb_strlen(serialize($this->request->getData()), '8bit'),
6059
[
6160
'gibpotato.event_type' => $event->type,
6261
],
6362
);
6463
metrics()->gauge(
6564
'gibpotato.potatoes.event_size',
66-
(float) mb_strlen(serialize($this->request->getData()), '8bit'),
65+
(float)mb_strlen(serialize($this->request->getData()), '8bit'),
6766
[
6867
'gibpotato.event_type' => $event->type,
6968
],

src/Middleware/SentryMiddleware.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
use function microtime;
1919
use function Sentry\logger;
2020
use function Sentry\metrics;
21-
use function Sentry\metrics as SentryMetrics;
2221
use function Sentry\startTransaction;
2322

2423
/**
@@ -82,7 +81,7 @@ public function process(ServerRequestInterface $request, RequestHandlerInterface
8281

8382
metrics()->distribution(
8483
'gcp.mem_peak_usage',
85-
(float) memory_get_peak_usage(false),
84+
(float)memory_get_peak_usage(false),
8685
);
8786
}
8887

src/Service/AwardService.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,13 +72,12 @@ private function gibToUser(
7272
}
7373
metrics()->count(
7474
'gibpotato.potatoes.given_out',
75-
(float) $event->amount,
75+
(float)$event->amount,
7676
[
7777
'gibpotato.event_type' => $event->type,
7878
],
7979
);
8080

81-
8281
logger()->info(
8382
message: '"%s" gave "%s" %s 🥔',
8483
values: [

src/Service/QuickWinService.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
use App\Model\Entity\User;
99
use Cake\ORM\Locator\LocatorAwareTrait;
1010
use Sentry\SentrySdk;
11-
1211
use function Sentry\metrics;
1312

1413
class QuickWinService

0 commit comments

Comments
 (0)