@@ -54,7 +54,7 @@ discard block |
||
54 | 54 | { |
55 | 55 | $CSRInfo = $this->decodeCSR(); |
56 | 56 | $domain = $CSRInfo['subject']['CN']; |
57 | - $URL = 'http://' . $domain . "/" . $this->getmd5() . '.txt'; |
|
57 | + $URL = 'http://'.$domain."/".$this->getmd5().'.txt'; |
|
58 | 58 | |
59 | 59 | $client = new Client(); |
60 | 60 | |
@@ -64,13 +64,13 @@ discard block |
||
64 | 64 | return false; |
65 | 65 | } |
66 | 66 | |
67 | - $responce = "" . $request->getBody(); |
|
67 | + $responce = "".$request->getBody(); |
|
68 | 68 | return $this->checkDVC($responce); |
69 | 69 | } |
70 | 70 | |
71 | 71 | public function generateDVC() |
72 | 72 | { |
73 | - $DVC = $this->getSHA1() . "\n"; |
|
73 | + $DVC = $this->getSHA1()."\n"; |
|
74 | 74 | $DVC .= "comodoca.com\n"; |
75 | 75 | |
76 | 76 | return $DVC; |
@@ -81,7 +81,7 @@ discard block |
||
81 | 81 | $DVC = $this->generateDVC(); |
82 | 82 | |
83 | 83 | //If the responce matches the DVC value return true |
84 | - if($responce === $DVC){ |
|
84 | + if ($responce === $DVC) { |
|
85 | 85 | return true; |
86 | 86 | } |
87 | 87 | |
@@ -89,11 +89,11 @@ discard block |
||
89 | 89 | if (substr($responce, -1) != "\n") |
90 | 90 | { |
91 | 91 | //Add said new line |
92 | - $responce = $responce . "\n"; |
|
92 | + $responce = $responce."\n"; |
|
93 | 93 | } |
94 | 94 | |
95 | 95 | //Check it again |
96 | - if($responce === $DVC){ |
|
96 | + if ($responce === $DVC) { |
|
97 | 97 | return true; |
98 | 98 | } |
99 | 99 |
@@ -44,14 +44,14 @@ discard block |
||
44 | 44 | |
45 | 45 | public function testWithJustSH1() |
46 | 46 | { |
47 | - $responce = $this->validSHA1 . "\n"; |
|
47 | + $responce = $this->validSHA1."\n"; |
|
48 | 48 | $test = $this->checkResponce($responce); |
49 | 49 | $this->assertFalse($test); |
50 | 50 | } |
51 | 51 | |
52 | 52 | public function testWithSH1AndComdoText() |
53 | 53 | { |
54 | - $responce = $this->validSHA1 . "\n"; |
|
54 | + $responce = $this->validSHA1."\n"; |
|
55 | 55 | $responce .= "comodoca.com\n"; |
56 | 56 | $test = $this->checkResponce($responce); |
57 | 57 | $this->assertTrue($test); |
@@ -59,7 +59,7 @@ discard block |
||
59 | 59 | |
60 | 60 | public function testWithSH1AndComdoTextNoTrailingReturn() |
61 | 61 | { |
62 | - $responce = $this->validSHA1 . "\n"; |
|
62 | + $responce = $this->validSHA1."\n"; |
|
63 | 63 | $responce .= "comodoca.com"; |
64 | 64 | $test = $this->checkResponce($responce); |
65 | 65 | $this->assertTrue($test); |