Completed
Push — develop ( 4146c2...e30e33 )
by Chris
35:42
created
tests/Xigen/Console/CreateFileTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
 
21 21
     public function setUp()
22 22
     {
23
-        register_shutdown_function(function () {
23
+        register_shutdown_function(function() {
24 24
             if (file_exists('test.csr')) {
25 25
                 unlink('test.csr');
26 26
             }
Please login to merge, or discard this patch.
tests/Xigen/Console/CheckTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
 
21 21
     public function setUp()
22 22
     {
23
-        register_shutdown_function(function () {
23
+        register_shutdown_function(function() {
24 24
             if (file_exists('test.csr')) {
25 25
                 unlink('test.csr');
26 26
             }
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
         $tester = new CommandTester($command);
63 63
 
64 64
         //Create an empty
65
-        file_put_contents('test.csr', ' ' . $this->createFakeCSR(), FILE_APPEND | LOCK_EX);
65
+        file_put_contents('test.csr', ' '.$this->createFakeCSR(), FILE_APPEND | LOCK_EX);
66 66
 
67 67
         $tester->execute([
68 68
             'csr' => 'test.csr'
Please login to merge, or discard this patch.
src/ComodoDecodeCSR.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
             return false;
86 86
         }
87 87
         //We do most of our DVC over http:// unless the site is fully SSL
88
-        $url = 'http://' . $domain . "/" . $this->getMD5() . '.txt';
88
+        $url = 'http://'.$domain."/".$this->getMD5().'.txt';
89 89
 
90 90
         $client = new Client(['allow_redirects' => false, 'verify' => false]);
91 91
 
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
 
101 101
     public function generateDVC()
102 102
     {
103
-        $DVC = $this->getSHA1() . "\n";
103
+        $DVC = $this->getSHA1()."\n";
104 104
         $DVC .= "comodoca.com\n";
105 105
 
106 106
         return $DVC;
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
      */
114 114
     public function checkDVC(Response $response)
115 115
     {
116
-        $body = $response->getBody() . '';
116
+        $body = $response->getBody().'';
117 117
         $DVC = $this->generateDVC();
118 118
 
119 119
         //Check if we received a 301 or 302 redirect
@@ -131,13 +131,13 @@  discard block
 block discarded – undo
131 131
 
132 132
         //Check if last 2 characters are new lines
133 133
         if (substr($body, -2) === "\n\n") {
134
-            $body = substr($body, 0, -2) . "\n";
134
+            $body = substr($body, 0, -2)."\n";
135 135
         }
136 136
 
137 137
         //Check if last character is not a new line
138 138
         if (substr($body, -1) !== "\n") {
139 139
             //Add said new line
140
-            $body = $body . "\n";
140
+            $body = $body."\n";
141 141
         }
142 142
 
143 143
         //Check it again
Please login to merge, or discard this patch.