@@ -32,8 +32,8 @@ discard block |
||
32 | 32 | 'dziki.monolog_sentry_bundle.user_data_appending_subscribed_processor', |
33 | 33 | new Definition(UserDataAppending::class, [new Reference(TokenStorageInterface::class)]) |
34 | 34 | ) |
35 | - ->addTag('kernel.event_subscriber') |
|
36 | - ->addTag('monolog.processor') |
|
35 | + ->addTag('kernel.event_subscriber') |
|
36 | + ->addTag('monolog.processor') |
|
37 | 37 | ; |
38 | 38 | } |
39 | 39 | |
@@ -43,13 +43,13 @@ discard block |
||
43 | 43 | case 'native': |
44 | 44 | $parserClass = NativeParser::class; |
45 | 45 | $container->setDefinition($parserClass, new Definition($parserClass)) |
46 | - ->setPrivate(true) |
|
46 | + ->setPrivate(true) |
|
47 | 47 | ; |
48 | 48 | break; |
49 | 49 | case 'phpuseragent': |
50 | 50 | $parserClass = PhpUserAgentParser::class; |
51 | 51 | $container->setDefinition($parserClass, new Definition($parserClass)) |
52 | - ->setPrivate(true) |
|
52 | + ->setPrivate(true) |
|
53 | 53 | ; |
54 | 54 | break; |
55 | 55 | default: |
@@ -60,9 +60,9 @@ discard block |
||
60 | 60 | 'dziki.monolog_sentry_bundle.browser_data_appending_subscribed_processor', |
61 | 61 | new Definition(BrowserDataAppending::class, [new Reference($parserClass)]) |
62 | 62 | ) |
63 | - ->setPrivate(true) |
|
64 | - ->addTag('kernel.event_subscriber') |
|
65 | - ->addTag('monolog.processor') |
|
63 | + ->setPrivate(true) |
|
64 | + ->addTag('kernel.event_subscriber') |
|
65 | + ->addTag('monolog.processor') |
|
66 | 66 | ; |
67 | 67 | } |
68 | 68 | |
@@ -79,8 +79,8 @@ discard block |
||
79 | 79 | ] |
80 | 80 | ) |
81 | 81 | ) |
82 | - ->setPrivate(true) |
|
83 | - ->addTag('monolog.processor') |
|
82 | + ->setPrivate(true) |
|
83 | + ->addTag('monolog.processor') |
|
84 | 84 | ; |
85 | 85 | } |
86 | 86 | } |
@@ -68,7 +68,7 @@ |
||
68 | 68 | |
69 | 69 | if (\is_array($configs['tags'])) { |
70 | 70 | foreach ($configs['tags'] as $tag => ['value' => $value, 'name' => $name]) { |
71 | - $tagName = $name ?: (string)$tag; |
|
71 | + $tagName = $name ?: (string) $tag; |
|
72 | 72 | $container->setDefinition( |
73 | 73 | "dziki.monolog_sentry_bundle.{$tag}_appending_processor", |
74 | 74 | new Definition( |
@@ -28,7 +28,7 @@ |
||
28 | 28 | ->arrayPrototype() |
29 | 29 | ->beforeNormalization() |
30 | 30 | ->ifString() |
31 | - ->then(function ($value) { |
|
31 | + ->then(function($value) { |
|
32 | 32 | return array('value' => $value); |
33 | 33 | }) |
34 | 34 | ->end() |
@@ -15,7 +15,7 @@ |
||
15 | 15 | public function process(ContainerBuilder $container): void |
16 | 16 | { |
17 | 17 | array_map( |
18 | - function (Definition $definition) { |
|
18 | + function(Definition $definition) { |
|
19 | 19 | if ($definition->getClass() === RavenHandler::class) { |
20 | 20 | $definition->setClass(Raven::class); |
21 | 21 | } |
@@ -40,7 +40,7 @@ discard block |
||
40 | 40 | // filter records based on their level |
41 | 41 | $records = array_filter( |
42 | 42 | $records, |
43 | - function ($record) use ($level) { |
|
43 | + function($record) use ($level) { |
|
44 | 44 | return $record['level'] >= $level; |
45 | 45 | } |
46 | 46 | ); |
@@ -52,7 +52,7 @@ discard block |
||
52 | 52 | // the record with the highest severity is the "main" one |
53 | 53 | $record = array_reduce( |
54 | 54 | $records, |
55 | - function ($highest, $record) { |
|
55 | + function($highest, $record) { |
|
56 | 56 | if ($record['level'] > $highest['level']) { |
57 | 57 | return $record; |
58 | 58 | } |
@@ -72,7 +72,7 @@ discard block |
||
72 | 72 | 'category' => $log['channel'], |
73 | 73 | 'message' => $log['message'], |
74 | 74 | 'level' => strtolower($log['level_name']), |
75 | - 'timestamp' => (float)($date instanceof \DateTime ? $date->format('U.u') : $date), |
|
75 | + 'timestamp' => (float) ($date instanceof \DateTime ? $date->format('U.u') : $date), |
|
76 | 76 | ]; |
77 | 77 | |
78 | 78 | if (array_key_exists('context', $log)) { |
@@ -91,7 +91,7 @@ discard block |
||
91 | 91 | } |
92 | 92 | |
93 | 93 | if ($logs) { |
94 | - $record['context']['logs'] = (string)$this->getBatchFormatter()->formatBatch($logs); |
|
94 | + $record['context']['logs'] = (string) $this->getBatchFormatter()->formatBatch($logs); |
|
95 | 95 | } |
96 | 96 | |
97 | 97 | $this->handle($record); |