Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

WIP: Helpers keep default config for robustness#195

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
Erwane wants to merge1 commit intocake4-bs4-1.0.0
base:cake4-bs4-1.0.0
Choose a base branch
Loading
fromhelper-load-keep-default

Conversation

@Erwane
Copy link
Collaborator

It's a try to prevent addition in Cake helpers will break the code.

Bootstrap helper is in$helperConfig and merged to$_defaultConfig. This way, templates and widgets always have a correct default and follow framework.

Work in progress, need to do all helpers if good way.

@codecov
Copy link

codecovbot commentedNov 16, 2020
edited
Loading

Codecov Report

Merging#195 (96ef936) intocake4-bs4-1.0.0 (2767409) willincrease coverage by0.68%.
The diff coverage is73.33%.

Impacted file tree graph

@@                  Coverage Diff                  @@##             cake4-bs4-1.0.0     #195      +/-   ##=====================================================+ Coverage              86.63%   87.32%   +0.68%- Complexity               380      382       +2=====================================================  Files                     19       19                Lines                   1190     1183       -7     =====================================================+ Hits                    1031     1033       +2+ Misses                   159      150       -9
Impacted FilesCoverage ΔComplexity Δ
src/View/Helper/FormHelper.php85.32% <73.33%> (+0.16%)60.00 <24.00> (+2.00)
src/View/Widget/ColumnSelectBoxWidget.php0.00% <0.00%> (ø)3.00% <0.00%> (ø%)

Continue to review full report at Codecov.

Legend -Click here to learn more
Δ = absolute <relative> (impact),ø = not affected,? = missing data
Powered byCodecov. Last update2767409...96ef936. Read thecomment docs.

* @return string The classes for the size or offset of the specified column.
*/
protectedfunction_getColumnClass(string$what):string
publicfunctiongetColumnClass(string$what):string
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is there any reason for this to be madepublic? And the_ prefix is CakePHP convention for protected methods, any reason you removed it from most methods?

Copy link
CollaboratorAuthor

Choose a reason for hiding this comment

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

My phpcs was misconfigured in my IDE. Sorry

{
// Standard form
$this->assertHtml([
self::assertHtml([
Copy link
Collaborator

Choose a reason for hiding this comment

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

Any reason for this?

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@Holt59Holt59Holt59 left review comments

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@Erwane@Holt59

[8]ページ先頭

©2009-2025 Movatter.jp