diff --git a/migrations/2016_03_17_000000_create_lern_tables.php b/migrations/2016_03_17_000000_create_lern_tables.php index e6381e7..f7e12cf 100644 --- a/migrations/2016_03_17_000000_create_lern_tables.php +++ b/migrations/2016_03_17_000000_create_lern_tables.php @@ -1,7 +1,7 @@ notifier = $notifier; } @@ -55,8 +56,9 @@ public function record(Exception $e) 'trace' => $e->getTraceAsString(), ]; - if ($e instanceof HttpExceptionInterface) - $opts['status_code'] = $e->getStatusCode(); + if ($e instanceof HttpExceptionInterface) { + $opts['status_code'] = $e->getStatusCode(); + } return ExceptionModel::create($opts); } @@ -77,7 +79,7 @@ public function notify(Exception $e) * @param HandlerInterface $handler The handler instance to add on * @return Notifier Returns this */ - public function pushHandler(HandlerInterface $handler){ + public function pushHandler(HandlerInterface $handler) { $this->notifier->pushHandler($handler); return $this; } diff --git a/src/Notifications/MonologHandlerFactory.php b/src/Notifications/MonologHandlerFactory.php index 70749ab..34132e9 100644 --- a/src/Notifications/MonologHandlerFactory.php +++ b/src/Notifications/MonologHandlerFactory.php @@ -18,8 +18,9 @@ class MonologHandlerFactory { public function create($driver, $subject = null) { $this->config = config('lern.notify.' . $driver); - if (is_array($this->config)) - return $this->{$driver}($subject); + if (is_array($this->config)) { + return $this->{$driver}($subject); + } } /** diff --git a/src/Notifications/Notifier.php b/src/Notifications/Notifier.php index d36332f..0d8b0a2 100644 --- a/src/Notifications/Notifier.php +++ b/src/Notifications/Notifier.php @@ -3,8 +3,8 @@ namespace Tylercd100\LERN\Notifications; use Exception; -use Monolog\Logger; use Monolog\Handler\HandlerInterface; +use Monolog\Logger; use Tylercd100\LERN\Notifications\MonologHandlerFactory; class Notifier {