@@ -66,7 +66,7 @@ discard block |
||
66 | 66 | public function checkInstalled() |
67 | 67 | { |
68 | 68 | $domain = $this->getCN(); |
69 | - $URL = 'http://' . $domain . "/" . $this->getMD5() . '.txt'; |
|
69 | + $URL = 'http://'.$domain."/".$this->getMD5().'.txt'; |
|
70 | 70 | |
71 | 71 | $client = new Client(); |
72 | 72 | |
@@ -76,13 +76,13 @@ discard block |
||
76 | 76 | return false; |
77 | 77 | } |
78 | 78 | |
79 | - $response = "" . $request->getBody(); |
|
79 | + $response = "".$request->getBody(); |
|
80 | 80 | return $this->checkDVC($response); |
81 | 81 | } |
82 | 82 | |
83 | 83 | public function generateDVC() |
84 | 84 | { |
85 | - $DVC = $this->getSHA1() . "\n"; |
|
85 | + $DVC = $this->getSHA1()."\n"; |
|
86 | 86 | $DVC .= "comodoca.com\n"; |
87 | 87 | |
88 | 88 | return $DVC; |
@@ -99,13 +99,13 @@ discard block |
||
99 | 99 | |
100 | 100 | //Check if last 2 characters are new lines |
101 | 101 | if (substr($response, -2) === "\n\n") { |
102 | - $response = substr($response, 0, -2) . "\n"; |
|
102 | + $response = substr($response, 0, -2)."\n"; |
|
103 | 103 | } |
104 | 104 | |
105 | 105 | //Check if last character is not a new line |
106 | 106 | if (substr($response, -1) !== "\n") { |
107 | 107 | //Add said new line |
108 | - $response = $response . "\n"; |
|
108 | + $response = $response."\n"; |
|
109 | 109 | } |
110 | 110 | |
111 | 111 | //Check it again |