@@ -33,7 +33,7 @@ discard block |
||
| 33 | 33 | } |
| 34 | 34 | |
| 35 | 35 | /** |
| 36 | - * @return IErrorHandler¨ |
|
| 36 | + * @return IErrorHandler |
|
| 37 | 37 | */ |
| 38 | 38 | public function getErrorHandler() { |
| 39 | 39 | return $this->errorHandler; |
@@ -81,7 +81,7 @@ discard block |
||
| 81 | 81 | /** |
| 82 | 82 | * @param IError $error |
| 83 | 83 | * |
| 84 | - * @return bool |
|
| 84 | + * @return boolean|null |
|
| 85 | 85 | */ |
| 86 | 86 | public function handleError(IError $error) { |
| 87 | 87 | $this->bugsnagClient->errorHandler( |
@@ -95,7 +95,7 @@ discard block |
||
| 95 | 95 | /** |
| 96 | 96 | * @param Exception $exception |
| 97 | 97 | * |
| 98 | - * @return bool |
|
| 98 | + * @return boolean|null |
|
| 99 | 99 | */ |
| 100 | 100 | public function handleException(Exception $exception) { |
| 101 | 101 | $this->bugsnagClient->exceptionHandler($exception); |
@@ -65,7 +65,7 @@ discard block |
||
| 65 | 65 | */ |
| 66 | 66 | public function enableErrorHandling() { |
| 67 | 67 | $this->errorHandler->addErrorHandler( |
| 68 | - [$this, 'handleError'] |
|
| 68 | + [ $this, 'handleError' ] |
|
| 69 | 69 | ); |
| 70 | 70 | } |
| 71 | 71 | |
@@ -74,7 +74,7 @@ discard block |
||
| 74 | 74 | */ |
| 75 | 75 | public function enableExceptionHandling() { |
| 76 | 76 | $this->errorHandler->addExceptionHandler( |
| 77 | - [$this, 'handleException'] |
|
| 77 | + [ $this, 'handleException' ] |
|
| 78 | 78 | ); |
| 79 | 79 | } |
| 80 | 80 | |
@@ -15,7 +15,7 @@ |
||
| 15 | 15 | */ |
| 16 | 16 | public function __construct(IContainer $container) { |
| 17 | 17 | $container->set(IBugsnagErrorHandlerConfig::class, BugsnagErrorHandlerConfig::class); |
| 18 | - $container->set(BugsnagErrorHandler::class, [$this, 'createBugsnagErrorHandler'])->singleton(); |
|
| 18 | + $container->set(BugsnagErrorHandler::class, [ $this, 'createBugsnagErrorHandler' ])->singleton(); |
|
| 19 | 19 | } |
| 20 | 20 | |
| 21 | 21 | /** |
@@ -54,7 +54,7 @@ discard block |
||
| 54 | 54 | * |
| 55 | 55 | * @return array |
| 56 | 56 | */ |
| 57 | - public function getEnabledEnvironments($default = ['stage', 'prod']) { |
|
| 57 | + public function getEnabledEnvironments($default = [ 'stage', 'prod' ]) { |
|
| 58 | 58 | return $this->config->get(self::ENABLED_ENVIRONMENTS, $default); |
| 59 | 59 | } |
| 60 | 60 | |
@@ -81,7 +81,7 @@ discard block |
||
| 81 | 81 | * |
| 82 | 82 | * @return array |
| 83 | 83 | */ |
| 84 | - public function getMetadata(array $default = []) { |
|
| 84 | + public function getMetadata(array $default = [ ]) { |
|
| 85 | 85 | return $this->config->get(self::METADATA, $default); |
| 86 | 86 | } |
| 87 | 87 | |
@@ -90,7 +90,7 @@ discard block |
||
| 90 | 90 | * |
| 91 | 91 | * @return mixed |
| 92 | 92 | */ |
| 93 | - public function getFilters(array $default = ['credit_card', 'password']) { |
|
| 93 | + public function getFilters(array $default = [ 'credit_card', 'password' ]) { |
|
| 94 | 94 | return $this->config->get(self::FILTERS, $default); |
| 95 | 95 | } |
| 96 | 96 | |