@@ -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 | } |