Skip to content

Commit

Permalink
Apply fixes from StyleCI
Browse files Browse the repository at this point in the history
  • Loading branch information
imorland authored and StyleCIBot committed Jun 28, 2021
1 parent 9eda1c4 commit 1d75630
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/SentryServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,10 @@ public function register()
return SentrySdk::getCurrentHub();
});


$this->container->singleton('sentry', function ($container) {
/** @var SettingsRepositoryInterface $settings */
$settings = $container->make(SettingsRepositoryInterface::class);

$dsn = $settings->get('fof-sentry.dsn');
if (!$dsn) {
return null;
Expand Down Expand Up @@ -132,7 +131,7 @@ public function boot(SettingsRepositoryInterface $settings)

$dsn = $settings->get('fof-sentry.dsn');
$performanceMonitoring = (int) $settings->get('fof-sentry.monitor_performance', 0);

if ($dsn && $performanceMonitoring > 0) {
/** @var HubInterface $hub */
$hub = $this->container->make(HubInterface::class);
Expand Down

0 comments on commit 1d75630

Please sign in to comment.