Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[Console] [TableHelper] make it work with SymfonyStyle.#18581

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
fabpot merged 1 commit intosymfony:2.7fromaitboudad:issue_18573
Apr 20, 2016

Conversation

@aitboudad
Copy link
Contributor

QA
Branch?2.7
Bug fix?yes
New feature?no
BC breaks?no
Deprecations?no
Tests pass?no
Fixed tickets#18573
LicenseMIT
Doc PR~

use Symfony\Component\Console\Tests\Style\SymfonyStyleWithForcedLineLength;
use Symfony\Component\Console\Helper\TableCell;

//Ensure questions do not output anything when input is non-interactive

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

This comment needs to be updated.

Copy link
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

done

@javiereguiluz
Copy link
Member

👍

publicfunctiontable(array$headers,array$rows)
{
$headers =array_map(function ($value) {returnsprintf('<info>%s</>',$value); },$headers);
array_walk_recursive($headers,function (&$value) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

recursive required? Then should we add a test case which would trigger this recursive part?

Copy link
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

not really recusive, but it can be one/two-dimensional array which is already covered bytest

@nicolas-grekas
Copy link
Member

👍

@fabpot
Copy link
Member

Thank you@aitboudad.

@fabpotfabpot merged commit43cc93c intosymfony:2.7Apr 20, 2016
fabpot added a commit that referenced this pull requestApr 20, 2016
…itboudad)This PR was merged into the 2.7 branch.Discussion----------[Console] [TableHelper] make it work with SymfonyStyle.| Q             | A| ------------- | ---| Branch?       | 2.7| Bug fix?      | yes| New feature?  | no| BC breaks?    | no| Deprecations? | no| Tests pass?   | no| Fixed tickets |#18573| License       | MIT| Doc PR        | ~Commits-------43cc93c [Console] [TableHelper] make it work with SymfonyStyle.
@aitboudadaitboudad deleted the issue_18573 branchApril 20, 2016 09:27
@ro0NL
Copy link
Contributor

ro0NL commentedApr 24, 2016
edited
Loading

Question.. would aTable::set<Cell|Header|Row>Format() be nice to do thesprintf thingy in a standardized way? Imho this feels a bit like a workaround... something you have to repeat in each style implementation (and sure dont forget it ;-)).

@ro0NL
Copy link
Contributor

@aitboudad any thoughts on this?

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

6 participants

@aitboudad@javiereguiluz@nicolas-grekas@fabpot@ro0NL@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp