Completed
Pull Request — master (#1694)
by Gabriel
83:42 queued 18:39
created
src/Factories/LoggerFactory.php 2 patches
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
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 = [];
Please login to merge, or discard this patch.
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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:
Please login to merge, or discard this patch.
src/Infrastructure/SupportHandler.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.