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

Implemented writeTextBlock method in Zend\Console\Adapter\AbstractAdapter #5711

Merged
merged 6 commits into from
Mar 4, 2014
Merged

Conversation

nicktacular
Copy link
Contributor

I noticed that the Zend\Console\Adapter\AbstractAdapter::writeTextBlock() method was not implemented, so I implemented it, added tests, and ran php-cs-fixer.

Also, in order to be able to verify how this method writes data, I added an array to the test asset class ConsoleAdapter. Without this tracking array, the output buffering doesn't correctly show which data I expect since there isn't a way to track text in between calls to AbstractAdapter::setPos().

@@ -108,16 +108,16 @@ public function writeAt($text, $x, $y, $color = null, $bgColor = null)
* If X or Y coordinate value is negative, it will be calculated as the distance from far right or bottom edge
* of the console (respectively).
*
* @param int $x1 Top-left corner X coordinate (column)
Copy link
Member

Choose a reason for hiding this comment

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

Please roll back every change not related with the fix

@nicktacular
Copy link
Contributor Author

Stylistic changes reverted.

@weierophinney weierophinney added this to the 2.3.0 milestone Mar 3, 2014
@weierophinney weierophinney self-assigned this Mar 4, 2014
weierophinney added a commit that referenced this pull request Mar 4, 2014
Implemented writeTextBlock method in Zend\Console\Adapter\AbstractAdapter
weierophinney added a commit that referenced this pull request Mar 4, 2014
- space after opening comment
- removed a conditional by rephrasing and returning in the conditional
  body
weierophinney added a commit that referenced this pull request Mar 4, 2014
@weierophinney weierophinney merged commit 1124958 into zendframework:develop Mar 4, 2014
weierophinney added a commit to zendframework/zend-console that referenced this pull request May 15, 2015
…console

Implemented writeTextBlock method in Zend\Console\Adapter\AbstractAdapter
weierophinney added a commit to zendframework/zend-console that referenced this pull request May 15, 2015
- space after opening comment
- removed a conditional by rephrasing and returning in the conditional
  body
weierophinney added a commit to zendframework/zend-console that referenced this pull request May 15, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants