@@ -13,7 +13,7 @@ discard block |
||
| 13 | 13 | * Creates a handler for a specified driver |
| 14 | 14 | * @param string $driver Lowercase driver string that is also in the config/lern.php file |
| 15 | 15 | * @param array $subject Title or Subject line for the notification |
| 16 | - * @return Monolog\Handler\HandlerInterface A handler to use with a Monolog\Logger instance |
|
| 16 | + * @return \Monolog\Handler\HandlerInterface A handler to use with a Monolog\Logger instance |
|
| 17 | 17 | */ |
| 18 | 18 | public function create($driver,$subject = null) |
| 19 | 19 | { |
@@ -25,7 +25,7 @@ discard block |
||
| 25 | 25 | /** |
| 26 | 26 | * Creates Pushover Monolog Handler |
| 27 | 27 | * @param array $subject Title or Subject line for the notification |
| 28 | - * @return PushoverHandler A handler to use with a Monolog\Logger instance |
|
| 28 | + * @return \Monolog\Handler\PushoverHandler A handler to use with a Monolog\Logger instance |
|
| 29 | 29 | */ |
| 30 | 30 | protected function pushover($subject) |
| 31 | 31 | { |
@@ -41,7 +41,7 @@ discard block |
||
| 41 | 41 | /** |
| 42 | 42 | * Creates Mail Monolog Handler |
| 43 | 43 | * @param array $subject Title or Subject line for the notification |
| 44 | - * @return NativeMailerHandler A handler to use with a Monolog\Logger instance |
|
| 44 | + * @return \Monolog\Handler\NativeMailerHandler A handler to use with a Monolog\Logger instance |
|
| 45 | 45 | */ |
| 46 | 46 | protected function mail($subject) |
| 47 | 47 | { |
@@ -55,8 +55,7 @@ discard block |
||
| 55 | 55 | |
| 56 | 56 | /** |
| 57 | 57 | * Creates Slack Monolog Handler |
| 58 | - * @param array $subject Title or Subject line for the notification |
|
| 59 | - * @return SlackHandler A handler to use with a Monolog\Logger instance |
|
| 58 | + * @return \Monolog\Handler\SlackHandler A handler to use with a Monolog\Logger instance |
|
| 60 | 59 | */ |
| 61 | 60 | protected function slack() |
| 62 | 61 | { |
@@ -18,8 +18,9 @@ |
||
| 18 | 18 | public function create($driver,$subject = null) |
| 19 | 19 | { |
| 20 | 20 | $this->config = config('lern.notify.'.$driver); |
| 21 | - if(is_array($this->config)) |
|
| 22 | - return $this->{$driver}($subject); |
|
| 21 | + if(is_array($this->config)) { |
|
| 22 | + return $this->{$driver}($subject); |
|
| 23 | + } |
|
| 23 | 24 | } |
| 24 | 25 | |
| 25 | 26 | /** |
@@ -21,8 +21,9 @@ discard block |
||
| 21 | 21 | */ |
| 22 | 22 | public function __construct(Notifier $notifier = null) |
| 23 | 23 | { |
| 24 | - if(empty($notifier)) |
|
| 25 | - $notifier = new Notifier(); |
|
| 24 | + if(empty($notifier)) { |
|
| 25 | + $notifier = new Notifier(); |
|
| 26 | + } |
|
| 26 | 27 | $this->notifier = $notifier; |
| 27 | 28 | } |
| 28 | 29 | |
@@ -55,8 +56,9 @@ discard block |
||
| 55 | 56 | 'trace' => $e->getTraceAsString(), |
| 56 | 57 | ]; |
| 57 | 58 | |
| 58 | - if($e instanceof HttpExceptionInterface) |
|
| 59 | - $opts['status_code'] = $e->getStatusCode(); |
|
| 59 | + if($e instanceof HttpExceptionInterface) { |
|
| 60 | + $opts['status_code'] = $e->getStatusCode(); |
|
| 61 | + } |
|
| 60 | 62 | |
| 61 | 63 | return ExceptionModel::create($opts); |
| 62 | 64 | } |