@@ -52,7 +52,7 @@ discard block |
||
52 | 52 | if (file_exists($outputFile)) { |
53 | 53 | $confirmation = $this->confirmOverwrite($input, $output, $outputFile); |
54 | 54 | |
55 | - if (! $confirmation) { |
|
55 | + if (!$confirmation) { |
|
56 | 56 | $output->writeln("<info>Cancelling...</info>"); |
57 | 57 | |
58 | 58 | return true; |
@@ -116,7 +116,7 @@ discard block |
||
116 | 116 | */ |
117 | 117 | protected function guardAgainstInvalidInput($certificateFile) |
118 | 118 | { |
119 | - if (! file_exists($certificateFile)) { |
|
119 | + if (!file_exists($certificateFile)) { |
|
120 | 120 | throw new Exception('Inputfile'.$certificateFile.' does not exists'); |
121 | 121 | } |
122 | 122 | } |
@@ -138,7 +138,7 @@ discard block |
||
138 | 138 | $helper = $this->getHelper('question'); |
139 | 139 | $question = new ConfirmationQuestion('<comment>Outputfile '.$outputFile.' already exists. Do you want to overwrite it? (y/n) </comment>', false); |
140 | 140 | |
141 | - if (! $helper->ask($input, $output, $question)) { |
|
141 | + if (!$helper->ask($input, $output, $question)) { |
|
142 | 142 | return false; |
143 | 143 | } |
144 | 144 |
@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | * @param InputInterface $input |
38 | 38 | * @param OutputInterface $output |
39 | 39 | * |
40 | - * @return int|null|void |
|
40 | + * @return boolean|null |
|
41 | 41 | * |
42 | 42 | * @throws Exception |
43 | 43 | */ |
@@ -125,8 +125,8 @@ discard block |
||
125 | 125 | * Check if outputfile already exists, |
126 | 126 | * if so, ask the user confirmation to overwrite. |
127 | 127 | * |
128 | - * @param $input |
|
129 | - * @param $output |
|
128 | + * @param InputInterface $input |
|
129 | + * @param OutputInterface $output |
|
130 | 130 | * @param $outputFile |
131 | 131 | * |
132 | 132 | * @return bool |
@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | */ |
50 | 50 | public function hasParentInTrustChain() |
51 | 51 | { |
52 | - return ! $this->getParentCertificateURL() == ''; |
|
52 | + return !$this->getParentCertificateURL() == ''; |
|
53 | 53 | } |
54 | 54 | |
55 | 55 | /** |
@@ -88,7 +88,7 @@ discard block |
||
88 | 88 | { |
89 | 89 | $x509 = new X509(); |
90 | 90 | |
91 | - if (! $x509->loadX509($contents)) { |
|
91 | + if (!$x509->loadX509($contents)) { |
|
92 | 92 | throw new Exception('Invalid inputfile given.'); |
93 | 93 | } |
94 | 94 | } |