@@ -51,14 +51,14 @@ discard block |
||
| 51 | 51 | |
| 52 | 52 | $certificateFile = $input->getArgument('certificate'); |
| 53 | 53 | |
| 54 | - if (! file_exists($certificateFile)) { |
|
| 54 | + if (!file_exists($certificateFile)) { |
|
| 55 | 55 | throw CouldNotRunCommand::inputFileDoesNotExist($certificateFile); |
| 56 | 56 | } |
| 57 | 57 | |
| 58 | 58 | $outputFile = $input->getArgument('outputFile') ?: 'certificate-including-trust-chain.crt'; |
| 59 | 59 | |
| 60 | 60 | if (file_exists($outputFile)) { |
| 61 | - if (! $this->confirmOverwrite($input, $output, $outputFile)) { |
|
| 61 | + if (!$this->confirmOverwrite($input, $output, $outputFile)) { |
|
| 62 | 62 | $output->writeln('<info>Cancelling...</info>'); |
| 63 | 63 | |
| 64 | 64 | return true; |
@@ -84,7 +84,7 @@ discard block |
||
| 84 | 84 | */ |
| 85 | 85 | protected function guardAgainstInvalidInput($certificateFile) |
| 86 | 86 | { |
| 87 | - if (! file_exists($certificateFile)) { |
|
| 87 | + if (!file_exists($certificateFile)) { |
|
| 88 | 88 | throw CouldNotRunCommand::inputFileDoesNotExist($certificateFile); |
| 89 | 89 | } |
| 90 | 90 | } |
@@ -106,7 +106,7 @@ discard block |
||
| 106 | 106 | $helper = $this->getHelper('question'); |
| 107 | 107 | $question = new ConfirmationQuestion('<comment>Outputfile '.$outputFile.' already exists. Do you want to overwrite it? (y/n) </comment>', false); |
| 108 | 108 | |
| 109 | - if (! $helper->ask($input, $output, $question)) { |
|
| 109 | + if (!$helper->ask($input, $output, $question)) { |
|
| 110 | 110 | return false; |
| 111 | 111 | } |
| 112 | 112 | |
@@ -68,7 +68,7 @@ discard block |
||
| 68 | 68 | |
| 69 | 69 | public function hasParentInTrustChain(): bool |
| 70 | 70 | { |
| 71 | - return ! $this->getParentCertificateUrl() == ''; |
|
| 71 | + return !$this->getParentCertificateUrl() == ''; |
|
| 72 | 72 | } |
| 73 | 73 | |
| 74 | 74 | public function getContents(): string |
@@ -80,7 +80,7 @@ discard block |
||
| 80 | 80 | |
| 81 | 81 | protected function guardAgainstInvalidContents(string $content) |
| 82 | 82 | { |
| 83 | - if (! (new X509())->loadX509($content)) { |
|
| 83 | + if (!(new X509())->loadX509($content)) { |
|
| 84 | 84 | throw CouldNotCreateCertificate::invalidContent($content); |
| 85 | 85 | } |
| 86 | 86 | } |
@@ -24,7 +24,7 @@ |
||
| 24 | 24 | $this->certificates->push($this->lastCertificate()->fetchParentCertificate()); |
| 25 | 25 | } |
| 26 | 26 | |
| 27 | - return $this->certificates->map(function (Certificate $certificate) { |
|
| 27 | + return $this->certificates->map(function(Certificate $certificate) { |
|
| 28 | 28 | return $certificate->getContents(); |
| 29 | 29 | })->implode(''); |
| 30 | 30 | } |