@@ -27,7 +27,7 @@ |
||
| 27 | 27 | } |
| 28 | 28 | |
| 29 | 29 | public function getLogger(): Logger { |
| 30 | - if( empty( $this->config['handlers'] ) ){ |
|
| 30 | + if( empty( $this->config['handlers'] ) ) { |
|
| 31 | 31 | $handlers = [ $this->newHandler( $this->config ) ]; |
| 32 | 32 | } else { |
| 33 | 33 | $handlers = []; |
@@ -1,6 +1,6 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare( strict_types = 1 ); |
|
| 3 | +declare(strict_types=1); |
|
| 4 | 4 | |
| 5 | 5 | namespace WMDE\Fundraising\Frontend\Factories; |
| 6 | 6 | |
@@ -27,8 +27,8 @@ discard block |
||
| 27 | 27 | } |
| 28 | 28 | |
| 29 | 29 | public function getLogger(): Logger { |
| 30 | - if( empty( $this->config['handlers'] ) ){ |
|
| 31 | - $handlers = [ $this->newHandler( $this->config ) ]; |
|
| 30 | + if ( empty( $this->config['handlers'] ) ) { |
|
| 31 | + $handlers = [$this->newHandler( $this->config )]; |
|
| 32 | 32 | } else { |
| 33 | 33 | $handlers = []; |
| 34 | 34 | foreach ( $this->config['handlers'] as $handlerParams ) { |
@@ -47,18 +47,18 @@ discard block |
||
| 47 | 47 | return new StreamHandler( $config['url'], $config['level'] ); |
| 48 | 48 | |
| 49 | 49 | case self::TYPE_ERRBIT: |
| 50 | - if( empty( $config['projectId'] ) || empty( $config['projectKey'] ) || empty( $config['host'] ) ) { |
|
| 50 | + if ( empty( $config['projectId'] ) || empty( $config['projectKey'] ) || empty( $config['host'] ) ) { |
|
| 51 | 51 | throw new \InvalidArgumentException( 'You need to configure project ID, projectKey and host for errbit logging' ); |
| 52 | 52 | } |
| 53 | - $notifier = new \Airbrake\Notifier([ |
|
| 53 | + $notifier = new \Airbrake\Notifier( [ |
|
| 54 | 54 | 'projectId' => $config['projectId'], |
| 55 | 55 | 'projectKey' => $config['projectKey'], |
| 56 | 56 | 'host' => $config['host'] |
| 57 | - ]); |
|
| 57 | + ] ); |
|
| 58 | 58 | |
| 59 | 59 | return new SupportHandler( |
| 60 | 60 | new \Airbrake\MonologHandler( $notifier, $config['level'] ), |
| 61 | - new Logger( 'errbit errors', [ new ErrorLogHandler( ErrorLogHandler::OPERATING_SYSTEM, LogLevel::ERROR ), ] ), |
|
| 61 | + new Logger( 'errbit errors', [new ErrorLogHandler( ErrorLogHandler::OPERATING_SYSTEM, LogLevel::ERROR ), ] ), |
|
| 62 | 62 | ); |
| 63 | 63 | |
| 64 | 64 | default: |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare( strict_types = 1 ); |
|
| 3 | +declare(strict_types=1); |
|
| 4 | 4 | |
| 5 | 5 | namespace WMDE\Fundraising\Frontend\Infrastructure; |
| 6 | 6 | |