Completed
Push — develop ( 3b8721...9b6358 )
by Chris
02:45
created
src/ComodoDecodeCSR.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
Please login to merge, or discard this patch.