Completed
Push — master ( b211f5...44c82e )
by Nils
02:04
created
src/Http/ChromeClient.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -2,8 +2,6 @@
 block discarded – undo
2 2
 
3 3
 namespace whm\Smoke\Http;
4 4
 
5
-use Monolog\Handler\StreamHandler;
6
-use Monolog\Logger;
7 5
 use phm\HttpWebdriverClient\Http\Client\Chrome\ChromeClient as phmChromeClient;
8 6
 use phm\HttpWebdriverClient\Http\Client\Decorator\FileCacheDecorator;
9 7
 use phm\HttpWebdriverClient\Http\Client\Decorator\LoggerDecorator;
Please login to merge, or discard this patch.
src/Rules/Xml/Rss/ValidRule.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -21,12 +21,12 @@  discard block
 block discarded – undo
21 21
 
22 22
     private function getSchema()
23 23
     {
24
-        return __DIR__ . '/' . self::SCHEMA;
24
+        return __DIR__.'/'.self::SCHEMA;
25 25
     }
26 26
 
27 27
     public function doValidation(ResponseInterface $response)
28 28
     {
29
-        $body = (string)$response->getBody();
29
+        $body = (string) $response->getBody();
30 30
 
31 31
         if (preg_match('/<rss/', $body)) {
32 32
             libxml_clear_errors();
@@ -35,8 +35,8 @@  discard block
 block discarded – undo
35 35
             $lastError = libxml_get_last_error();
36 36
             if ($lastError) {
37 37
                 throw new ValidationFailedException(
38
-                    'The given xml file is not well formed (last error: ' .
39
-                    str_replace("\n", '', $lastError->message) . ').');
38
+                    'The given xml file is not well formed (last error: '.
39
+                    str_replace("\n", '', $lastError->message).').');
40 40
             }
41 41
             $valid = @$dom->schemaValidate($this->getSchema());
42 42
             if (!$valid) {
@@ -44,11 +44,11 @@  discard block
 block discarded – undo
44 44
                 $lastErrorMessage = str_replace("\n", '', $lastError->message);
45 45
 
46 46
                 if ($response instanceof UriAwareResponse) {
47
-                    $toolUrl = sprintf(self::PUBLIC_SERVICE, urlencode((string)$response->getUri()));
47
+                    $toolUrl = sprintf(self::PUBLIC_SERVICE, urlencode((string) $response->getUri()));
48 48
                 } else {
49 49
                     $toolUrl = '';
50 50
                 }
51
-                return new CheckResult(CheckResult::STATUS_FAILURE, 'The given xml file is not a valid rss file (last error: ' . $lastErrorMessage . ').', null, $toolUrl);
51
+                return new CheckResult(CheckResult::STATUS_FAILURE, 'The given xml file is not a valid rss file (last error: '.$lastErrorMessage.').', null, $toolUrl);
52 52
             }
53 53
         }
54 54
         return new CheckResult(CheckResult::STATUS_SUCCESS, 'The given rss file is valid.');
Please login to merge, or discard this patch.