Skip to content

Commit 7989a5b

Browse files
committed
Apply fixes from StyleCI
1 parent 0d8734c commit 7989a5b

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/Content/SentryJavaScript.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -93,10 +93,10 @@ public function __invoke(Document $document)
9393
'replaysSessionSampleRate' => $replaysSessionSampleRate,
9494
'replaysOnErrorSampleRate' => $replaysErrorSampleRate,
9595
'tags' => [
96-
'flarum' => Application::VERSION,
96+
'flarum' => Application::VERSION,
9797
'offline' => $this->config['offline'] ? 'true' : 'false',
98-
'debug' => $this->config->inDebugMode() ? 'true' : 'false',
99-
]
98+
'debug' => $this->config->inDebugMode() ? 'true' : 'false',
99+
],
100100
];
101101

102102
// Retrieve custom tags if they exist
@@ -118,9 +118,9 @@ public function __invoke(Document $document)
118118
dsn: sentryConfig.dsn || '$dsn',
119119
environment: sentryConfig.environment || '$environment',
120120
release: sentryConfig.release || '$release',
121-
scrubEmails: sentryConfig.scrubEmails !== undefined ? sentryConfig.scrubEmails : ".($shouldScrubEmailsFromUserData ? 'true' : 'false').",
122-
showFeedback: sentryConfig.showFeedback !== undefined ? sentryConfig.showFeedback : ".($showFeedback ? 'true' : 'false').",
123-
captureConsole: sentryConfig.captureConsole !== undefined ? sentryConfig.captureConsole : ".($captureConsole ? 'true' : 'false').",
121+
scrubEmails: sentryConfig.scrubEmails !== undefined ? sentryConfig.scrubEmails : ".($shouldScrubEmailsFromUserData ? 'true' : 'false').',
122+
showFeedback: sentryConfig.showFeedback !== undefined ? sentryConfig.showFeedback : '.($showFeedback ? 'true' : 'false').',
123+
captureConsole: sentryConfig.captureConsole !== undefined ? sentryConfig.captureConsole : '.($captureConsole ? 'true' : 'false').",
124124
tracesSampleRate: sentryConfig.tracesSampleRate !== undefined ? sentryConfig.tracesSampleRate : $tracesSampleRate,
125125
replaysSessionSampleRate: sentryConfig.replaysSessionSampleRate !== undefined ? sentryConfig.replaysSessionSampleRate : $replaysSessionSampleRate,
126126
replaysOnErrorSampleRate: sentryConfig.replaysOnErrorSampleRate !== undefined ? sentryConfig.replaysOnErrorSampleRate : $replaysErrorSampleRate,

src/Extend/Sentry.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ public function extend(Container $container, ?Extension $extension = null)
8888
$container->singleton('fof.sentry.tags', function () {
8989
return $this->tags;
9090
});
91-
91+
9292
$container->extend(HubInterface::class, function (HubInterface $hub) {
9393
$hub->configureScope(function (Scope $scope) {
9494
foreach ($this->tags as $key => $value) {

0 commit comments

Comments
 (0)