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

Refactor and tidy #3

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open

Refactor and tidy #3

wants to merge 7 commits into from

Conversation

lcherone
Copy link

Fixes #2 + plus many other changes and tidy.

**Changes:**

 - Refactored and renamed many variables.
 - Added argument exceptions.
 - Changed formatting to PSR-2 standards.
 - Switched uppercase booleans to lowercase.
 - Added comments.
 - Added option for spaces with indent length instead of just tabs.
Added code examples to comments.
format.php Outdated
* $format = new Format();
*
* // use spaces at 4 length
* echo $format->process('Unformatted HTML string');
Copy link
Author

Choose a reason for hiding this comment

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

whoops, this needs changing to $format->html(), same with others but doesn't affect functionality.

@lcherone
Copy link
Author

fixes booboo's with comments and readme

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.

1 participant