prettier / prettier/plugin-php
Function argument formatting discussion
Open
Nobody has claimed this yet.
discussion
- Dominant language
- PHP
- Stars
- 1.9k
- Forks
- 139
- PR merge metrics
- No merged PRs in 30d
Description
$db->Execute([
$foo,
$bar,
$foobar,
$somewhatLongParameter,
$somewhatLongParameterX,
$somewhatLongParameterXYZ
], $sql, $someOtherArg);
VS
$db->Execute(
[
$foo,
$bar,
$foobar,
$somewhatLongParameter,
$somewhatLongParameterX,
$somewhatLongParameterXYZ
],
$sql,
$someOtherArg
);
Vote 👍 on first, Vote ❤️ on second
Continuing from https://github.com/prettier/plugin-php/pull/398#discussion_r181853745
@evilebottnawi @czosel @nicoder
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing the linked discussion in prettier/plugin-php#398 and comparing the two PHP formatting examples in this issue. The issue asks for a preference vote rather than naming a specific change, file, or test; completion would require an agreed formatting decision and a defined implementation scope.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100