Skip to content
This repository has been archived by the owner on Jan 8, 2020. It is now read-only.

Added trailing comma for multiline arrays #7120

Conversation

RalfEggert
Copy link
Contributor

This little fix makes sure that a trailing comma is added after the last item of an array created by Zend\Code\Generator\ValueGenerator when using the multiple line mode.

This trailing comma is suggested by the Coding Standards:

https://zf2-docs.readthedocs.org/en/latest/ref/coding.standard.html#associative-arrays

@Ocramius Ocramius self-assigned this Jan 12, 2015
@Ocramius Ocramius added this to the 2.4.0 milestone Jan 12, 2015
@Ocramius Ocramius added the Code label Jan 12, 2015
@Ocramius
Copy link
Member

Looking good!

@Ocramius
Copy link
Member

Seems like there are more failing related tests

@RalfEggert
Copy link
Contributor Author

I have some troubles running the tests currently. I found just one issue with the MethodGeneratorTest which uses an empty array. Does this fix the tests?

@RalfEggert
Copy link
Contributor Author

Ok, wait! Tests are running now again. Will fix them...

@RalfEggert
Copy link
Contributor Author

Ok, I fixed some other tests. All ZendTest\Code tests are running through now on my repo.

@weierophinney weierophinney merged commit e67624e into zendframework:develop Feb 24, 2015
weierophinney added a commit that referenced this pull request Feb 24, 2015
…y-comma

Added trailing comma for multiline arrays
weierophinney added a commit that referenced this pull request Feb 24, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants