@@ -2,16 +2,16 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Tylercd100\LERN\Components; |
| 4 | 4 | |
| 5 | -use Auth; |
|
| 6 | -use Throwable; |
|
| 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 Illuminate\Support\Facades\Cache; |
|
| 8 | +use Illuminate\Support\Facades\Request; |
|
| 9 | +use Monolog\Handler\HandlerInterface; |
|
| 10 | +use Monolog\Logger; |
|
| 11 | +use Throwable; |
|
| 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 | {
|
@@ -2,14 +2,14 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Tylercd100\LERN\Components; |
| 4 | 4 | |
| 5 | -use Throwable; |
|
| 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 Illuminate\Support\Facades\Auth; |
|
| 7 | +use Illuminate\Support\Facades\Cache; |
|
| 8 | +use Illuminate\Support\Facades\Request; |
|
| 9 | +use Symfony\Component\HttpKernel\Exception\HttpExceptionInterface; |
|
| 10 | +use Throwable; |
|
| 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 | |
@@ -69,7 +69,7 @@ discard block |
||
| 69 | 69 | $class = !empty($class) ? $class : ExceptionModel::class; |
| 70 | 70 | |
| 71 | 71 | $model = new $class(); |
| 72 | - foreach($opts as $key => $value) {
|
|
| 72 | + foreach ($opts as $key => $value) {
|
|
| 73 | 73 | $model->{$key} = $value;
|
| 74 | 74 | } |
| 75 | 75 | |
@@ -116,7 +116,7 @@ discard block |
||
| 116 | 116 | } |
| 117 | 117 | return $this->getStatusCode($e); |
| 118 | 118 | default: |
| 119 | - ddd();// what to do here ?????????? |
|
| 119 | + ddd(); // what to do here ?????????? |
|
| 120 | 120 | // throw new Exception("{$key} is not supported! Therefore it cannot be collected!");
|
| 121 | 121 | } |
| 122 | 122 | } |
@@ -2,11 +2,11 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Tylercd100\LERN; |
| 4 | 4 | |
| 5 | -use Throwable; |
|
| 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 Monolog\Handler\HandlerInterface; |
|
| 6 | +use Throwable; |
|
| 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 | /** |