Passed
Push — main ( f11f1e...f1cf78 )
by mohsen
06:10 queued 02:22
created
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.