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

Introduce private methods to decompose 10 most complex methods highlighted by Scrutinizer #322

Closed
alphadevx opened this issue Aug 17, 2017 · 1 comment
Assignees
Labels
Milestone

Comments

@alphadevx
Copy link
Owner

From this list: https://scrutinizer-ci.com/g/alphadevx/alpha/code-structure/develop/hot-spots

The 10 worse offending methods are currently:

F | Controller\ActiveRecordController::doGET()
F | ArticleController::before_displayPageFoot_callback()
F | ActiveRecordProviderMySQL::checkIndexes()
F | Util\Http\Request::__construct()
F | ActiveRecordProviderMySQL::save()
F | ActiveRecordProviderSQLite::save()
F | ActiveRecordProviderMySQL::loadByAttribute()
F | RendererProviderHTML::adminView()
F | Controller\ArticleController::doPUT()
F | RendererProviderHTML::listView()

@alphadevx alphadevx added this to the 3.0.0 milestone Aug 17, 2017
@alphadevx alphadevx self-assigned this Aug 17, 2017
alphadevx added a commit that referenced this issue Dec 7, 2017
…art to decompose the Request constructor and reduce the amount of calls to the _SERVER super global
alphadevx added a commit that referenced this issue Dec 7, 2017
alphadevx added a commit that referenced this issue May 19, 2018
…ding it from the RendererProviderHTML class to reduce duplicated JS code
alphadevx added a commit that referenced this issue May 19, 2018
…onfirmokay.phtml template fragment duplicated JS code
alphadevx added a commit that referenced this issue May 19, 2018
… new bootstrapconfirmokay.phtml template fragment to reduce duplicated JS code
@alphadevx
Copy link
Owner Author

Closing for now as I have already committed 13 improvements against this, and it is holding up the 3.0 GA release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant