Passed
Push — main ( f11f1e...f1cf78 )
by mohsen
06:10 queued 02:22
created
src/StethoscopeServiceProvider.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
config/stethoscope.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -92,7 +92,7 @@
 block discarded – undo
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,
Please login to merge, or discard this patch.
src/Listeners/SendResourceLogNotification.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,6 +21,6 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
routes/web.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -3,6 +3,6 @@
 block discarded – undo
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
 });
Please login to merge, or discard this patch.
src/Http/Middleware/CheckAccessToMonitoringPanel.php 1 patch
Braces   +6 added lines, -4 removed lines patch added patch discarded remove patch
@@ -8,11 +8,13 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.