@@ -76,7 +76,7 @@ discard block |
||
| 76 | 76 | $random = \bin2hex(random_bytes(20)); |
| 77 | 77 | $this->symfonyStyle->newLine(); |
| 78 | 78 | $question = new Question($this->getQuestion('Insert your authentication secret or use this one randomly generated', $random), $random); |
| 79 | - $question->setValidator(function ($secret) { |
|
| 79 | + $question->setValidator(function($secret) { |
|
| 80 | 80 | if (!ctype_print($secret)) { |
| 81 | 81 | throw new \RuntimeException(sprintf('The authentication secret is not printable', $secret)); |
| 82 | 82 | } |
@@ -206,7 +206,7 @@ discard block |
||
| 206 | 206 | $dh->start(spl_object_hash($process), "Find {$options['dir']}", 'START'), |
| 207 | 207 | )); |
| 208 | 208 | |
| 209 | - $process->run(function ($type, $buffer) use ($process, $output, $dh) { |
|
| 209 | + $process->run(function($type, $buffer) use ($process, $output, $dh) { |
|
| 210 | 210 | $output->writeln($dh->progress(spl_object_hash($process), $buffer, Process::ERR === $type)); |
| 211 | 211 | }); |
| 212 | 212 | |
@@ -41,7 +41,7 @@ discard block |
||
| 41 | 41 | ->info('Encoded key or path to .crypto file. If key is null, it generates a different random key for each request.') |
| 42 | 42 | ->beforeNormalization() |
| 43 | 43 | ->ifString() |
| 44 | - ->then(function ($v) { |
|
| 44 | + ->then(function($v) { |
|
| 45 | 45 | if (is_file($v) && is_readable($v)) { |
| 46 | 46 | return array('path' => $v); |
| 47 | 47 | } |
@@ -51,7 +51,7 @@ discard block |
||
| 51 | 51 | ->end() |
| 52 | 52 | ->validate() |
| 53 | 53 | ->ifArray() |
| 54 | - ->then(function ($v) { |
|
| 54 | + ->then(function($v) { |
|
| 55 | 55 | $path = $v['path']; |
| 56 | 56 | $key = $v['key']; |
| 57 | 57 | |
@@ -118,7 +118,7 @@ discard block |
||
| 118 | 118 | { |
| 119 | 119 | $this->encryption->expects($this->once()) |
| 120 | 120 | ->method('encryptFileWithKey') |
| 121 | - ->will($this->returnCallback(function ($input, $output) { |
|
| 121 | + ->will($this->returnCallback(function($input, $output) { |
|
| 122 | 122 | $fs = new Filesystem(); |
| 123 | 123 | $fs->dumpFile($output, ''); |
| 124 | 124 | })); |
@@ -137,7 +137,7 @@ discard block |
||
| 137 | 137 | { |
| 138 | 138 | $this->encryption->expects($this->once()) |
| 139 | 139 | ->method('decryptFileWithKey') |
| 140 | - ->will($this->returnCallback(function ($input, $output) { |
|
| 140 | + ->will($this->returnCallback(function($input, $output) { |
|
| 141 | 141 | $fs = new Filesystem(); |
| 142 | 142 | $fs->dumpFile($output, 'Plain text'); |
| 143 | 143 | })); |
@@ -244,7 +244,7 @@ discard block |
||
| 244 | 244 | { |
| 245 | 245 | $this->encryption->expects($this->once()) |
| 246 | 246 | ->method('encryptFileWithPassword') |
| 247 | - ->will($this->returnCallback(function ($input, $output, $password) { |
|
| 247 | + ->will($this->returnCallback(function($input, $output, $password) { |
|
| 248 | 248 | $fs = new Filesystem(); |
| 249 | 249 | $fs->dumpFile($output, ''); |
| 250 | 250 | })); |
@@ -276,7 +276,7 @@ discard block |
||
| 276 | 276 | { |
| 277 | 277 | $this->encryption->expects($this->once()) |
| 278 | 278 | ->method('decryptFileWithPassword') |
| 279 | - ->will($this->returnCallback(function ($input, $output, $password) { |
|
| 279 | + ->will($this->returnCallback(function($input, $output, $password) { |
|
| 280 | 280 | $fs = new Filesystem(); |
| 281 | 281 | $fs->dumpFile($output, 'Plain text'); |
| 282 | 282 | })); |
@@ -9,7 +9,7 @@ |
||
| 9 | 9 | * file that was distributed with this source code. |
| 10 | 10 | */ |
| 11 | 11 | |
| 12 | -register_shutdown_function(function () { |
|
| 12 | +register_shutdown_function(function() { |
|
| 13 | 13 | if (file_exists(__DIR__.'/key.crypto')) { |
| 14 | 14 | unlink(__DIR__.'/key.crypto'); |
| 15 | 15 | } |