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

Theme bootstrap and layout fix #1963

Merged
merged 10 commits into from
Oct 3, 2019
Merged

Theme bootstrap and layout fix #1963

merged 10 commits into from
Oct 3, 2019

Conversation

boehsermoe
Copy link
Member

Small fix to load theme layout file automaticly

@nadar
Copy link
Member

nadar commented Sep 21, 2019

This is the base class for all modules, as far as i can see this won't work as this would run the code in every module also would the modules call the parent method in order to work. So we should move this section to the bootstrap class.

@boehsermoe
Copy link
Member Author

You are right, I have overlooked that

@boehsermoe boehsermoe changed the title Theme layout fix Theme bootstrap and layout fix Sep 21, 2019
*/
public function getThemes()
public function getThemes(bool $throwException = true)
Copy link

Choose a reason for hiding this comment

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

Function getThemes has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.

Copy link
Member

Choose a reason for hiding this comment

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

please remove boolean property type hint.

Copy link
Member

@nadar nadar left a comment

Choose a reason for hiding this comment

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

Looks good, please remove typehint, everything else looks good, thanks! Please add a changelog entry, then its ready to merge.

*/
public function getThemes()
public function getThemes(bool $throwException = true)
Copy link
Member

Choose a reason for hiding this comment

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

please remove boolean property type hint.

*/
public function getThemes()
public function getThemes($throwException = true)
Copy link

Choose a reason for hiding this comment

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

Function getThemes has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.

@codeclimate
Copy link

codeclimate bot commented Sep 27, 2019

Code Climate has analyzed commit a8fa203 and detected 2 issues on this pull request.

Here's the issue category breakdown:

Category Count
Complexity 2

The test coverage on the diff in this pull request is 100.0% (80% is the threshold).

This pull request will bring the total coverage in the repository to 64.8% (0.0% change).

View more on Code Climate.

@nadar nadar merged commit 697d2b8 into luyadev:master Oct 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants