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

recursively set indentations for child arrays #164

Merged
merged 8 commits into from
Oct 24, 2018

Conversation

hxss
Copy link
Contributor

@hxss hxss commented Oct 23, 2018

PR for #163
I was use auto generated complex arrays with personal data for tests, so I cant publish it.

Copy link
Member

@Ocramius Ocramius left a comment

Choose a reason for hiding this comment

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

Please add relevant tests to

class ValueGeneratorTest extends TestCase

Copy link
Contributor Author

@hxss hxss left a comment

Choose a reason for hiding this comment

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

sorry I dont have php7 on this machine, so I just added methods in same style.

*
* @return array
*/
public function complexArrayWCustomIndent()
Copy link
Member

Choose a reason for hiding this comment

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

Please use : array

/**
* Data provider for testPropertyDefaultValueCanHandleComplexArrayWCustomIndentOfTypes test
*
* @return array
Copy link
Member

Choose a reason for hiding this comment

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

Can be dropped

* @param array $value
* @param string $expected
*/
public function testPropertyDefaultValueCanHandleComplexArrayWCustomIndentOfTypes($type, array $value, $expected)
Copy link
Member

Choose a reason for hiding this comment

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

: void

Copy link
Member

Choose a reason for hiding this comment

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

Please add type declarations to the parameters: drop them from the docblock

Copy link
Contributor Author

@hxss hxss left a comment

Choose a reason for hiding this comment

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

I was copy that code from complexArray test.

Copy link
Contributor Author

@hxss hxss left a comment

Choose a reason for hiding this comment

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

sorry, forgot : void

@Ocramius Ocramius added the bug label Oct 23, 2018
@Ocramius Ocramius added this to the 3.3.1 milestone Oct 23, 2018
@Ocramius Ocramius self-assigned this Oct 23, 2018
@Ocramius Ocramius modified the milestones: 3.3.1, 3.4.0 Oct 23, 2018
@Ocramius
Copy link
Member

Check the failures, something is not working as expected: https://travis-ci.org/zendframework/zend-code/jobs/445104487#L653

Copy link
Contributor Author

@hxss hxss left a comment

Choose a reason for hiding this comment

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

sublime trim_trailing_white_space_on_save on 280 line :)

@Ocramius
Copy link
Member

@hxss
Copy link
Contributor Author

hxss commented Oct 23, 2018

lol. TABS > spaces
image

Copy link
Contributor Author

@hxss hxss left a comment

Choose a reason for hiding this comment

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

once again

@Ocramius
Copy link
Member

Last one: https://travis-ci.org/zendframework/zend-code/jobs/445367598#L675-L680

Maybe one level of nesting less would suffice 👍

Copy link
Member

@Ocramius Ocramius left a comment

Choose a reason for hiding this comment

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

LGTM, thanks! 👍

@Ocramius Ocramius merged commit 8003f74 into zendframework:develop Oct 24, 2018
@michalbundyra michalbundyra modified the milestones: 3.4.0, 3.3.2 Aug 29, 2019
michalbundyra added a commit that referenced this pull request Aug 29, 2019
michalbundyra added a commit that referenced this pull request Aug 29, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants