Passed
Pull Request — master (#36)
by Sergei
11:30
created
config/bootstrap.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -11,17 +11,17 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
config/params.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
config/events-console.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -9,12 +9,12 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
rector.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@
 block discarded – undo
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',
Please login to merge, or discard this patch.