Completed
Push — develop ( 3b8721...9b6358 )
by Chris
02:45
created
tests/bootstrap.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -7,4 +7,4 @@
 block discarded – undo
7 7
  * @link       https://github.com/XigenChris/ComodoDecodeCSR
8 8
  */
9 9
 
10
-require __DIR__ . '/../vendor/autoload.php';
10
+require __DIR__.'/../vendor/autoload.php';
Please login to merge, or discard this patch.
tests/Xigen/DiffrentTextfileCSRTest.php 1 patch
Spacing   +4 added lines, -4 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);
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
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);
Please login to merge, or discard this patch.
src/Console/BaseCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
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
         }
Please login to merge, or discard this patch.
src/Console/Hashes.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -36,8 +36,8 @@
 block discarded – undo
36 36
         $hashes = $comodoDecodeCSR->fetchHashes();
37 37
 
38 38
         if ($hashes) {
39
-            $output->writeln('<info>MD5</info> ' . $hashes['md5']);
40
-            $output->writeln('<info>SHA1</info> ' . $hashes['sha1']);
39
+            $output->writeln('<info>MD5</info> '.$hashes['md5']);
40
+            $output->writeln('<info>SHA1</info> '.$hashes['sha1']);
41 41
 
42 42
             return 0;
43 43
         }
Please login to merge, or discard this patch.
src/Console/CreateFile.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -42,10 +42,10 @@
 block discarded – undo
42 42
             return 2;
43 43
         }
44 44
 
45
-        $output->writeln('<info>Filename:</info> ' . $hashes['md5'] . '.txt');
45
+        $output->writeln('<info>Filename:</info> '.$hashes['md5'].'.txt');
46 46
         $output->writeln('<info>Contents:</info>');
47 47
         $output->writeln($comodoDecodeCSR->generateDVC());
48
-        $output->writeln('<info>URL:</info> http://' . $comodoDecodeCSR->getCN() . '/' . $hashes['md5'] . '.txt');
48
+        $output->writeln('<info>URL:</info> http://'.$comodoDecodeCSR->getCN().'/'.$hashes['md5'].'.txt');
49 49
 
50 50
         return 0;
51 51
     }
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
@@ -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.