Completed
Push — master ( facf10...129baf )
by Chris
02:33
created
tests/Xigen/DiffrentTextfileCSRTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -44,14 +44,14 @@  discard block
 block discarded – undo
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
 block discarded – undo
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);
Please login to merge, or discard this patch.
src/ComodoDecodeCSR.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
65 65
             return false;
66 66
         }
67 67
 
68
-        $responce = "" . $request->getBody();
68
+        $responce = "".$request->getBody();
69 69
         return ($responce === $this->generateDVC());
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
 block discarded – undo
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
Please login to merge, or discard this patch.