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

237: Remove the thing's magic method. #241

Merged
merged 1 commit into from
Feb 16, 2016

Conversation

toolstack
Copy link
Contributor

The _no_map magic method is only valid for a few methods in the class, but is callable via __call() on all methods. This change removes the __call() magic method and adds the required [func]_no_map() methods to the class.

It also replaces a single instance of value_no_map() with value() as _no_map has no effect on the value() function.

This makes the code more readable, solve solves several scrutinizer issues and allows for better doc blocks.

Part of #237.

@ocean90 ocean90 changed the title 237 Remove the thing's magic method. 237: Remove the thing's magic method. Feb 15, 2016
@ocean90 ocean90 added this to the 1.1 milestone Feb 15, 2016
The _no_map magic method is only valid for a few methods in the class, but is callable via __call() on all methods.  This change removes the __call() magic method and adds the required [func]_no_map() methods to the class.

It also replaces a single instance of value_no_map() with value() as _no_map has no effect on the value() function.

This makes the code more readable, solve solves several scrutinizer issues and allows for better doc blocks.
@ocean90 ocean90 force-pushed the 237-remove-thing-magic-methods branch from 047d739 to 289e192 Compare February 16, 2016 13:41
@ocean90 ocean90 self-assigned this Feb 16, 2016
@ocean90 ocean90 merged commit 278896b into develop Feb 16, 2016
@ocean90 ocean90 deleted the 237-remove-thing-magic-methods branch February 16, 2016 13:56
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