@@ -19,7 +19,7 @@ discard block |
||
| 19 | 19 | */ |
| 20 | 20 | public function register() |
| 21 | 21 | { |
| 22 | - $this->app->singleton('record', function ($app) { |
|
| 22 | + $this->app->singleton('record', function($app) { |
|
| 23 | 23 | return new LogManager($app); |
| 24 | 24 | }); |
| 25 | 25 | |
@@ -63,6 +63,6 @@ discard block |
||
| 63 | 63 | |
| 64 | 64 | $this->loadViewsFrom(__DIR__ . '/../resources/views', 'mohsenabrishami'); |
| 65 | 65 | |
| 66 | - $this->app['router']->aliasMiddleware('check.access.to.monitoring.panel', CheckAccessToMonitoringPanel::class); |
|
| 66 | + $this->app[ 'router' ]->aliasMiddleware('check.access.to.monitoring.panel', CheckAccessToMonitoringPanel::class); |
|
| 67 | 67 | } |
| 68 | 68 | } |
@@ -92,7 +92,7 @@ |
||
| 92 | 92 | 'notifications' => [ |
| 93 | 93 | |
| 94 | 94 | 'notifications' => [ |
| 95 | - \MohsenAbrishami\Stethoscope\Notifications\LogReportNotification::class => ['mail'], |
|
| 95 | + \MohsenAbrishami\Stethoscope\Notifications\LogReportNotification::class => [ 'mail' ], |
|
| 96 | 96 | ], |
| 97 | 97 | |
| 98 | 98 | 'notifiable' => \MohsenAbrishami\Stethoscope\Notifications\Notifiable::class, |
@@ -21,6 +21,6 @@ |
||
| 21 | 21 | { |
| 22 | 22 | $notifications = config('stethoscope.notifications.notifications'); |
| 23 | 23 | |
| 24 | - return array_keys($notifications)[0]; |
|
| 24 | + return array_keys($notifications)[ 0 ]; |
|
| 25 | 25 | } |
| 26 | 26 | } |
@@ -3,6 +3,6 @@ |
||
| 3 | 3 | use Illuminate\Support\Facades\Route; |
| 4 | 4 | use MohsenAbrishami\Stethoscope\Http\Controllers\MonitoringPanelController; |
| 5 | 5 | |
| 6 | -Route::middleware(['check.access.to.monitoring.panel'])->group(function () { |
|
| 7 | - Route::get('monitoring-panel', [MonitoringPanelController::class, 'index'])->name('monitoring-panel'); |
|
| 6 | +Route::middleware([ 'check.access.to.monitoring.panel' ])->group(function() { |
|
| 7 | + Route::get('monitoring-panel', [ MonitoringPanelController::class, 'index' ])->name('monitoring-panel'); |
|
| 8 | 8 | }); |
@@ -8,11 +8,13 @@ |
||
| 8 | 8 | { |
| 9 | 9 | public function handle($request, Closure $next) |
| 10 | 10 | { |
| 11 | - if (!config('stethoscope.monitoring_panel.status')) |
|
| 12 | - abort(404); |
|
| 11 | + if (!config('stethoscope.monitoring_panel.status')) { |
|
| 12 | + abort(404); |
|
| 13 | + } |
|
| 13 | 14 | |
| 14 | - if (config('stethoscope.monitoring_panel.key') && request()->get('key') != config('stethoscope.monitoring_panel.key')) |
|
| 15 | - abort(404); |
|
| 15 | + if (config('stethoscope.monitoring_panel.key') && request()->get('key') != config('stethoscope.monitoring_panel.key')) { |
|
| 16 | + abort(404); |
|
| 17 | + } |
|
| 16 | 18 | |
| 17 | 19 | return $next($request); |
| 18 | 20 | } |