]> BookStack Code Mirror - bookstack/blobdiff - app/Http/Middleware/ControlIframeSecurity.php
Apply fixes from StyleCI
[bookstack] / app / Http / Middleware / ControlIframeSecurity.php
index cc8034413b8ed3651c66ab7df202521c8d62253d..11d9e6d4c5a2b84ce47786306c07c450c30f9c53 100644 (file)
@@ -3,7 +3,6 @@
 namespace BookStack\Http\Middleware;
 
 use Closure;
-use Symfony\Component\HttpFoundation\Response;
 
 /**
  * Sets CSP headers to restrict the hosts that BookStack can be
@@ -15,8 +14,9 @@ class ControlIframeSecurity
     /**
      * Handle an incoming request.
      *
-     * @param  \Illuminate\Http\Request  $request
-     * @param  \Closure  $next
+     * @param \Illuminate\Http\Request $request
+     * @param \Closure                 $next
+     *
      * @return mixed
      */
     public function handle($request, Closure $next)
@@ -31,6 +31,7 @@ class ControlIframeSecurity
         $response = $next($request);
         $cspValue = 'frame-ancestors ' . $iframeHosts->join(' ');
         $response->headers->set('Content-Security-Policy', $cspValue);
+
         return $response;
     }
 }