@@ -41,7 +41,7 @@ |
||
41 | 41 | if (is_callable($cb)) { |
42 | 42 | return $cb; |
43 | 43 | } else { |
44 | - return function () use ($cb) { return $cb; }; |
|
44 | + return function() use ($cb) { return $cb; }; |
|
45 | 45 | } |
46 | 46 | } |
47 | 47 |
@@ -194,7 +194,7 @@ |
||
194 | 194 | /** |
195 | 195 | * Set the log level |
196 | 196 | * @param string $level The log level |
197 | - * @return \Tylercd100\LERN\LERN |
|
197 | + * @return Notifier |
|
198 | 198 | */ |
199 | 199 | public function setLogLevel($level) |
200 | 200 | { |
@@ -2,16 +2,16 @@ |
||
2 | 2 | |
3 | 3 | namespace Tylercd100\LERN\Components; |
4 | 4 | |
5 | -use Auth; |
|
6 | -use Exception; |
|
7 | -use Illuminate\Support\Facades\Request; |
|
8 | -use Illuminate\Support\Facades\Cache; |
|
9 | -use Monolog\Handler\HandlerInterface; |
|
10 | -use Monolog\Logger; |
|
11 | -use Tylercd100\LERN\Exceptions\NotifierFailedException; |
|
12 | -use Tylercd100\Notify\Drivers\FromConfig as Notify; |
|
5 | +use Auth; |
|
6 | +use Carbon\Carbon; |
|
7 | +use Exception; |
|
8 | +use Illuminate\Support\Facades\Cache; |
|
9 | +use Illuminate\Support\Facades\Request; |
|
10 | +use Monolog\Handler\HandlerInterface; |
|
11 | +use Monolog\Logger; |
|
12 | +use Tylercd100\LERN\Exceptions\NotifierFailedException; |
|
13 | +use Tylercd100\Notify\Drivers\FromConfig as Notify; |
|
13 | 14 | use View; |
14 | -use Carbon\Carbon; |
|
15 | 15 | |
16 | 16 | class Notifier extends Component |
17 | 17 | { |
@@ -12,7 +12,7 @@ |
||
12 | 12 | |
13 | 13 | $this->handleDeprecatedConfigValues(); |
14 | 14 | |
15 | - $this->app->singleton('lern', function () { |
|
15 | + $this->app->singleton('lern', function() { |
|
16 | 16 | return new LERN; |
17 | 17 | }); |
18 | 18 | } |
@@ -2,11 +2,11 @@ |
||
2 | 2 | |
3 | 3 | namespace Tylercd100\LERN; |
4 | 4 | |
5 | -use Exception; |
|
6 | -use Monolog\Handler\HandlerInterface; |
|
7 | -use Tylercd100\LERN\Components\Notifier; |
|
8 | -use Tylercd100\LERN\Components\Recorder; |
|
9 | -use Tylercd100\LERN\Exceptions\NotifierFailedException; |
|
5 | +use Exception; |
|
6 | +use Monolog\Handler\HandlerInterface; |
|
7 | +use Tylercd100\LERN\Components\Notifier; |
|
8 | +use Tylercd100\LERN\Components\Recorder; |
|
9 | +use Tylercd100\LERN\Exceptions\NotifierFailedException; |
|
10 | 10 | use Tylercd100\LERN\Exceptions\RecorderFailedException; |
11 | 11 | |
12 | 12 | /** |
@@ -70,7 +70,7 @@ |
||
70 | 70 | $class = !empty($class) ? $class : ExceptionModel::class; |
71 | 71 | |
72 | 72 | $model = new $class(); |
73 | - foreach($opts as $key => $value) { |
|
73 | + foreach ($opts as $key => $value) { |
|
74 | 74 | $model->{$key} = $value; |
75 | 75 | } |
76 | 76 |
@@ -2,14 +2,14 @@ |
||
2 | 2 | |
3 | 3 | namespace Tylercd100\LERN\Components; |
4 | 4 | |
5 | -use Exception; |
|
6 | -use Illuminate\Support\Facades\Auth; |
|
7 | -use Illuminate\Support\Facades\Request; |
|
8 | -use Illuminate\Support\Facades\Cache; |
|
9 | -use Symfony\Component\HttpKernel\Exception\HttpExceptionInterface; |
|
10 | -use Tylercd100\LERN\Exceptions\RecorderFailedException; |
|
5 | +use Carbon\Carbon; |
|
6 | +use Exception; |
|
7 | +use Illuminate\Support\Facades\Auth; |
|
8 | +use Illuminate\Support\Facades\Cache; |
|
9 | +use Illuminate\Support\Facades\Request; |
|
10 | +use Symfony\Component\HttpKernel\Exception\HttpExceptionInterface; |
|
11 | +use Tylercd100\LERN\Exceptions\RecorderFailedException; |
|
11 | 12 | use Tylercd100\LERN\Models\ExceptionModel; |
12 | -use Carbon\Carbon; |
|
13 | 13 | |
14 | 14 | class Recorder extends Component { |
15 | 15 |