Skip to content

No useless else#548

Closed
MathiasReker wants to merge 1 commit intophp:masterfrom
MathiasReker:0-no-useless-else
Closed

No useless else#548
MathiasReker wants to merge 1 commit intophp:masterfrom
MathiasReker:0-no-useless-else

Conversation

@MathiasReker
Copy link
Contributor

There should not be useless else cases.

There should not be useless else cases.
// ${recur}th to last $day of the month
else {
$eomd = date("w",$eom) + 1;
Copy link
Member

Choose a reason for hiding this comment

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

Please indent the code properly.

@localheinz
Copy link
Contributor

For reference, see https://github.com/FriendsOfPHP/PHP-CS-Fixer/blob/v3.8.0/doc/rules/control_structure/no_useless_else.rst.

@kamil-tekiela
Copy link
Member

kamil-tekiela commented Jul 3, 2022

Superseded by #603

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.

3 participants