Completed
Push — master ( 13acd2...446f84 )
by Nils
01:52
created
src/Rules/Html/ClosingHtmlTagRule.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -16,8 +16,8 @@
 block discarded – undo
16 16
     {
17 17
         if ($response instanceof ContentTypeAwareResponse) {
18 18
             if (($response->getStatusCode() < 300 || $response->getStatusCode() >= 400) && $response->getContentType() === 'text/html') {
19
-                if (stripos((string)$response->getBody(), '</html>') === false) {
20
-                    throw new ValidationFailedException('Closing html tag is missing (document length: ' . strlen((string)$response->getBody()) . ').');
19
+                if (stripos((string) $response->getBody(), '</html>') === false) {
20
+                    throw new ValidationFailedException('Closing html tag is missing (document length: '.strlen((string) $response->getBody()).').');
21 21
                 }
22 22
             }
23 23
         }
Please login to merge, or discard this patch.
src/Extensions/SmokeMemory/MemoryExtension.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
         foreach ($results as $result) {
36 36
             /** @var UriAwareResponse $response */
37 37
             if ($result->getStatus() == CheckResult::STATUS_FAILURE) {
38
-                $this->memory[] = (string)$response->getUri();
38
+                $this->memory[] = (string) $response->getUri();
39 39
             }
40 40
         }
41 41
     }
Please login to merge, or discard this patch.
src/Rules/Http/RedirectRule.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -31,23 +31,23 @@
 block discarded – undo
31 31
             $uri = new Uri($url['url']);
32 32
 
33 33
             $urlResponses = $client->sendRequests([new Request('GET', $uri)]);
34
-            $effectiveUrl = (string)$urlResponses[0]->getEffectiveUri();
34
+            $effectiveUrl = (string) $urlResponses[0]->getEffectiveUri();
35 35
 
36
-            if ($effectiveUrl != (string)$response->getUri()) {
37
-                $errors[] = 'The url "' . $url['url'] . '" gets redirected to "' . $effectiveUrl . '".';
36
+            if ($effectiveUrl != (string) $response->getUri()) {
37
+                $errors[] = 'The url "'.$url['url'].'" gets redirected to "'.$effectiveUrl.'".';
38 38
             }
39 39
         }
40 40
 
41 41
         if (count($errors) > 0) {
42
-            $message = 'Not all given urls do redirect to "' . (string)$response->getUri() . '"".<ul>';
42
+            $message = 'Not all given urls do redirect to "'.(string) $response->getUri().'"".<ul>';
43 43
             foreach ($errors as $error) {
44
-                $message .= '<li>' . $error . '</li>';
44
+                $message .= '<li>'.$error.'</li>';
45 45
             }
46 46
             $message .= "</ul>";
47 47
 
48 48
             return new CheckResult(CheckResult::STATUS_FAILURE, $message);
49 49
         } else {
50
-            return new CheckResult(CheckResult::STATUS_SUCCESS, 'All given urls redirect to ' . (string)$response->getUri());
50
+            return new CheckResult(CheckResult::STATUS_SUCCESS, 'All given urls redirect to '.(string) $response->getUri());
51 51
         }
52 52
     }
53 53
 }
Please login to merge, or discard this patch.