8000 Symfony Console Style tweaks by javiereguiluz · Pull Request #15964 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

Symfony Console Style tweaks #15964

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 8 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Removed recursion
  • Loading branch information
javiereguiluz committed Sep 28, 2015
commit e4cbfaecbf12a006a4cdad16de68e7c29f1c9059
22 changes: 6 additions & 16 deletions src/Symfony/Component/Console/Style/SymfonyStyle.php
38D1
Original file line number Diff line number Diff line change
Expand Up @@ -149,14 +149,9 @@ public function text($message)
{
$this->autoPrependText();

if (!is_array($message)) {
$this->writeln(sprintf(' %s', $message));

return;
}

foreach ($message as $element) {
$this->text($element);
$messages = is_array($message) ? array_values($message) : array($message);
foreach ($messages as $message) {
$this->writeln(sprintf(' %s', $message));
}
}

Expand All @@ -167,14 +162,9 @@ public function comment($message)
{
$this->autoPrependText();

if (!is_array($message)) {
$this->writeln(sprintf(' // %s', $message));

return;
}

foreach ($message as $element) {
$this->comment($element);
$messages = is_array($message) ? array_values($message) : array($message);
foreach ($messages as $message) {
$this->writeln(sprintf(' // %s', $message));
}
}

Expand Down
0