Skip to content

Commit be51eb9

Browse files
authored
Update check command (hechoendrupal#13)
* [check] Update Check command. * [check] Rollback success message. * [check] Add loading file message. * [check] Display message as comment. * [check] Display message as comment. * [check] Add new lines. * [check] Remove new line. * [check] Make message tarnslatable. * [check] Make message tarnslatable.
1 parent d843532 commit be51eb9

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/Command/CheckCommand.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,11 @@ protected function execute(InputInterface $input, OutputInterface $output)
6868
if (!file_exists($phpCheckFile)) {
6969
$phpCheckFile = $this->configurationManager->getApplicationDirectory().'config/dist/phpcheck.yml';
7070
}
71+
72+
$io->newLine();
73+
$io->info($this->trans('commands.check.messages.file'));
74+
$io->comment($phpCheckFile);
75+
7176
$this->requirementChecker->validate($phpCheckFile);
7277
$checks = $this->requirementChecker->validate($phpCheckFile);
7378
}
@@ -131,6 +136,12 @@ protected function execute(InputInterface $input, OutputInterface $output)
131136
}
132137
}
133138

139+
if ($this->requirementChecker->isValid() && !$this->requirementChecker->isOverwritten()) {
140+
$io->success(
141+
$this->trans('commands.check.messages.success')
142+
);
143+
}
144+
134145
return $this->requirementChecker->isValid();
135146
}
136147
}

0 commit comments

Comments
 (0)