@@ -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);  | 
                                                        
@@ -67,7 +67,7 @@ discard block  | 
                                                    ||
| 67 | 67 | |
| 68 | 68 | public function testWithSH1AndComdoTextAndNewLine()  | 
                                                        
| 69 | 69 |      { | 
                                                        
| 70 | - $response = $this->validSHA1 . "\n";  | 
                                                        |
| 70 | + $response = $this->validSHA1."\n";  | 
                                                        |
| 71 | 71 | $response .= "comodoca.com\n\n";  | 
                                                        
| 72 | 72 | $test = $this->checkresponse($response);  | 
                                                        
| 73 | 73 | $this->assertTrue($test);  | 
                                                        
@@ -54,7 +54,7 @@ discard block  | 
                                                    ||
| 54 | 54 | public function checkInstalled()  | 
                                                        
| 55 | 55 |      { | 
                                                        
| 56 | 56 | $domain = $this->getCN();  | 
                                                        
| 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 | - $response = "" . $request->getBody();  | 
                                                        |
| 67 | + $response = "".$request->getBody();  | 
                                                        |
| 68 | 68 | return $this->checkDVC($response);  | 
                                                        
| 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;  | 
                                                        
@@ -87,13 +87,13 @@ discard block  | 
                                                    ||
| 87 | 87 | |
| 88 | 88 | //Check if last 2 characters are new lines  | 
                                                        
| 89 | 89 |          if (substr($response, -2) === "\n\n") { | 
                                                        
| 90 | - $response = substr($response, 0, -2) . "\n";  | 
                                                        |
| 90 | + $response = substr($response, 0, -2)."\n";  | 
                                                        |
| 91 | 91 | }  | 
                                                        
| 92 | 92 | |
| 93 | 93 | //Check if last character is not a new line  | 
                                                        
| 94 | 94 |          if (substr($response, -1) !== "\n") { | 
                                                        
| 95 | 95 | //Add said new line  | 
                                                        
| 96 | - $response = $response . "\n";  | 
                                                        |
| 96 | + $response = $response."\n";  | 
                                                        |
| 97 | 97 | }  | 
                                                        
| 98 | 98 | |
| 99 | 99 | //Check it again  | 
                                                        
@@ -33,7 +33,7 @@  | 
                                                    ||
| 33 | 33 |      { | 
                                                        
| 34 | 34 |          $csrFile = $input->getArgument('csr'); | 
                                                        
| 35 | 35 |          if (!file_exists($csrFile)) { | 
                                                        
| 36 | -            $output->writeln('<error>Unable to load '. $csrFile .'</error>'); | 
                                                        |
| 36 | +            $output->writeln('<error>Unable to load '.$csrFile.'</error>'); | 
                                                        |
| 37 | 37 |              $output->writeln('<error>Please check the path and try again</error>'); | 
                                                        
| 38 | 38 | return false;  | 
                                                        
| 39 | 39 | }  |