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

Simplification of the HTML class name in Tag\Cloud\Decorator\HtmlCloud #4822

Closed

Conversation

froschdesign
Copy link
Member

Changed from "Zend\Tag\Cloud" to "zend-tag-cloud"

…lCloud

Changed from "Zend\Tag\Cloud" to "zend-tag-cloud"
@Maks3w
Copy link
Member

Maks3w commented Jul 14, 2013

@froschdesign There is no a hard limit with 80 characters width.

@froschdesign
Copy link
Member Author

@Maks3w
If I look in the coding standards and in the PSR-2 overview, then I find the following:

The target line length is 80 characters.

and

…lines SHOULD be 80 characters or less.

Did I miss something?

@Maks3w
Copy link
Member

Maks3w commented Jul 15, 2013

That are not hard limits, just recomendations. There is no plan for change all the lines of the framework to match that recomendations.

Actually in zf2 only the recommendation apply to new/modified lines

@froschdesign
Copy link
Member Author

I do not want to change all the lines of the framework! Only the files which I have modified.
I've made this change for a better readability. No more, no less.

);
$this->assertTrue(
$cloud->getCloudDecorator() instanceof TestAsset\CloudDummy
);
Copy link
Member

Choose a reason for hiding this comment

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

Use assertInstanceOf() here.

weierophinney added a commit that referenced this pull request Jul 19, 2013
Simplification of the HTML class name in Tag\Cloud\Decorator\HtmlCloud
weierophinney added a commit that referenced this pull request Jul 19, 2013
- If we're going to make readability changes, let's make them consistent
  with the rest of the framework:
  - array arguments should all have commas following each entry
  - array arguments as sole argument of a method can open on same line
    as call; indentation then adjusts one level less
- Use `assertInstanceOf` throughout, instead of `assertTrue($a instanceof $b)`
- While the `setExpectedException()` lines get a little long, they're
  not unreadable; breaking them into multiple lines makes intent less
  clear.
weierophinney added a commit that referenced this pull request Jul 19, 2013
@ghost ghost assigned weierophinney Jul 19, 2013
@Maks3w Maks3w closed this Jul 19, 2013
weierophinney added a commit to zendframework/zend-tag that referenced this pull request May 15, 2015
…/hotfix/zend-tag-cloud

Simplification of the HTML class name in Tag\Cloud\Decorator\HtmlCloud
weierophinney added a commit to zendframework/zend-tag that referenced this pull request May 15, 2015
- If we're going to make readability changes, let's make them consistent
  with the rest of the framework:
  - array arguments should all have commas following each entry
  - array arguments as sole argument of a method can open on same line
    as call; indentation then adjusts one level less
- Use `assertInstanceOf` throughout, instead of `assertTrue($a instanceof $b)`
- While the `setExpectedException()` lines get a little long, they're
  not unreadable; breaking them into multiple lines makes intent less
  clear.
weierophinney added a commit to zendframework/zend-tag 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