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

[TASK] Remove empty trailing lines from PHP files and templates #2007

Merged
merged 1 commit into from Dec 23, 2019

Conversation

gilbertsoft
Copy link
Member

This patch removes empty trailing lines from PHP files and configuration
templates to comply with PSR-12 which defines the following on file endings:

All PHP files MUST end with a non-blank line, terminated with a single LF.

See https://www.php-fig.org/psr/psr-12/#22-files

@gilbertsoft
Copy link
Member Author

Seems I messed up my master. But no issue for this PR. Will clean it afterwards...

This patch removes empty trailing lines from PHP files and configuration
templates to comply with PSR-12 which defines the following on file endings:

All PHP files MUST end with a non-blank line, terminated with a single LF.

See https://www.php-fig.org/psr/psr-12/#22-files
@gilbertsoft
Copy link
Member Author

It's rebased now

'displayErrors' => 1
]
'displayErrors' => 1,
],
Copy link
Member Author

Choose a reason for hiding this comment

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

btw this trailing commas are recommended because it's less error prone if you add something new afterwards

Copy link
Member

Choose a reason for hiding this comment

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

Always. But of course they ruin js/json :)

@rfay rfay merged commit eda7c74 into ddev:master Dec 23, 2019
rfay pushed a commit to rfay/ddev that referenced this pull request Jan 15, 2020
…#2007)

This patch removes empty trailing lines from PHP files and configuration
templates to comply with PSR-12 which defines the following on file endings:

All PHP files MUST end with a non-blank line, terminated with a single LF.

See https://www.php-fig.org/psr/psr-12/#22-files
@gilbertsoft gilbertsoft deleted the task/comply-psr-12 branch April 17, 2020 14:37
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.

None yet

2 participants