Skip to content

Little re-factoring #2

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

Merged
merged 29 commits into from
Nov 3, 2014
Merged

Little re-factoring #2

merged 29 commits into from
Nov 3, 2014

Conversation

sergej-kurakin
Copy link
Contributor

Hi,

I've re-factored a bit your classes to fit PSR1/PSR2 standards (class per file, added namespaces), added a composer.json file (please, fix the "name", if you accept the change). Also I've added some tests according to project description to make development of library easier. More over, I've added hpUnit, php code sniffer, php code style fixer and php mess detector as development requirements.

To install dependencies jus clone/update the project and run: php -f composer.phar install in command line.

To run code sniffer run: ./vendor/bin/phpcs --standard=PSR1,PSR2 ./src/ in command line.
To run code style fixer run: ./vendor/bin/php-cs-fixer fix ./src/ --level=all in command line.
To run mess detector run: vendor/bin/phpmd src/ text codesize,controversial,design,naming,unusedcode in command line. I'm not sure we need to obey to all phpmd rules, but you might be interested, but if you are not - just ignore it.

@ringmaster ringmaster merged commit 96d3743 into ringmaster:master Nov 3, 2014
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.

2 participants