]> BookStack Code Mirror - bookstack/commitdiff
Applied latest styleCI changes
authorDan Brown <redacted>
Wed, 9 Mar 2022 14:30:36 +0000 (14:30 +0000)
committerDan Brown <redacted>
Wed, 9 Mar 2022 14:30:36 +0000 (14:30 +0000)
app/Util/CspService.php
tests/SecurityHeaderTest.php

index ba927c93b29556b8949fd365aca6892f8fa10eb4..f9ab666acb79c6b9726bd6de7bf84b744f40092e 100644 (file)
@@ -22,7 +22,7 @@ class CspService
     }
 
     /**
-     * Get the CSP headers for the application
+     * Get the CSP headers for the application.
      */
     public function getCspHeader(): string
     {
@@ -86,6 +86,7 @@ class CspService
     {
         $iframeHosts = $this->getAllowedIframeHosts();
         array_unshift($iframeHosts, "'self'");
+
         return 'frame-ancestors ' . implode(' ', $iframeHosts);
     }
 
@@ -97,6 +98,7 @@ class CspService
     {
         $iframeHosts = $this->getAllowedIframeSources();
         array_unshift($iframeHosts, "'self'");
+
         return 'frame-src ' . implode(' ', $iframeHosts);
     }
 
index 1a0a6c9b3a1ad4b1fd964d547b2218848de4f984..d8ba5873fb85905c0afd00d2ec63a5ec09af3c19 100644 (file)
@@ -130,7 +130,7 @@ class SecurityHeaderTest extends TestCase
     {
         config()->set([
             'app.iframe_sources' => 'https://example.com',
-            'services.drawio'   => 'https://diagrams.example.com/testing?cat=dog',
+            'services.drawio'    => 'https://diagrams.example.com/testing?cat=dog',
         ]);
 
         $resp = $this->get('/');