@@ -80,7 +80,7 @@ discard block |
||
| 80 | 80 | { |
| 81 | 81 | $domain = $this->getCN(); |
| 82 | 82 | //We do most of our DVC over http:// unless the site is fully SSL |
| 83 | - $URL = 'http://' . $domain . "/" . $this->getMD5() . '.txt'; |
|
| 83 | + $URL = 'http://'.$domain."/".$this->getMD5().'.txt'; |
|
| 84 | 84 | |
| 85 | 85 | $client = new Client(['allow_redirects' => false, 'verify' => false]); |
| 86 | 86 | |
@@ -95,7 +95,7 @@ discard block |
||
| 95 | 95 | |
| 96 | 96 | public function generateDVC() |
| 97 | 97 | { |
| 98 | - $DVC = $this->getSHA1() . "\n"; |
|
| 98 | + $DVC = $this->getSHA1()."\n"; |
|
| 99 | 99 | $DVC .= "comodoca.com\n"; |
| 100 | 100 | |
| 101 | 101 | return $DVC; |
@@ -108,7 +108,7 @@ discard block |
||
| 108 | 108 | */ |
| 109 | 109 | public function checkDVC(Response $response) |
| 110 | 110 | { |
| 111 | - $body = $response->getBody() . ''; |
|
| 111 | + $body = $response->getBody().''; |
|
| 112 | 112 | $DVC = $this->generateDVC(); |
| 113 | 113 | |
| 114 | 114 | //Check if we received a 301 or 302 redirect |
@@ -126,13 +126,13 @@ discard block |
||
| 126 | 126 | |
| 127 | 127 | //Check if last 2 characters are new lines |
| 128 | 128 | if (substr($body, -2) === "\n\n") { |
| 129 | - $body = substr($body, 0, -2) . "\n"; |
|
| 129 | + $body = substr($body, 0, -2)."\n"; |
|
| 130 | 130 | } |
| 131 | 131 | |
| 132 | 132 | //Check if last character is not a new line |
| 133 | 133 | if (substr($body, -1) !== "\n") { |
| 134 | 134 | //Add said new line |
| 135 | - $body = $body . "\n"; |
|
| 135 | + $body = $body."\n"; |
|
| 136 | 136 | } |
| 137 | 137 | |
| 138 | 138 | //Check it again |