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

consistency in Magento\Tax\Helper\Data #443

Closed
fooman opened this issue Dec 21, 2013 · 3 comments
Closed

consistency in Magento\Tax\Helper\Data #443

fooman opened this issue Dec 21, 2013 · 3 comments

Comments

@fooman
Copy link
Contributor

fooman commented Dec 21, 2013

Currently neither the method naming nor the content is consistent.

For example

public function discountTax($store=null)
{
    return $this->_config->discountTax($store);
}

vs

public function getTaxBasedOn($store = null)
{
    return $this->_coreStoreConfig->getConfig(\Magento\Tax\Model\Config::CONFIG_XML_PATH_BASED_ON, $store);
}
@verklov
Copy link
Contributor

verklov commented Dec 26, 2013

fooman,
Thank you for noting this issue! We will consider making the appropriate changes to the names of already existing methods, but unfortunately this is not in our roadmap for the nearest releases.

@verklov verklov closed this as completed Dec 26, 2013
@fooman
Copy link
Contributor Author

fooman commented Dec 27, 2013

While I fully understand this is not on the immediate roadmap why close the issue? My hope is that pointing out inconsistencies like the above will make it easier for developers to learn Magento (which I thought was a goal of Magento 2). Also fixing inconsistencies before the 2.0 release would be preferred since later on you would need to worry about backwards compatibility which would not help in the ease of understanding the code.

@benmarks
Copy link
Contributor

I must concur with @fooman. Consistency in method names - at the very least among getters and setters - is a subtle but important means for reducing mental burden among the developers who will be working with M2.

vpelipenko added a commit that referenced this issue Jul 15, 2015
[South] Code coverage and bug
magento-team pushed a commit that referenced this issue Mar 18, 2016
[Folks] Media Gallery on Product Page
mmansoor-magento pushed a commit that referenced this issue Sep 29, 2016
Bug  
MAGETWO-57852 [FT] There is no "Reset filter" button on grids that use UI grid component
MAGETWO-58133 Incorrect number of login failures to lock Customer account
MAGETWO-56587 [FT] Fix AssertProductDataInMiniShoppingCart constraint
MAGETWO-54109 Unskip Tests which Refer to Already Closed Tickets
MAGETWO-57986 [FT] Can not get discount price in shopping cart
magento-devops-reposync-svc pushed a commit that referenced this issue May 24, 2022
CABPI-394: Fix Failed WebAPI Tests
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

No branches or pull requests

3 participants