2020use Stolt \LeanPackage \Exceptions \NonExistentGlobPatternFile ;
2121use Stolt \LeanPackage \Exceptions \PresetNotAvailable ;
2222use Stolt \LeanPackage \GitattributesFileRepository ;
23- use Stolt \LeanPackage \Helpers \InputReader ;
23+ use Stolt \LeanPackage \Helpers \InputReaderInterface ;
2424use Symfony \Component \Console \Command \Command ;
2525use Symfony \Component \Console \Input \InputArgument ;
2626use Symfony \Component \Console \Input \InputInterface ;
@@ -59,16 +59,16 @@ final class ValidateCommand extends Command
5959 /**
6060 * Input reader.
6161 *
62- * @var InputReader
62+ * @var InputReaderInterface
6363 */
64- protected InputReader $ inputReader ;
64+ protected InputReaderInterface $ inputReader ;
6565
6666 /**
6767 * @param Analyser $analyser
6868 * @param Validator $archiveValidator
69- * @param InputReader $inputReader
69+ * @param InputReaderInterface $inputReader
7070 */
71- public function __construct (Analyser $ analyser , Validator $ archiveValidator , InputReader $ inputReader )
71+ public function __construct (Analyser $ analyser , Validator $ archiveValidator , InputReaderInterface $ inputReader )
7272 {
7373 $ this ->analyser = $ analyser ;
7474 $ this ->archiveValidator = $ archiveValidator ;
@@ -241,7 +241,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
241241 $ this ->analyser ->setDirectory ($ directory );
242242 } catch (\RuntimeException $ e ) {
243243 $ warning = "Warning: The provided directory "
244- . "' $ directory' does not exist or is not a directory. " ;
244+ . "' { $ directory} ' does not exist or is not a directory. " ;
245245 $ outputContent = '<error> ' . $ warning . '</error> ' ;
246246 $ output ->writeln ($ outputContent );
247247
@@ -370,7 +370,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
370370 $ this ->analyser ->setKeepGlobPattern ($ keepGlobPattern );
371371 } catch (InvalidGlobPattern $ e ) {
372372 $ warning = "Warning: The provided glob pattern "
373- . "' $ keepGlobPattern' is considered invalid. " ;
373+ . "' { $ keepGlobPattern} ' is considered invalid. " ;
374374 $ outputContent = '<error> ' . $ warning . '</error> ' ;
375375 $ output ->writeln ($ outputContent );
376376
@@ -391,13 +391,13 @@ protected function execute(InputInterface $input, OutputInterface $output): int
391391
392392 if ($ globPattern || $ globPattern === '' ) {
393393 try {
394- $ verboseOutput = "+ Using glob pattern <info> $ globPattern</info>. " ;
394+ $ verboseOutput = "+ Using glob pattern <info> { $ globPattern} </info>. " ;
395395 $ output ->writeln ($ verboseOutput , OutputInterface::VERBOSITY_VERBOSE );
396396
397397 $ this ->analyser ->setGlobPattern ((string ) $ globPattern );
398398 } catch (InvalidGlobPattern $ e ) {
399399 $ warning = "Warning: The provided glob pattern "
400- . "' $ globPattern' is considered invalid. " ;
400+ . "' { $ globPattern} ' is considered invalid. " ;
401401 $ outputContent = '<error> ' . $ warning . '</error> ' ;
402402 $ output ->writeln ($ outputContent );
403403
@@ -420,7 +420,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
420420
421421 } catch (NonExistentGlobPatternFile $ e ) {
422422 $ warning = "Warning: The provided glob pattern file "
423- . "' $ globPatternFile' doesn't exist. " ;
423+ . "' { $ globPatternFile} ' doesn't exist. " ;
424424 $ outputContent = '<error> ' . $ warning . '</error> ' ;
425425 $ output ->writeln ($ outputContent );
426426
@@ -429,7 +429,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
429429 return Command::FAILURE ;
430430 } catch (InvalidGlobPatternFile $ e ) {
431431 $ warning = "Warning: The provided glob pattern file "
432- . "' $ globPatternFile' is considered invalid. " ;
432+ . "' { $ globPatternFile} ' is considered invalid. " ;
433433 $ outputContent = '<error> ' . $ warning . '</error> ' ;
434434 $ output ->writeln ($ outputContent );
435435
0 commit comments