Skip to content

Enhancement: Enable method_argument_space fixer - #648

Closed
localheinz wants to merge 2 commits into
php:masterfrom
localheinz:feature/method-argument-space
Closed

Enhancement: Enable method_argument_space fixer#648
localheinz wants to merge 2 commits into
php:masterfrom
localheinz:feature/method-argument-space

Conversation

@localheinz

@localheinzlocalheinz commented Jul 12, 2022

Copy link
Copy Markdown
Contributor

This pull request

  • enables the method_argument_space fixer
  • runs make coding-standards

Follows #559.

💁‍♂️ For reference, see https://github.com/FriendsOfPHP/PHP-CS-Fixer/blob/v3.40.2/doc/rules/function_notation/method_argument_space.rst.

Comment threadcached.php Outdated

@cmb69cmb69 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Nice, thank you!

Comment threadChangeLog-8.php
Comment threadcal.php
Comment threadreleases/8.0/de.php
Comment on lines -47 to +49
'htmlspecialchars($string, ENT_COMPAT | ENT_HTML401, \'UTF-8\', false);'
);?>
'htmlspecialchars($string, ENT_COMPAT | ENT_HTML401, \'UTF-8\', false);'
);?>

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Note sure about that, and the next one in this file.

Comment threadreleases/8.0/en.php
Comment on lines -46 to +48
'htmlspecialchars($string, ENT_COMPAT | ENT_HTML401, \'UTF-8\', false);'
);?>
'htmlspecialchars($string, ENT_COMPAT | ENT_HTML401, \'UTF-8\', false);'
);?>

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Ditto.

Comment threadreleases/8.0/es.php
Comment on lines -45 to +47
'htmlspecialchars($string, ENT_COMPAT | ENT_HTML401, \'UTF-8\', false);'
);?>
'htmlspecialchars($string, ENT_COMPAT | ENT_HTML401, \'UTF-8\', false);'
);?>

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Ditto.

Comment on lines -48 to +50
'htmlspecialchars($string, ENT_COMPAT | ENT_HTML401, \'UTF-8\', false);'
);?>
'htmlspecialchars($string, ENT_COMPAT | ENT_HTML401, \'UTF-8\', false);'
);?>

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Ditto.

Comment threadreleases/8.0/ru.php
Comment on lines -47 to +49
'htmlspecialchars($string, ENT_COMPAT | ENT_HTML401, \'UTF-8\', false);'
);?>
'htmlspecialchars($string, ENT_COMPAT | ENT_HTML401, \'UTF-8\', false);'
);?>

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Ditto.

Comment threadreleases/8.0/tr.php
Comment on lines -44 to +46
'htmlspecialchars($string, ENT_COMPAT | ENT_HTML401, \'UTF-8\', false);'
);?>
'htmlspecialchars($string, ENT_COMPAT | ENT_HTML401, \'UTF-8\', false);'
);?>

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Ditto.

Comment threadreleases/8.0/zh.php
Comment on lines -44 to +46
'htmlspecialchars($string, ENT_COMPAT | ENT_HTML401, \'UTF-8\', false);'
);?>
'htmlspecialchars($string, ENT_COMPAT | ENT_HTML401, \'UTF-8\', false);'
);?>

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Ditto.

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

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

Yes, they look all off - hmm.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

A possibly working quick fix might be to unindent the <?php highlight_php_trimmed( lines. Although it would probably be better to move the highlighting to JS.

Comment threadreleases/index.php Outdated
@derickr

Copy link
Copy Markdown
Member

This has many conflicts.

@localheinz
localheinzforce-pushed the feature/method-argument-space branch 3 times, most recently from 9cf26ab to e075a20CompareDecember 5, 2023 15:20
@localheinz
localheinzforce-pushed the feature/method-argument-space branch from e075a20 to 29484f9CompareDecember 5, 2023 15:20
@localheinz
localheinz deleted the feature/method-argument-space branch December 5, 2023 15:21
Sign up for freeto 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.

4 participants

@localheinz@derickr@cmb69@saundefined