@@ -126,7 +126,7 @@ |
||
| 126 | 126 | |
| 127 | 127 | /** |
| 128 | 128 | * |
| 129 | - * @param GuzzleHttp\Psr7\Response $response |
|
| 129 | + * @param Response $response |
|
| 130 | 130 | * @return bool |
| 131 | 131 | */ |
| 132 | 132 | public function checkDVC(Response $response) |
@@ -118,7 +118,7 @@ discard block |
||
| 118 | 118 | |
| 119 | 119 | public function generateDVC() |
| 120 | 120 | { |
| 121 | - $DVC = $this->getSHA1() . "\n"; |
|
| 121 | + $DVC = $this->getSHA1()."\n"; |
|
| 122 | 122 | $DVC .= "comodoca.com\n"; |
| 123 | 123 | |
| 124 | 124 | return $DVC; |
@@ -131,7 +131,7 @@ discard block |
||
| 131 | 131 | */ |
| 132 | 132 | public function checkDVC(Response $response) |
| 133 | 133 | { |
| 134 | - $body = $response->getBody() . ''; |
|
| 134 | + $body = $response->getBody().''; |
|
| 135 | 135 | $DVC = $this->generateDVC(); |
| 136 | 136 | |
| 137 | 137 | //Check if we received a 301 or 302 redirect |
@@ -146,13 +146,13 @@ discard block |
||
| 146 | 146 | |
| 147 | 147 | //Check if last 2 characters are new lines |
| 148 | 148 | if (substr($body, -2) === "\n\n") { |
| 149 | - $body = substr($body, 0, -2) . "\n"; |
|
| 149 | + $body = substr($body, 0, -2)."\n"; |
|
| 150 | 150 | } |
| 151 | 151 | |
| 152 | 152 | //Check if last character is not a new line |
| 153 | 153 | if (substr($body, -1) !== "\n") { |
| 154 | 154 | //Add said new line |
| 155 | - $body = $body . "\n"; |
|
| 155 | + $body = $body."\n"; |
|
| 156 | 156 | } |
| 157 | 157 | |
| 158 | 158 | var_dump($body, $DVC); |
@@ -213,7 +213,7 @@ discard block |
||
| 213 | 213 | $protocol = 'https://'; |
| 214 | 214 | } |
| 215 | 215 | |
| 216 | - $url = $protocol . $domain . "/" . $this->getMD5() . '.txt'; |
|
| 216 | + $url = $protocol.$domain."/".$this->getMD5().'.txt'; |
|
| 217 | 217 | |
| 218 | 218 | $client = new Client(['allow_redirects' => false, 'verify' => false]); |
| 219 | 219 | |