entermotion / eurl

This package aims to deliver a good set of functions to easily escape URLs that will be used on HTML
2 stars 1 forks source link

PSR-12, PHPMD and PHPCS rules #5

Closed enricodias closed 5 years ago

enricodias commented 5 years ago

Changed Functions.php's code style to PSR-12, PHPMD and PHPCS.

Reduced complexity of the e() function by creating the function parseQuery(). The use of isset() and empty() are discouraged. Other minor changes.

The e() function still needs to be renamed to comply with all rules.

Fixes #6

enricodias commented 5 years ago

@gabriel-felipe I noticed that you just committed changes on src/Functions.php with comment blocks. I've just copied the comments to this code.