Skip to content

Conversation

ravage84
Copy link
Contributor

As discussed in #763 (comment), this modernizes and cleans up the PHP examples.

I tried to improve it in small steps so the changes can be understood each by its own.

This also adds a Composer file and adds the popular code style tool PHPCS as development dependency. This is not necessary but would make it easier in the future to keep the examples clean and modern.

I also added a PHPCS configuration/ruleset file to setup the code style rules.

The coding standard used is PSR-2.

Lastly, an .editorconfig file helps to configure IDEs that support it to format code accordingly.

ravage84 added 21 commits April 23, 2020 21:50
@uc-msft uc-msft merged commit 4ed1d45 into microsoft:master Apr 23, 2020
@ravage84 ravage84 deleted the code-example-modernization branch April 23, 2020 23:40
@ravage84 ravage84 changed the title Code example modernization PHP Code example modernization Apr 23, 2020
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