Completed
Push — master ( b0d378...3d9ae5 )
by Nils
04:12
created
src/Rules/Html/ClosingHtmlTagRule.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@  discard block
 block discarded – undo
16 16
     {
17 17
         if ($response instanceof ContentTypeAwareResponse) {
18 18
 
19
-            $body = (string)$response->getBody();
19
+            $body = (string) $response->getBody();
20 20
             $body = preg_replace('/[\x00-\x09\x0B\x0C\x0E-\x1F\x7F,\xFF,\x8B]/', '', $body);
21 21
 
22 22
             if (($response->getStatusCode() < 300 || $response->getStatusCode() >= 400)
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
                 && strlen($body) > 0
25 25
             ) {
26 26
                 if (stripos($body, '</html>') === false) {
27
-                    throw new ValidationFailedException('Closing html tag is missing (document length: ' . strlen($body) . ').');
27
+                    throw new ValidationFailedException('Closing html tag is missing (document length: '.strlen($body).').');
28 28
                 }
29 29
             }
30 30
         }
Please login to merge, or discard this patch.