@@ -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 | |
@@ -16,8 +16,8 @@ discard block |
||
| 16 | 16 | public function __invoke(array $options) |
| 17 | 17 | { |
| 18 | 18 | $exchange = $this->getService($options['exchange'] ?? null); |
| 19 | - $exchangeName = (string) ($options['exchangeName'] ?? 'log'); |
|
| 20 | - $level = (int) ($options['level'] ?? Logger::DEBUG); |
|
| 19 | + $exchangeName = (string) ($options['exchangeName'] ?? 'log'); |
|
| 20 | + $level = (int) ($options['level'] ?? Logger::DEBUG); |
|
| 21 | 21 | $bubble = (boolean) ($options['bubble'] ?? true); |
| 22 | 22 | |
| 23 | 23 | return new AmqpHandler( |
@@ -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 | |
@@ -16,9 +16,9 @@ discard block |
||
| 16 | 16 | public function __invoke(array $options) |
| 17 | 17 | { |
| 18 | 18 | $client = $this->getService($options['client'] ?? null); |
| 19 | - $database = (string) ($options['database'] ?? ''); |
|
| 20 | - $collection = (string) ($options['collection'] ?? ''); |
|
| 21 | - $level = (int) ($options['level'] ?? Logger::DEBUG); |
|
| 19 | + $database = (string) ($options['database'] ?? ''); |
|
| 20 | + $collection = (string) ($options['collection'] ?? ''); |
|
| 21 | + $level = (int) ($options['level'] ?? Logger::DEBUG); |
|
| 22 | 22 | $bubble = (boolean) ($options['bubble'] ?? true); |
| 23 | 23 | |
| 24 | 24 | return new MongoDBHandler( |
@@ -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 | |
@@ -16,10 +16,10 @@ discard block |
||
| 16 | 16 | public function __invoke(array $options) |
| 17 | 17 | { |
| 18 | 18 | $client = $this->getService($options['client'] ?? null); |
| 19 | - $index = (string) ($options['index'] ?? 'monolog'); |
|
| 20 | - $type = (string) ($options['type'] ?? 'record'); |
|
| 19 | + $index = (string) ($options['index'] ?? 'monolog'); |
|
| 20 | + $type = (string) ($options['type'] ?? 'record'); |
|
| 21 | 21 | $ignoreError = (boolean) ($options['ignoreError'] ?? false); |
| 22 | - $level = (int) ($options['level'] ?? Logger::DEBUG); |
|
| 22 | + $level = (int) ($options['level'] ?? Logger::DEBUG); |
|
| 23 | 23 | $bubble = (boolean) ($options['bubble'] ?? true); |
| 24 | 24 | |
| 25 | 25 | return new ElasticSearchHandler( |
@@ -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 | |
@@ -15,9 +15,9 @@ discard block |
||
| 15 | 15 | |
| 16 | 16 | public function __invoke(array $options) |
| 17 | 17 | { |
| 18 | - $consoleOptions = (array) ($options['options'] ?? []); |
|
| 18 | + $consoleOptions = (array) ($options['options'] ?? []); |
|
| 19 | 19 | $connector = $this->getService($options['connector'] ?? null); |
| 20 | - $level = (int) ($options['level'] ?? Logger::DEBUG); |
|
| 20 | + $level = (int) ($options['level'] ?? Logger::DEBUG); |
|
| 21 | 21 | $bubble = (boolean) ($options['bubble'] ?? true); |
| 22 | 22 | |
| 23 | 23 | return new PHPConsoleHandler( |
@@ -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 | |
@@ -19,7 +19,7 @@ discard block |
||
| 19 | 19 | public function __invoke(array $options) |
| 20 | 20 | { |
| 21 | 21 | $publisher = $this->getService($options['publisher'] ?? mull); |
| 22 | - $level = (int) ($options['level'] ?? Logger::DEBUG); |
|
| 22 | + $level = (int) ($options['level'] ?? Logger::DEBUG); |
|
| 23 | 23 | $bubble = (boolean) ($options['bubble'] ?? true); |
| 24 | 24 | |
| 25 | 25 | return new GelfHandler( |
@@ -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 | |
@@ -16,8 +16,8 @@ discard block |
||
| 16 | 16 | public function __invoke(array $options) |
| 17 | 17 | { |
| 18 | 18 | $client = $this->getService($options['client'] ?? null); |
| 19 | - $table = $options['table'] ?? null; |
|
| 20 | - $level = (int) ($options['level'] ?? Logger::DEBUG); |
|
| 19 | + $table = $options['table'] ?? null; |
|
| 20 | + $level = (int) ($options['level'] ?? Logger::DEBUG); |
|
| 21 | 21 | $bubble = (boolean) ($options['bubble'] ?? true); |
| 22 | 22 | |
| 23 | 23 | return new DynamoDbHandler( |
@@ -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 | |
@@ -16,7 +16,7 @@ discard block |
||
| 16 | 16 | public function __invoke(array $options) |
| 17 | 17 | { |
| 18 | 18 | $logger = $this->getService($options['logger'] ?? null); |
| 19 | - $level = (int) ($options['level'] ?? Logger::DEBUG); |
|
| 19 | + $level = (int) ($options['level'] ?? Logger::DEBUG); |
|
| 20 | 20 | $bubble = (boolean) ($options['bubble'] ?? true); |
| 21 | 21 | |
| 22 | 22 | return new PsrHandler( |
@@ -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 | |
@@ -16,10 +16,10 @@ discard block |
||
| 16 | 16 | public function __invoke(array $options) |
| 17 | 17 | { |
| 18 | 18 | $client = $this->getService($options['client'] ?? []); |
| 19 | - $key = (string) ($options['key'] ?? ''); |
|
| 20 | - $level = (int) ($options['level'] ?? Logger::DEBUG); |
|
| 19 | + $key = (string) ($options['key'] ?? ''); |
|
| 20 | + $level = (int) ($options['level'] ?? Logger::DEBUG); |
|
| 21 | 21 | $bubble = (boolean) ($options['bubble'] ?? true); |
| 22 | - $capSize = (int) ($options['capSize'] ?? 0); |
|
| 22 | + $capSize = (int) ($options['capSize'] ?? 0); |
|
| 23 | 23 | |
| 24 | 24 | return new RedisHandler( |
| 25 | 25 | $client, |
@@ -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 | |
@@ -17,7 +17,7 @@ discard block |
||
| 17 | 17 | $mailer = $this->getService($options['mailer'] ?? null); |
| 18 | 18 | $message = $this->getSwiftMessage($options); |
| 19 | 19 | |
| 20 | - $level = (int) ($options['level'] ?? Logger::DEBUG); |
|
| 20 | + $level = (int) ($options['level'] ?? Logger::DEBUG); |
|
| 21 | 21 | $bubble = (boolean) ($options['bubble'] ?? true); |
| 22 | 22 | |
| 23 | 23 | return new SwiftMailerHandler($mailer, $message, $level, $bubble); |