@@ -1,5 +1,5 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | |
| 4 | 4 | namespace WShafer\PSR11MonoLog\Handler; |
| 5 | 5 | |
@@ -11,8 +11,8 @@ discard block |
||
| 11 | 11 | { |
| 12 | 12 | public function __invoke(array $options) |
| 13 | 13 | { |
| 14 | - $messageType = (int) ($options['messageType'] ?? ErrorLogHandler::OPERATING_SYSTEM); |
|
| 15 | - $level = (int) ($options['level'] ?? Logger::DEBUG); |
|
| 14 | + $messageType = (int) ($options['messageType'] ?? ErrorLogHandler::OPERATING_SYSTEM); |
|
| 15 | + $level = (int) ($options['level'] ?? Logger::DEBUG); |
|
| 16 | 16 | $bubble = (boolean) ($options['bubble'] ?? true); |
| 17 | 17 | $expandNewlines = (boolean) ($options['expandNewlines'] ?? false); |
| 18 | 18 | |
@@ -1,5 +1,5 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | |
| 4 | 4 | namespace WShafer\PSR11MonoLog\Handler; |
| 5 | 5 | |
@@ -11,16 +11,16 @@ discard block |
||
| 11 | 11 | { |
| 12 | 12 | public function __invoke(array $options) |
| 13 | 13 | { |
| 14 | - $token = (string) ($options['token'] ?? ''); |
|
| 15 | - $users = (array) ($options['users'] ?? []); |
|
| 16 | - $title = (string) ($options['title'] ?? ''); |
|
| 17 | - $level = (int) ($options['level'] ?? Logger::DEBUG); |
|
| 14 | + $token = (string) ($options['token'] ?? ''); |
|
| 15 | + $users = (array) ($options['users'] ?? []); |
|
| 16 | + $title = (string) ($options['title'] ?? ''); |
|
| 17 | + $level = (int) ($options['level'] ?? Logger::DEBUG); |
|
| 18 | 18 | $bubble = (boolean) ($options['bubble'] ?? true); |
| 19 | 19 | $useSSL = (boolean) ($options['useSSL'] ?? true); |
| 20 | - $highPriorityLevel = (int) ($options['highPriorityLevel'] ?? Logger::CRITICAL); |
|
| 21 | - $emergencyLevel = (int) ($options['emergencyLevel'] ?? Logger::EMERGENCY); |
|
| 22 | - $retry = (int) ($options['retry'] ?? 30); |
|
| 23 | - $expire = (int) ($options['expire'] ?? 25200); |
|
| 20 | + $highPriorityLevel = (int) ($options['highPriorityLevel'] ?? Logger::CRITICAL); |
|
| 21 | + $emergencyLevel = (int) ($options['emergencyLevel'] ?? Logger::EMERGENCY); |
|
| 22 | + $retry = (int) ($options['retry'] ?? 30); |
|
| 23 | + $expire = (int) ($options['expire'] ?? 25200); |
|
| 24 | 24 | |
| 25 | 25 | return new PushoverHandler( |
| 26 | 26 | $token, |
@@ -1,5 +1,5 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | |
| 4 | 4 | namespace WShafer\PSR11MonoLog\Handler; |
| 5 | 5 | |
@@ -11,11 +11,11 @@ discard block |
||
| 11 | 11 | { |
| 12 | 12 | public function __invoke(array $options) |
| 13 | 13 | { |
| 14 | - $filename = (string) ($options['filename'] ?? ''); |
|
| 15 | - $maxFiles = (int) ($options['maxFiles'] ?? 0); |
|
| 16 | - $level = (int) ($options['level'] ?? Logger::DEBUG); |
|
| 14 | + $filename = (string) ($options['filename'] ?? ''); |
|
| 15 | + $maxFiles = (int) ($options['maxFiles'] ?? 0); |
|
| 16 | + $level = (int) ($options['level'] ?? Logger::DEBUG); |
|
| 17 | 17 | $bubble = (boolean) ($options['bubble'] ?? true); |
| 18 | - $filePermission = (int) ($options['filePermission'] ?? null); |
|
| 18 | + $filePermission = (int) ($options['filePermission'] ?? null); |
|
| 19 | 19 | $useLocking = (boolean) ($options['useLocking'] ?? false); |
| 20 | 20 | |
| 21 | 21 | return new RotatingFileHandler($filename, $maxFiles, $level, $bubble, $filePermission, $useLocking); |
@@ -1,5 +1,5 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | |
| 4 | 4 | namespace WShafer\PSR11MonoLog\Handler; |
| 5 | 5 | |
@@ -21,7 +21,7 @@ discard block |
||
| 21 | 21 | $mailer = $this->getMailer($options); |
| 22 | 22 | $message = $this->getSwiftMessage($options); |
| 23 | 23 | |
| 24 | - $level = (int) ($options['level'] ?? Logger::DEBUG); |
|
| 24 | + $level = (int) ($options['level'] ?? Logger::DEBUG); |
|
| 25 | 25 | $bubble = (boolean) ($options['bubble'] ?? true); |
| 26 | 26 | |
| 27 | 27 | return new SwiftMailerHandler($mailer, $message, $level, $bubble); |
@@ -1,5 +1,5 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | |
| 4 | 4 | namespace WShafer\PSR11MonoLog\Handler; |
| 5 | 5 | |
@@ -11,12 +11,12 @@ discard block |
||
| 11 | 11 | { |
| 12 | 12 | public function __invoke(array $options) |
| 13 | 13 | { |
| 14 | - $toEmail = (array) ($options['to'] ?? []); |
|
| 15 | - $subject = (string) ($options['subject'] ?? true); |
|
| 16 | - $fromEmail = (string) ($options['from'] ?? ''); |
|
| 17 | - $level = (int) ($options['level'] ?? Logger::DEBUG); |
|
| 14 | + $toEmail = (array) ($options['to'] ?? []); |
|
| 15 | + $subject = (string) ($options['subject'] ?? true); |
|
| 16 | + $fromEmail = (string) ($options['from'] ?? ''); |
|
| 17 | + $level = (int) ($options['level'] ?? Logger::DEBUG); |
|
| 18 | 18 | $bubble = (boolean) ($options['bubble'] ?? true); |
| 19 | - $maxColumnWidth = (int) ($options['maxColumnWidth'] ?? 70); |
|
| 19 | + $maxColumnWidth = (int) ($options['maxColumnWidth'] ?? 70); |
|
| 20 | 20 | |
| 21 | 21 | return new NativeMailerHandler($toEmail, $subject, $fromEmail, $level, $bubble, $maxColumnWidth); |
| 22 | 22 | } |
@@ -1,5 +1,5 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | |
| 4 | 4 | namespace WShafer\PSR11MonoLog\Handler; |
| 5 | 5 | |
@@ -11,15 +11,15 @@ discard block |
||
| 11 | 11 | { |
| 12 | 12 | public function __invoke(array $options) |
| 13 | 13 | { |
| 14 | - $token = (string) ($options['token'] ?? ''); |
|
| 15 | - $room = (string) ($options['room'] ?? ''); |
|
| 16 | - $name = (string) ($options['name'] ?? 'Monolog'); |
|
| 14 | + $token = (string) ($options['token'] ?? ''); |
|
| 15 | + $room = (string) ($options['room'] ?? ''); |
|
| 16 | + $name = (string) ($options['name'] ?? 'Monolog'); |
|
| 17 | 17 | $notify = (boolean) ($options['notify'] ?? false); |
| 18 | - $level = (int) ($options['level'] ?? Logger::DEBUG); |
|
| 18 | + $level = (int) ($options['level'] ?? Logger::DEBUG); |
|
| 19 | 19 | $bubble = (boolean) ($options['bubble'] ?? true); |
| 20 | 20 | $useSSL = (boolean) ($options['useSSL'] ?? true); |
| 21 | - $format = (string) ($options['format'] ?? 'text'); |
|
| 22 | - $host = (string) ($options['host'] ?? 'api.hipchat.com'); |
|
| 21 | + $format = (string) ($options['format'] ?? 'text'); |
|
| 22 | + $host = (string) ($options['host'] ?? 'api.hipchat.com'); |
|
| 23 | 23 | |
| 24 | 24 | return new HipChatHandler( |
| 25 | 25 | $token, |
@@ -1,5 +1,5 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | |
| 4 | 4 | namespace WShafer\PSR11MonoLog\Handler; |
| 5 | 5 | |
@@ -11,8 +11,8 @@ discard block |
||
| 11 | 11 | { |
| 12 | 12 | public function __invoke(array $options) |
| 13 | 13 | { |
| 14 | - $token = (string) ($options['token'] ?? ''); |
|
| 15 | - $level = (int) ($options['level'] ?? Logger::DEBUG); |
|
| 14 | + $token = (string) ($options['token'] ?? ''); |
|
| 15 | + $level = (int) ($options['level'] ?? Logger::DEBUG); |
|
| 16 | 16 | $bubble = (boolean) ($options['bubble'] ?? true); |
| 17 | 17 | |
| 18 | 18 | return new FleepHookHandler( |
@@ -1,5 +1,5 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | |
| 4 | 4 | namespace WShafer\PSR11MonoLog\Handler; |
| 5 | 5 | |
@@ -11,9 +11,9 @@ discard block |
||
| 11 | 11 | { |
| 12 | 12 | public function __invoke(array $options) |
| 13 | 13 | { |
| 14 | - $eventName = (string) ($options['eventName'] ?? ''); |
|
| 15 | - $secretKey = (string) ($options['secretKey'] ?? ''); |
|
| 16 | - $level = (int) ($options['level'] ?? Logger::DEBUG); |
|
| 14 | + $eventName = (string) ($options['eventName'] ?? ''); |
|
| 15 | + $secretKey = (string) ($options['secretKey'] ?? ''); |
|
| 16 | + $level = (int) ($options['level'] ?? Logger::DEBUG); |
|
| 17 | 17 | $bubble = (boolean) ($options['bubble'] ?? true); |
| 18 | 18 | |
| 19 | 19 | return new IFTTTHandler( |
@@ -1,5 +1,5 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | |
| 4 | 4 | namespace WShafer\PSR11MonoLog\Handler; |
| 5 | 5 | |
@@ -11,16 +11,16 @@ discard block |
||
| 11 | 11 | { |
| 12 | 12 | public function __invoke(array $options) |
| 13 | 13 | { |
| 14 | - $token = (string) ($options['token'] ?? ''); |
|
| 15 | - $channel = (string) ($options['channel'] ?? ''); |
|
| 16 | - $userName = (string) ($options['userName'] ?? ''); |
|
| 14 | + $token = (string) ($options['token'] ?? ''); |
|
| 15 | + $channel = (string) ($options['channel'] ?? ''); |
|
| 16 | + $userName = (string) ($options['userName'] ?? ''); |
|
| 17 | 17 | $useAttachment = (boolean) ($options['useAttachment'] ?? true); |
| 18 | - $iconEmoji = (string) ($options['iconEmoji'] ?? ''); |
|
| 19 | - $level = (int) ($options['level'] ?? Logger::DEBUG); |
|
| 18 | + $iconEmoji = (string) ($options['iconEmoji'] ?? ''); |
|
| 19 | + $level = (int) ($options['level'] ?? Logger::DEBUG); |
|
| 20 | 20 | $bubble = (boolean) ($options['bubble'] ?? true); |
| 21 | 21 | $useShortAttachment = (boolean) ($options['useShortAttachment'] ?? false); |
| 22 | 22 | $includeContext = (boolean) ($options['includeContextAndExtra'] ?? false); |
| 23 | - $excludeFields = (array) ($options['excludeFields'] ?? []); |
|
| 23 | + $excludeFields = (array) ($options['excludeFields'] ?? []); |
|
| 24 | 24 | |
| 25 | 25 | return new SlackHandler( |
| 26 | 26 | $token, |