@@ -12,12 +12,12 @@ |
||
12 | 12 | { |
13 | 13 | public function __invoke(array $options) |
14 | 14 | { |
15 | - $toEmail = (array) ($options['to'] ?? []); |
|
16 | - $subject = (string) ($options['subject'] ?? true); |
|
17 | - $fromEmail = (string) ($options['from'] ?? ''); |
|
18 | - $level = (int) ($options['level'] ?? Logger::DEBUG); |
|
15 | + $toEmail = (array) ($options['to'] ?? []); |
|
16 | + $subject = (string) ($options['subject'] ?? true); |
|
17 | + $fromEmail = (string) ($options['from'] ?? ''); |
|
18 | + $level = (int) ($options['level'] ?? Logger::DEBUG); |
|
19 | 19 | $bubble = (bool) ($options['bubble'] ?? true); |
20 | - $maxColumnWidth = (int) ($options['maxColumnWidth'] ?? 70); |
|
20 | + $maxColumnWidth = (int) ($options['maxColumnWidth'] ?? 70); |
|
21 | 21 | |
22 | 22 | return new NativeMailerHandler($toEmail, $subject, $fromEmail, $level, $bubble, $maxColumnWidth); |
23 | 23 | } |
@@ -17,7 +17,7 @@ |
||
17 | 17 | public function __invoke(array $options) |
18 | 18 | { |
19 | 19 | $client = $this->getService($options['client'] ?? null); |
20 | - $level = (int) ($options['level'] ?? Logger::DEBUG); |
|
20 | + $level = (int) ($options['level'] ?? Logger::DEBUG); |
|
21 | 21 | $bubble = (bool) ($options['bubble'] ?? true); |
22 | 22 | |
23 | 23 | return new DoctrineCouchDBHandler( |
@@ -18,9 +18,9 @@ |
||
18 | 18 | */ |
19 | 19 | public function __invoke(array $options) |
20 | 20 | { |
21 | - $token = (string) ($options['token'] ?? ''); |
|
21 | + $token = (string) ($options['token'] ?? ''); |
|
22 | 22 | $useSSL = (bool) ($options['useSSL'] ?? true); |
23 | - $level = (int) ($options['level'] ?? Logger::DEBUG); |
|
23 | + $level = (int) ($options['level'] ?? Logger::DEBUG); |
|
24 | 24 | $bubble = (bool) ($options['bubble'] ?? true); |
25 | 25 | |
26 | 26 | return new LogEntriesHandler( |
@@ -18,8 +18,8 @@ |
||
18 | 18 | { |
19 | 19 | $sqsClient = $this->getService($options['sqsClient'] ?? null); |
20 | 20 | |
21 | - $queueUrl = (string) ($options['queueUrl'] ?? Logger::DEBUG); |
|
22 | - $level = (int) ($options['level'] ?? Logger::DEBUG); |
|
21 | + $queueUrl = (string) ($options['queueUrl'] ?? Logger::DEBUG); |
|
22 | + $level = (int) ($options['level'] ?? Logger::DEBUG); |
|
23 | 23 | $bubble = (bool) ($options['bubble'] ?? true); |
24 | 24 | |
25 | 25 | return new SqsHandler($sqsClient, $queueUrl, $level, $bubble); |
@@ -23,7 +23,7 @@ |
||
23 | 23 | */ |
24 | 24 | public function __invoke(array $options) |
25 | 25 | { |
26 | - $level = (int) ($options['level'] ?? Logger::DEBUG); |
|
26 | + $level = (int) ($options['level'] ?? Logger::DEBUG); |
|
27 | 27 | $bubble = (bool) ($options['bubble'] ?? true); |
28 | 28 | |
29 | 29 | return new ZendMonitorHandler( |
@@ -12,10 +12,10 @@ |
||
12 | 12 | { |
13 | 13 | public function __invoke(array $options) |
14 | 14 | { |
15 | - $connectionString = (string) ($options['connectionString'] ?? ''); |
|
16 | - $timeout = (float) ($options['timeout'] ?? ini_get('default_socket_timeout')); |
|
17 | - $writeTimeout = (int) ($options['writeTimeout'] ?? ini_get('default_socket_timeout')); |
|
18 | - $level = (int) ($options['level'] ?? Logger::DEBUG); |
|
15 | + $connectionString = (string) ($options['connectionString'] ?? ''); |
|
16 | + $timeout = (float) ($options['timeout'] ?? ini_get('default_socket_timeout')); |
|
17 | + $writeTimeout = (int) ($options['writeTimeout'] ?? ini_get('default_socket_timeout')); |
|
18 | + $level = (int) ($options['level'] ?? Logger::DEBUG); |
|
19 | 19 | $bubble = (bool) ($options['bubble'] ?? true); |
20 | 20 | |
21 | 21 | $handler = new SocketHandler( |
@@ -17,9 +17,9 @@ |
||
17 | 17 | public function __invoke(array $options) |
18 | 18 | { |
19 | 19 | $handler = $this->getHandlerManager()->get($options['handler']); |
20 | - $deduplicationStore = $options['deduplicationStore'] ?? null; |
|
21 | - $deduplicationLevel = (int) ($options['deduplicationLevel'] ?? Logger::ERROR); |
|
22 | - $time = (int) ($options['time'] ?? 60); |
|
20 | + $deduplicationStore = $options['deduplicationStore'] ?? null; |
|
21 | + $deduplicationLevel = (int) ($options['deduplicationLevel'] ?? Logger::ERROR); |
|
22 | + $time = (int) ($options['time'] ?? 60); |
|
23 | 23 | $bubble = (bool) ($options['bubble'] ?? true); |
24 | 24 | |
25 | 25 | return new DeduplicationHandler( |
@@ -12,16 +12,16 @@ |
||
12 | 12 | { |
13 | 13 | public function __invoke(array $options) |
14 | 14 | { |
15 | - $webhookUrl = (string) ($options['webhookUrl'] ?? ''); |
|
16 | - $channel = $options['channel'] ?? null; |
|
17 | - $userName = $options['userName'] ?? null; |
|
15 | + $webhookUrl = (string) ($options['webhookUrl'] ?? ''); |
|
16 | + $channel = $options['channel'] ?? null; |
|
17 | + $userName = $options['userName'] ?? null; |
|
18 | 18 | $useAttachment = (bool) ($options['useAttachment'] ?? true); |
19 | - $iconEmoji = $options['iconEmoji'] ?? null; |
|
19 | + $iconEmoji = $options['iconEmoji'] ?? null; |
|
20 | 20 | $useShortAttachment = (bool) ($options['useShortAttachment'] ?? false); |
21 | 21 | $includeContext = (bool) ($options['includeContextAndExtra'] ?? false); |
22 | - $level = (int) ($options['level'] ?? Logger::DEBUG); |
|
22 | + $level = (int) ($options['level'] ?? Logger::DEBUG); |
|
23 | 23 | $bubble = (bool) ($options['bubble'] ?? true); |
24 | - $excludeFields = (array) ($options['excludeFields'] ?? []); |
|
24 | + $excludeFields = (array) ($options['excludeFields'] ?? []); |
|
25 | 25 | |
26 | 26 | return new SlackWebhookHandler( |
27 | 27 | $webhookUrl, |
@@ -12,8 +12,8 @@ |
||
12 | 12 | { |
13 | 13 | public function __invoke(array $options) |
14 | 14 | { |
15 | - $url = (string) ($options['url'] ?? ''); |
|
16 | - $level = (int) ($options['level'] ?? Logger::DEBUG); |
|
15 | + $url = (string) ($options['url'] ?? ''); |
|
16 | + $level = (int) ($options['level'] ?? Logger::DEBUG); |
|
17 | 17 | $bubble = (bool) ($options['bubble'] ?? true); |
18 | 18 | |
19 | 19 | return new CubeHandler( |