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

Add HtmlTable, refs 2387 #2409

Merged
merged 1 commit into from Apr 15, 2017
Merged

Add HtmlTable, refs 2387 #2409

merged 1 commit into from Apr 15, 2017

Conversation

mwjames
Copy link
Contributor

@mwjames mwjames commented Apr 15, 2017

This PR is made in reference to: #2387

This PR addresses or contains:

This PR includes:

  • Tests (unit/integration)
  • CI build passed

@mwjames mwjames merged commit a8eea11 into master Apr 15, 2017
@mwjames mwjames deleted the div-table branch April 15, 2017 22:56
*
* @return string
*/
public static function table( $html = '', array $attributes = array() ) {
Copy link
Member

Choose a reason for hiding this comment

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

such static

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Well, its better than having span and div's being sprinkled all over the code. Nothing wrong on using statics where an instance isn't required.

Copy link
Member

Choose a reason for hiding this comment

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

static

Like this you cannot provide an alternative implementation though

Copy link
Member

Choose a reason for hiding this comment

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

Clearly one of those cases where using static is not a total disaster, but still. Esp since you delegate to MediaWiki's Html... I'd be using an instance

mwjames added a commit that referenced this pull request Apr 16, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants