Skip to content
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

Array Indentation #11

Open
gossi opened this issue Oct 18, 2014 · 0 comments
Open

Array Indentation #11

gossi opened this issue Oct 18, 2014 · 0 comments

Comments

@gossi
Copy link
Member

gossi commented Oct 18, 2014

Properly indent arrays.

Occurences:

// two syntaxes
$oldSyntax = array(...);
$newSyntax = [...];

// map/object style
$map = [
    'key' => 'value',
    'key2' => 'value2',
    // ...
];

// list
$list = ['elem1', 'elem2', 'elem3', ... ];

Locations:

// assignments
$simple = [
    'key' => 'value',
    'key2' => 'value2',
    // ...
];

// params
$bla = new Foo([
    'option' => 'val',
    'option2' => 'val2',
    // ...
]);
@gossi gossi mentioned this issue Oct 18, 2014
3 tasks
@gossi gossi modified the milestone: Version 1.0 Oct 18, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant