@@ -11,17 +11,17 @@ |
||
11 | 11 | use Sentry\Transport\TransportFactoryInterface; |
12 | 12 | |
13 | 13 | return [ |
14 | - static function (ContainerInterface $container): void { |
|
15 | - $options = $container->get(Options::class); |
|
14 | + static function(ContainerInterface $container): void { |
|
15 | + $options=$container->get(Options::class); |
|
16 | 16 | |
17 | - $clientBuilder = new ClientBuilder($options); |
|
17 | + $clientBuilder=new ClientBuilder($options); |
|
18 | 18 | $clientBuilder |
19 | 19 | ->setTransportFactory($container->get(TransportFactoryInterface::class)) |
20 | 20 | ->setLogger($container->get(LoggerInterface::class)); |
21 | 21 | |
22 | - $client = $clientBuilder->getClient(); |
|
22 | + $client=$clientBuilder->getClient(); |
|
23 | 23 | |
24 | - $hub = $container->get(HubInterface::class); |
|
24 | + $hub=$container->get(HubInterface::class); |
|
25 | 25 | $hub->bindClient($client); |
26 | 26 | |
27 | 27 | SentrySdk::setCurrentHub($hub); |
@@ -9,7 +9,7 @@ |
||
9 | 9 | 'handleConsoleErrors' => true, |
10 | 10 | 'options' => [ |
11 | 11 | 'dsn' => null, |
12 | - 'before_send' => static function (Event $event): ?Event { |
|
12 | + 'before_send' => static function(Event $event): ?Event { |
|
13 | 13 | foreach ($event->getExceptions() as $exception) { |
14 | 14 | if ($exception->getType() === 'Yiisoft\ErrorHandler\Exception\ErrorException') { |
15 | 15 | return null; |
@@ -9,12 +9,12 @@ |
||
9 | 9 | * @var $params array |
10 | 10 | */ |
11 | 11 | |
12 | -$enabled = $params['yiisoft/yii-sentry']['handleConsoleErrors'] ?? false; |
|
12 | +$enabled=$params['yiisoft/yii-sentry']['handleConsoleErrors'] ?? false; |
|
13 | 13 | if (!$enabled) { |
14 | 14 | return []; |
15 | 15 | } |
16 | 16 | |
17 | -$dsnSet = (bool) ($params['yiisoft/yii-sentry']['options']['dsn'] ?? false); |
|
17 | +$dsnSet=(bool) ($params['yiisoft/yii-sentry']['options']['dsn'] ?? false); |
|
18 | 18 | if (!$dsnSet) { |
19 | 19 | return []; |
20 | 20 | } |
@@ -6,7 +6,7 @@ |
||
6 | 6 | use Rector\Config\RectorConfig; |
7 | 7 | use Rector\Set\ValueObject\LevelSetList; |
8 | 8 | |
9 | -return static function (RectorConfig $rectorConfig): void { |
|
9 | +return static function(RectorConfig $rectorConfig): void { |
|
10 | 10 | $rectorConfig->paths([ |
11 | 11 | __DIR__ . '/src', |
12 | 12 | __DIR__ . '/tests', |