| @@ -7,4 +7,4 @@ | ||
| 7 | 7 | * @link https://github.com/XigenChris/ComodoDecodeCSR | 
| 8 | 8 | */ | 
| 9 | 9 | |
| 10 | -require __DIR__ . '/../vendor/autoload.php'; | |
| 10 | +require __DIR__.'/../vendor/autoload.php'; | |
| @@ -44,14 +44,14 @@ discard block | ||
| 44 | 44 | |
| 45 | 45 | public function testWithJustSH1() | 
| 46 | 46 |      { | 
| 47 | - $response = $this->validSHA1 . "\n"; | |
| 47 | + $response = $this->validSHA1."\n"; | |
| 48 | 48 | $test = $this->checkresponse($response); | 
| 49 | 49 | $this->assertFalse($test); | 
| 50 | 50 | } | 
| 51 | 51 | |
| 52 | 52 | public function testWithSH1AndComdoText() | 
| 53 | 53 |      { | 
| 54 | - $response = $this->validSHA1 . "\n"; | |
| 54 | + $response = $this->validSHA1."\n"; | |
| 55 | 55 | $response .= "comodoca.com\n"; | 
| 56 | 56 | $test = $this->checkresponse($response); | 
| 57 | 57 | $this->assertTrue($test); | 
| @@ -59,7 +59,7 @@ discard block | ||
| 59 | 59 | |
| 60 | 60 | public function testWithSH1AndComdoTextNoTrailingReturn() | 
| 61 | 61 |      { | 
| 62 | - $response = $this->validSHA1 . "\n"; | |
| 62 | + $response = $this->validSHA1."\n"; | |
| 63 | 63 | $response .= "comodoca.com"; | 
| 64 | 64 | $test = $this->checkresponse($response); | 
| 65 | 65 | $this->assertTrue($test); | 
| @@ -55,7 +55,7 @@ discard block | ||
| 55 | 55 |      { | 
| 56 | 56 | $CSRInfo = $this->decodeCSR(); | 
| 57 | 57 | $domain = $CSRInfo['subject']['CN']; | 
| 58 | - $URL = 'http://' . $domain . "/" . $this->getmd5() . '.txt'; | |
| 58 | + $URL = 'http://'.$domain."/".$this->getmd5().'.txt'; | |
| 59 | 59 | |
| 60 | 60 | $client = new Client(); | 
| 61 | 61 | |
| @@ -65,13 +65,13 @@ discard block | ||
| 65 | 65 | return false; | 
| 66 | 66 | } | 
| 67 | 67 | |
| 68 | - $response = "" . $request->getBody(); | |
| 68 | + $response = "".$request->getBody(); | |
| 69 | 69 | return $this->checkDVC($response); | 
| 70 | 70 | } | 
| 71 | 71 | |
| 72 | 72 | public function generateDVC() | 
| 73 | 73 |      { | 
| 74 | - $DVC = $this->getSHA1() . "\n"; | |
| 74 | + $DVC = $this->getSHA1()."\n"; | |
| 75 | 75 | $DVC .= "comodoca.com\n"; | 
| 76 | 76 | |
| 77 | 77 | return $DVC; | 
| @@ -89,7 +89,7 @@ discard block | ||
| 89 | 89 | //Check if last character is not a new line | 
| 90 | 90 |          if (substr($response, -1) !== "\n") { | 
| 91 | 91 | //Add said new line | 
| 92 | - $response = $response . "\n"; | |
| 92 | + $response = $response."\n"; | |
| 93 | 93 | } | 
| 94 | 94 | |
| 95 | 95 | //Check it again |