|
@@ -104,7 +104,7 @@ discard block |
|
|
block discarded – undo |
|
104
|
104
|
$random = $this->generator->generateRandomSecret(); |
|
105
|
105
|
$this->symfonyStyle->newLine(); |
|
106
|
106
|
$question = new Question($this->getQuestion('Insert your authentication secret or use this one randomly generated', $random), $random); |
|
107
|
|
- $question->setValidator(function ($secret) { |
|
|
107
|
+ $question->setValidator(function($secret) { |
|
108
|
108
|
if (!ctype_print($secret)) { |
|
109
|
109
|
throw new \RuntimeException(sprintf('The authentication secret is not printable', $secret)); |
|
110
|
110
|
} |
|
@@ -234,7 +234,7 @@ discard block |
|
|
block discarded – undo |
|
234
|
234
|
$dh->start(spl_object_hash($process), "Find {$options['dir']}", 'START'), |
|
235
|
235
|
)); |
|
236
|
236
|
|
|
237
|
|
- $process->run(function ($type, $buffer) use ($process, $output, $dh) { |
|
|
237
|
+ $process->run(function($type, $buffer) use ($process, $output, $dh) { |
|
238
|
238
|
$output->writeln($dh->progress(spl_object_hash($process), $buffer, Process::ERR === $type)); |
|
239
|
239
|
}); |
|
240
|
240
|
|
Please login to merge, or discard this patch.