Completed
Push — master ( b29bab...1a4aa3 )
by
unknown
02:02
created
src/Scanner/Scanner.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -103,7 +103,7 @@
 block discarded – undo
103 103
                     $result = new CheckResult(CheckResult::STATUS_SUCCESS, 'Check successful.');
104 104
                 }
105 105
             } catch (\Exception $e) {
106
-                $result = new CheckResult(CheckResult::STATUS_FAILURE, 'An error occurred: ' . $e->getMessage());
106
+                $result = new CheckResult(CheckResult::STATUS_FAILURE, 'An error occurred: '.$e->getMessage());
107 107
                 $this->eventDispatcher->simpleNotify('Scanner.CheckResponse.Rule.Error', array('checkResult' => $result, 'ruleName' => $name, 'exception' => $e));
108 108
             }
109 109
 
Please login to merge, or discard this patch.
src/Rules/Seo/GoogleMobileFriendlyRule.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
 
16 16
     private function getEndpoint(UriInterface $uri)
17 17
     {
18
-        return str_replace('#url#', urlencode((string)$uri), self::ENDPOINT);
18
+        return str_replace('#url#', urlencode((string) $uri), self::ENDPOINT);
19 19
     }
20 20
 
21 21
     public function validate(ResponseInterface $response)
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
             )));
39 39
 
40 40
         if (property_exists($result, 'error')) {
41
-            $checkResult = new CheckResult(CheckResult::STATUS_FAILURE, 'Google mobile friendly test was not passed. Error "' . $result->error->message . '"');
41
+            $checkResult = new CheckResult(CheckResult::STATUS_FAILURE, 'Google mobile friendly test was not passed. Error "'.$result->error->message.'"');
42 42
             $checkResult->addAttribute(new Attribute('Google response', json_encode($result), true));
43 43
             return $checkResult;
44 44
         }
@@ -46,10 +46,10 @@  discard block
 block discarded – undo
46 46
         $passResult = $result->ruleGroups->USABILITY;
47 47
 
48 48
         if (!$passResult->pass) {
49
-            $result = new CheckResult(CheckResult::STATUS_FAILURE, 'Google mobile friendly test was not passed. Score ' . $passResult->score . '/100.', (int)$passResult->score);
49
+            $result = new CheckResult(CheckResult::STATUS_FAILURE, 'Google mobile friendly test was not passed. Score '.$passResult->score.'/100.', (int) $passResult->score);
50 50
 
51 51
         } else {
52
-            $result = new CheckResult(CheckResult::STATUS_SUCCESS, 'Google mobile friendly test passed. Score ' . $passResult->score . '/100.', (int)$passResult->score);
52
+            $result = new CheckResult(CheckResult::STATUS_SUCCESS, 'Google mobile friendly test passed. Score '.$passResult->score.'/100.', (int) $passResult->score);
53 53
         }
54 54
 
55 55
         $result->addAttribute(new Attribute('google_result', json_encode($result), true));
Please login to merge, or discard this patch.
src/Http/GuzzleClient.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
      */
22 22
     public function init($nocache = false, $clientTimeout = 20000)
23 23
     {
24
-        $timeoutInSeconds = (int)($clientTimeout / 1000);
24
+        $timeoutInSeconds = (int) ($clientTimeout / 1000);
25 25
 
26 26
         if ($nocache) {
27 27
             $this->guzzleClient = new phmGuzzleClient(null, $timeoutInSeconds);
Please login to merge, or discard this patch.
src/Rules/Xml/Sitemap/ValidRule.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -35,13 +35,13 @@  discard block
 block discarded – undo
35 35
     private function getSchema($isIndex)
36 36
     {
37 37
         if ($isIndex) {
38
-            return __DIR__ . '/' . self::INDEX;
38
+            return __DIR__.'/'.self::INDEX;
39 39
         }
40 40
 
41 41
         if ($this->strictMode) {
42
-            return __DIR__ . '/' . self::SCHEMA;
42
+            return __DIR__.'/'.self::SCHEMA;
43 43
         } else {
44
-            return __DIR__ . '/' . self::NON_STRICT_SCHEMA;
44
+            return __DIR__.'/'.self::NON_STRICT_SCHEMA;
45 45
         }
46 46
     }
47 47
 
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
         if (!$valid) {
62 62
             $lastError = libxml_get_last_error();
63 63
             throw new ValidationFailedException(
64
-                'The given sitemap file (' . $filename . ') did not validate against the sitemap schema (last error: ' . str_replace("\n", '', $lastError->message) . ').');
64
+                'The given sitemap file ('.$filename.') did not validate against the sitemap schema (last error: '.str_replace("\n", '', $lastError->message).').');
65 65
         }
66 66
     }
67 67
 
@@ -74,9 +74,9 @@  discard block
 block discarded – undo
74 74
         $contentType = $response->getHeader('content-type');
75 75
 
76 76
         if ($response instanceof DomAwareResponse) {
77
-            $body = (string)$response->getHtmlBody();
77
+            $body = (string) $response->getHtmlBody();
78 78
         } else {
79
-            $body = (string)$response->getBody();
79
+            $body = (string) $response->getBody();
80 80
         }
81 81
 
82 82
         if (is_array($contentType) && in_array(strtolower($contentType[0]), $this->gzipContentTypes)) {
@@ -85,9 +85,9 @@  discard block
 block discarded – undo
85 85
 
86 86
         // sitemapindex or urlset
87 87
         if (preg_match('/<sitemapindex/', $body)) {
88
-            $this->validateBody($body, (string)$response->getUri());
88
+            $this->validateBody($body, (string) $response->getUri());
89 89
         } elseif (preg_match('/<urlset/', $body)) {
90
-            $this->validateBody($body, (string)$response->getUri(), false);
90
+            $this->validateBody($body, (string) $response->getUri(), false);
91 91
         } else {
92 92
             throw new ValidationFailedException('The given document is not a valid sitemap. Nether sitemapindex nor urlset element was found. ');
93 93
         }
Please login to merge, or discard this patch.