Passed
Pull Request — master (#6)
by
unknown
02:42
created
src/Middleware/SecurityHeaderMiddleware.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
134 134
      */
135 135
     public function disableCSP()
136 136
     {
137
-        if (SiteConfig::current_site_config()->CSPReportingOnly == '3'){
137
+        if (SiteConfig::current_site_config()->CSPReportingOnly == '3') {
138 138
             return true;
139 139
         }
140 140
 
@@ -148,7 +148,7 @@  discard block
 block discarded – undo
148 148
      */
149 149
     public function disableReporting()
150 150
     {
151
-        if (SiteConfig::current_site_config()->CSPReportingOnly == '2'){
151
+        if (SiteConfig::current_site_config()->CSPReportingOnly == '2') {
152 152
             return true;
153 153
         }
154 154
 
@@ -210,7 +210,7 @@  discard block
 block discarded – undo
210 210
             'max_age' => 1800,
211 211
             'endpoints' => [[
212 212
                 'url' => $this->getReportURI(),
213
-            ],],
213
+            ], ],
214 214
             'include_subdomains' => $this->getIncludeSubdomains(),
215 215
         ];
216 216
         return json_encode($header);
Please login to merge, or discard this patch.